Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

2.1 KB
Raw Blame
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Anyone who asked their OS for less motion gets instant jumps instead. Playwright sets
   `reducedMotion: "reduce"` for the same reason: WebKit honours `scroll-behavior` in
   Playwright's scroll-into-view (Chromium's does not), so an animated scroll left buttons
   drifting out from under the cursor between mousedown and mouseup. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

textarea {
  field-sizing: content;
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

@layer components {
  .border-glow-mask {
    border-radius: inherit;
    pointer-events: none;
    position: absolute;
    inset: -1px;
    padding: 1px;
    -webkit-mask-image:
      linear-gradient(#000, #000), linear-gradient(#000, #000);
    mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
    -webkit-mask-clip: content-box, border-box;
    mask-clip: content-box, border-box;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .border-glow-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform-origin: 0 0;
    background: conic-gradient(
      transparent 0%,
      rgba(125, 91, 255, 0.15) 4%,
      rgba(180, 140, 255, 0.9) 7%,
      rgba(125, 91, 255, 0.95) 9%,
      rgba(125, 91, 255, 0.4) 13%,
      transparent 18%
    );
    filter: drop-shadow(0 0 4px rgba(125, 91, 255, 0.9))
      drop-shadow(0 0 12px rgba(125, 91, 255, 0.5))
      drop-shadow(0 0 24px rgba(125, 91, 255, 0.2));
    will-change: transform;
  }
}

@layer base {
  :root {
    --radius: 0.5rem;
  }

  /* Custom text selection styling
   * ::selection targets text highlighted by the user
   * background-color: Sets the highlight color to brand purple (rgba(125, 91, 255))
   * color: Sets the selected text color to white (#ffffff) for contrast
   * This creates a branded selection experience across the entire site
   */
  ::selection {
    background-color: rgba(125, 91, 255);
    color: #ffffff;
  }
}