Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

13.9 KB
Raw Blame
@import "tailwindcss";

@plugin "tailwindcss-animate";
@import "fumadocs-ui/css/neutral.css";
@import "fumadocs-ui/css/preset.css";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

:root {
  --color-fd-primary: rgb(16 185 129); /* emerald-500 */
  --dataviz: #7c8fe8; /* periwinkle data hue, deepened one step for white surfaces */
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --color-fd-primary: rgb(16 185 129); /* emerald-500 */
  --dataviz: #b3bfff; /* periwinkle data hue (DESIGN.md, dark) */
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.556 0 0);
}

body {
  font-family: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ── Marketing decoration: graph paper + signal ──────────────────────────
   The marketing pages are laid out as a bordered instrument sheet (1200px
   container, hairline seams). These utilities give selected cells the sheet's
   material back: a fine graph-paper grid, in a neutral ink or the emerald
   signal ink. Pair `.bg-graph-accent` with `.bg-plate-accent` to make a
   section header read as a "signal plate". Line colors are theme-aware and
   deliberately faint so text contrast on top is unaffected. */
:root {
  --graph-line: oklch(0 0 0 / 0.05);
  --graph-line-accent: oklch(0.55 0.12 163 / 0.16);
}
.dark {
  --graph-line: oklch(1 0 0 / 0.055);
  --graph-line-accent: oklch(0.75 0.14 163 / 0.13);
}
.bg-graph,
.bg-graph-accent {
  background-image:
    linear-gradient(to right, var(--_graph-ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--_graph-ink) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-graph {
  --_graph-ink: var(--graph-line);
}
.bg-graph-accent {
  --_graph-ink: var(--graph-line-accent);
}

/* Solid (opaque) emerald-tinted surface for section header plates. Solid on
   purpose: plates often sit inside `gap-px` grids where a translucent cell
   would let the seam color bleed through. */
.bg-plate-accent {
  background-color: color-mix(in oklab, #ffffff 95.5%, #059669);
}
.dark .bg-plate-accent {
  background-color: color-mix(in oklab, #0a0a0a 94%, #34d399);
}

/* ── Marketing data-line decoration ──────────────────────────────────────
   The plotted line draws itself on load via a left→right clip-path wipe.
   Not stroke-dasharray: with vector-effect: non-scaling-stroke, Chromium
   measures dashes in screen space, so under the anisotropic stretch of
   preserveAspectRatio="none" a "full-length" dash falls short and the line
   ends partway. Base state is the fully-drawn line: with reduced motion the
   animation is simply removed and the decoration is static. */
.dataline-path {
  animation: dataline-draw 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.dataline-area {
  animation: dataline-fade 1s ease-out 0.9s both;
}

.dataline-dot {
  animation: dataline-fade 0.5s ease-out 1.5s both;
}

@keyframes dataline-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes dataline-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dataline-path,
  .dataline-area,
  .dataline-dot {
    animation: none;
  }
}

/* ── Agent console decoration ────────────────────────────────────────────
   Used by the homepage AgentConsole card. Base state is fully visible; the
   animations are additive polish, so reduced motion simply removes them. */
.console-caret {
  animation: console-caret-blink 1.1s steps(1) infinite;
}

.console-rise {
  animation: console-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes console-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes console-rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .console-caret,
  .console-rise {
    animation: none;
  }
}

/* ── Feature demo decorations ────────────────────────────────────────────
   Used by the landing feature cards (Cards/*). Base state is the finished
   frame β€” every animation is additive polish, removed under reduced motion. */
.demo-bar {
  transform-origin: left center;
  animation: demo-bar-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes demo-bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.demo-marker {
  animation: demo-marker-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes demo-marker-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.journey-flow {
  stroke-dasharray: 3 9;
  animation: journey-flow-drift 2.6s linear infinite;
}

@keyframes journey-flow-drift {
  to {
    stroke-dashoffset: -12;
  }
}

.journey-ribbon {
  animation: dataline-fade 0.8s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .demo-bar,
  .demo-marker,
  .journey-flow,
  .journey-ribbon {
    animation: none;
  }
}

/* ── Personality touches ─────────────────────────────────────────────────
   Small living details at the edges of the marketing pages: the watermark
   frogs blink (their cursor-tracking is JS in WatchfulFrog), the footer
   frog hops on hover, the section kicker's signal square breathes like an
   indicator light. All additive over a fully-visible base state. */
.frog-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: frog-blink 7s ease-in-out 2.5s infinite;
}

@keyframes frog-blink {
  0%,
  91.5%,
  96.5%,
  100% {
    transform: scaleY(1);
  }
  94% {
    transform: scaleY(0.08);
  }
}

@keyframes frog-hop {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translateY(-4px);
  }
}

@keyframes kicker-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frog-eye {
    animation: none;
  }
}

@theme inline {
  --animate-marquee: marquee var(--duration) infinite linear;
  --animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;

  @keyframes marquee {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc(-100% - var(--gap)));
    }
  }
  @keyframes marquee-vertical {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(calc(-100% - var(--gap)));
    }
  }
}

/* Override prose list styles for tool pages */
.prose ul li.flex,
.prose ol li.flex {
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  margin-left: 0 !important;
  list-style-type: none !important;
}

.prose ul li.flex::before,
.prose ol li.flex::before,
.prose ul li.flex::marker,
.prose ol li.flex::marker {
  content: none !important;
  display: none !important;
}

/* Remove left padding from ordered lists with list-inside */
.prose ol.list-inside {
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  margin-left: 0 !important;
}

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* ── Docs dark surface ───────────────────────────────────────────────────
   Lift the docs reading surface a few percent in dark mode so it isn't a near
   black. Scoped to the notebook layout container (which only exists on docs
   pages), so the marketing pages β€” which paint the shadcn `--background`
   token β€” are untouched. We set the container background directly (the body
   `--background` is what shows through the docs area otherwise) and raise the
   layered fumadocs surface tokens in step so cards / code blocks / sidebar
   keep their depth against the lighter background. */
.dark #nd-notebook-layout {
  --color-fd-background: hsl(0, 0%, 7%);
  --color-fd-card: hsl(0, 0%, 10.5%);
  --color-fd-popover: hsl(0, 0%, 11%);
  --color-fd-secondary: hsl(0, 0%, 13.5%);
  --color-fd-muted: hsl(0, 0%, 13.5%);
  background-color: var(--color-fd-background);
}

/* ── Docs section tabs ───────────────────────────────────────────────────
   The docs use the fumadocs "notebook" layout with `tabMode="navbar"`, which
   renders one tab per `root: true` folder (Documentation / API Reference) in
   the sub-navbar. These rules restyle the stock underline tabs into prominent,
   Mintlify-style pills so the section switcher reads clearly. Rules are
   unlayered, so they win over the layered Tailwind utilities the layout emits
   without needing `!important`. */

/* Folder icon folded into each tab title (layout.tsx). Sized here so it works
   in both the navbar pills and the mobile section dropdown. */
.fd-tab-icon {
  display: inline-flex;
  align-items: center;
  margin-inline-end: 0.4rem;
}

.fd-tab-icon svg {
  width: 1rem;
  height: 1rem;
}

#nd-subnav [data-header-tabs] {
  align-items: center;
  gap: 0.375rem;
}

#nd-subnav [data-header-tabs] a {
  border-bottom: none;
  gap: 0;
  padding-block: 0.3rem;
  padding-inline: 0.7rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  font-weight: 500;
  color: var(--color-fd-muted-foreground);
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

#nd-subnav [data-header-tabs] a:hover {
  background-color: var(--color-fd-accent);
  color: var(--color-fd-accent-foreground);
}

/* active tab β€” fumadocs marks the selected link with `border-fd-primary` */
#nd-subnav [data-header-tabs] a.border-fd-primary {
  color: var(--color-fd-primary);
  background-color: color-mix(in oklch, var(--color-fd-primary) 12%, transparent);
  border-color: color-mix(in oklch, var(--color-fd-primary) 35%, transparent);
}