Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

fix: control bg, apply control border

dev_wandry83f999f57b82
diff --git a/app/globals.css b/app/globals.css
index c3f91fa0..f128227e 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -8,464 +8,397 @@
@custom-variant dark (&:is(.dark *));
@theme inline {
- --color-background: var(--background);
- --color-foreground: var(--foreground);
- --font-sans: var(--font-sans);
- --font-mono: var(--font-geist-mono);
- --font-heading: var(--font-sans);
- --color-sidebar-ring: var(--sidebar-ring);
- --color-sidebar-border: var(--sidebar-border);
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
- --color-sidebar-accent: var(--sidebar-accent);
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
- --color-sidebar-primary: var(--sidebar-primary);
- --color-sidebar-foreground: var(--sidebar-foreground);
- --color-sidebar: var(--sidebar);
- --color-chart-5: var(--chart-5);
- --color-chart-4: var(--chart-4);
- --color-chart-3: var(--chart-3);
- --color-chart-2: var(--chart-2);
- --color-chart-1: var(--chart-1);
- --color-ring: var(--ring);
- --color-input: var(--input);
- --color-border: var(--border);
- --color-destructive: var(--destructive);
- --color-accent-foreground: var(--accent-foreground);
- --color-accent: var(--accent);
- --color-muted-foreground: var(--muted-foreground);
- --color-muted: var(--muted);
- --color-secondary-foreground: var(--secondary-foreground);
- --color-secondary: var(--secondary);
- --color-primary-foreground: var(--primary-foreground);
- --color-primary: var(--primary);
- --color-popover-foreground: var(--popover-foreground);
- --color-popover: var(--popover);
- --color-card-foreground: var(--card-foreground);
- --color-card: var(--card);
- --radius-sm: calc(var(--radius) * 0.6);
- --radius-md: calc(var(--radius) * 0.8);
- --radius-lg: var(--radius);
- --radius-xl: calc(var(--radius) * 1.4);
- --radius-2xl: calc(var(--radius) * 1.8);
- --radius-3xl: calc(var(--radius) * 2.2);
- --radius-4xl: calc(var(--radius) * 2.6);
- --animate-marquee: marquee var(--marquee-duration, 48s) linear infinite;
- @keyframes marquee {
- from {
- transform: translateX(0);
+ --color-background: var(--background);
+ --color-foreground: var(--foreground);
+ --font-sans: var(--font-sans);
+ --font-mono: var(--font-geist-mono);
+ --font-heading: var(--font-sans);
+ --color-sidebar-ring: var(--sidebar-ring);
+ --color-sidebar-border: var(--sidebar-border);
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
+ --color-sidebar-accent: var(--sidebar-accent);
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
+ --color-sidebar-primary: var(--sidebar-primary);
+ --color-sidebar-foreground: var(--sidebar-foreground);
+ --color-sidebar: var(--sidebar);
+ --color-chart-5: var(--chart-5);
+ --color-chart-4: var(--chart-4);
+ --color-chart-3: var(--chart-3);
+ --color-chart-2: var(--chart-2);
+ --color-chart-1: var(--chart-1);
+ --color-ring: var(--ring);
+ --color-input: var(--input);
+ --color-border: var(--border);
+ --color-destructive: var(--destructive);
+ --color-accent-foreground: var(--accent-foreground);
+ --color-accent: var(--accent);
+ --color-muted-foreground: var(--muted-foreground);
+ --color-muted: var(--muted);
+ --color-secondary-foreground: var(--secondary-foreground);
+ --color-secondary: var(--secondary);
+ --color-primary-foreground: var(--primary-foreground);
+ --color-primary: var(--primary);
+ --color-popover-foreground: var(--popover-foreground);
+ --color-popover: var(--popover);
+ --color-card-foreground: var(--card-foreground);
+ --color-card: var(--card);
+ --radius-sm: calc(var(--radius) * 0.6);
+ --radius-md: calc(var(--radius) * 0.8);
+ --radius-lg: var(--radius);
+ --radius-xl: calc(var(--radius) * 1.4);
+ --radius-2xl: calc(var(--radius) * 1.8);
+ --radius-3xl: calc(var(--radius) * 2.2);
+ --radius-4xl: calc(var(--radius) * 2.6);
+ --animate-marquee: marquee var(--marquee-duration, 48s) linear infinite;
+ @keyframes marquee {
+ from {
+ transform: translateX(0);
+ }
+ to {
+ transform: translateX(-50%);
+ }
}
- to {
- transform: translateX(-50%);
- }
- }
}
:root {
- --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.87 0 0);
- --chart-2: oklch(0.556 0 0);
- --chart-3: oklch(0.439 0 0);
- --chart-4: oklch(0.371 0 0);
- --chart-5: oklch(0.269 0 0);
- --radius: 0.625rem;
- --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);
+ --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.87 0 0);
+ --chart-2: oklch(0.556 0 0);
+ --chart-3: oklch(0.439 0 0);
+ --chart-4: oklch(0.371 0 0);
+ --chart-5: oklch(0.269 0 0);
+ --radius: 0.625rem;
+ --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);
- /* "NEW" sidebar badge — editable accent. Theme-agnostic for now (same value
+ /* "NEW" sidebar badge — editable accent. Theme-agnostic for now (same value
in light/dark); recolor the badge by changing --badge-new-bg here. The fg
stays dark so the label reads on the light-lime background. */
- --badge-new-bg: rgb(195, 232, 141);
- --badge-new-fg: oklch(0.205 0 0);
+ --badge-new-bg: rgb(195, 232, 141);
+ --badge-new-fg: oklch(0.205 0 0);
}
.dark {
- /* Warm obsidian palette — matches landing page #141318 */
- --background: oklch(0.18 0.008 290);
- --foreground: oklch(0.95 0 0);
- --card: oklch(0.20 0.008 290);
- --card-foreground: oklch(0.95 0 0);
- --popover: oklch(0.20 0.008 290);
- --popover-foreground: oklch(0.95 0 0);
- --primary: oklch(0.95 0 0);
- --primary-foreground: oklch(0.18 0.008 290);
- --secondary: oklch(0.22 0.008 290);
- --secondary-foreground: oklch(0.85 0.005 290);
- --muted: oklch(0.21 0.008 290);
- --muted-foreground: oklch(0.65 0.008 290);
- --accent: oklch(0.22 0.008 290);
- --accent-foreground: oklch(0.95 0 0);
- --destructive: oklch(0.704 0.191 22.216);
- --border: oklch(1 0 0 / 6%);
- --input: oklch(1 0 0 / 8%);
- --ring: oklch(1 0 0 / 20%);
- --chart-1: oklch(0.87 0 0);
- --chart-2: oklch(0.65 0.008 290);
- --chart-3: oklch(0.55 0.008 290);
- --chart-4: oklch(0.45 0.008 290);
- --chart-5: oklch(0.35 0.008 290);
- --sidebar: oklch(0.18 0.008 290);
- --sidebar-foreground: oklch(0.95 0 0);
- --sidebar-primary: oklch(0.95 0 0);
- --sidebar-primary-foreground: oklch(0.18 0.008 290);
- --sidebar-accent: oklch(0.22 0.008 290);
- --sidebar-accent-foreground: oklch(0.95 0 0);
- --sidebar-border: oklch(1 0 0 / 6%);
- --sidebar-ring: oklch(1 0 0 / 20%);
+ /* Warm obsidian palette — matches landing page #141318 */
+ --background: oklch(0.18 0.008 290);
+ --foreground: oklch(0.95 0 0);
+ --card: oklch(0.2 0.008 290);
+ --card-foreground: oklch(0.95 0 0);
+ --popover: oklch(0.2 0.008 290);
+ --popover-foreground: oklch(0.95 0 0);
+ --primary: oklch(0.95 0 0);
+ --primary-foreground: oklch(0.18 0.008 290);
+ --secondary: oklch(0.22 0.008 290);
+ --secondary-foreground: oklch(0.85 0.005 290);
+ --muted: oklch(0.21 0.008 290);
+ --muted-foreground: oklch(0.65 0.008 290);
+ --accent: oklch(0.22 0.008 290);
+ --accent-foreground: oklch(0.95 0 0);
+ --destructive: oklch(0.704 0.191 22.216);
+ --border: oklch(1 0 0 / 6%);
+ --input: oklch(1 0 0 / 8%);
+ --ring: oklch(1 0 0 / 20%);
+ --chart-1: oklch(0.87 0 0);
+ --chart-2: oklch(0.65 0.008 290);
+ --chart-3: oklch(0.55 0.008 290);
+ --chart-4: oklch(0.45 0.008 290);
+ --chart-5: oklch(0.35 0.008 290);
+ --sidebar: oklch(0.18 0.008 290);
+ --sidebar-foreground: oklch(0.95 0 0);
+ --sidebar-primary: oklch(0.95 0 0);
+ --sidebar-primary-foreground: oklch(0.18 0.008 290);
+ --sidebar-accent: oklch(0.22 0.008 290);
+ --sidebar-accent-foreground: oklch(0.95 0 0);
+ --sidebar-border: oklch(1 0 0 / 6%);
+ --sidebar-ring: oklch(1 0 0 / 20%);
- /* Badge keeps the same lime accent in dark mode — see :root for the knob. */
- --badge-new-bg: rgb(195, 232, 141);
- --badge-new-fg: oklch(0.205 0 0);
+ /* Badge keeps the same lime accent in dark mode — see :root for the knob. */
+ --badge-new-bg: rgb(195, 232, 141);
+ --badge-new-fg: oklch(0.205 0 0);
}
@layer base {
- * {
- @apply border-border outline-ring/50;
- }
- body {
- @apply bg-background text-foreground;
- font-feature-settings: "cv11", "ss01";
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
- html {
- @apply font-sans;
- scroll-behavior: smooth;
- scroll-padding-top: 80px;
- }
+ * {
+ @apply border-border outline-ring/50;
+ }
+ body {
+ @apply bg-background text-foreground;
+ font-feature-settings: "cv11", "ss01";
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
+ }
+ html {
+ @apply font-sans;
+ scroll-behavior: smooth;
+ scroll-padding-top: 80px;
+ }
}
-/* ── Landing primitives ─────────────────────────────────────────────
- Theme-aware surfaces and decorative backgrounds for app/(home).
- Everything derives from design tokens so light/dark stay unified.
-
- NOTE: page width is the `.section` class below — NOT an override of the
- `.container` utility. Overriding the configured `.container` from an
- unlayered rule was fragile and left-shifted the whole landing when the
- cascade flipped. */
-
-/* Page content width wrapper — single source of truth for the landing/sponsors
- content column: centered, max-w-6xl, responsive padding. Applied as
- `className="section"`. */
.section {
- @apply mx-auto w-full max-w-6xl px-4 sm:px-6;
+ @apply mx-auto w-full max-w-6xl px-4 sm:px-6;
+}
+
+.bg-control {
+ @apply bg-muted border border-border;
}
-/* Subtle dotted grid — fades toward the edges. Used behind the hero. */
.bg-grid-fade {
- background-image: radial-gradient(
- color-mix(in oklab, var(--color-foreground) 9%, transparent) 1px,
- transparent 1px
- );
- background-size: 28px 28px;
- -webkit-mask-image: radial-gradient(
- ellipse 70% 60% at 50% 0%,
- black,
- transparent 75%
- );
- mask-image: radial-gradient(
- ellipse 70% 60% at 50% 0%,
- black,
- transparent 75%
- );
+ background-image: radial-gradient(
+ color-mix(in oklab, var(--color-foreground) 9%, transparent) 1px,
+ transparent 1px
+ );
+ background-size: 28px 28px;
+ -webkit-mask-image: radial-gradient(
+ ellipse 70% 60% at 50% 0%,
+ black,
+ transparent 75%
+ );
+ mask-image: radial-gradient(
+ ellipse 70% 60% at 50% 0%,
+ black,
+ transparent 75%
+ );
}
-/* Hairline that reads in both themes. */
.divider-soft {
- background: linear-gradient(
- to right,
- transparent,
- var(--color-border),
- transparent
- );
+ background: linear-gradient(
+ to right,
+ transparent,
+ var(--color-border),
+ transparent
+ );
}
-/* Card surface used across landing sections — adapts to theme. */
.surface-card {
- background-color: color-mix(in oklab, var(--color-card) 92%, transparent);
- border: 1px solid var(--color-border);
- backdrop-filter: blur(12px);
+ background-color: color-mix(in oklab, var(--color-card) 92%, transparent);
+ border: 1px solid var(--color-border);
+ backdrop-filter: blur(12px);
}
-/* Horizontal fade at both edges — used to dissolve marquee tracks into the
- page instead of clipping them on a hard line. */
.marquee-edge-fade {
- -webkit-mask-image: linear-gradient(
- to right,
- transparent,
- black 12%,
- black 88%,
- transparent
- );
- mask-image: linear-gradient(
- to right,
- transparent,
- black 12%,
- black 88%,
- transparent
- );
+ -webkit-mask-image: linear-gradient(
+ to right,
+ transparent,
+ black 12%,
+ black 88%,
+ transparent
+ );
+ mask-image: linear-gradient(
+ to right,
+ transparent,
+ black 12%,
+ black 88%,
+ transparent
+ );
}
-/* ── Code / Shiki surfaces (F3) ──────────────────────────────────────
- MDX code blocks (```tsx … ```) resolve to the `muted` token, matching
- the CodeBlockCommand look. No hardcoded editor hex, no border, no
- ambient shadow — the slab reads as a calm surface in both themes. */
.prose figure.shiki {
- background-color: var(--muted) !important;
- border-width: 0 !important;
- box-shadow: none !important;
- border-radius: var(--radius-xl);
+ background-color: var(--muted) !important;
+ border-width: 0 !important;
+ box-shadow: none !important;
+ border-radius: var(--radius-xl);
}
.prose figure.shiki pre,
.prose figure.shiki [class*="bg-"] {
- background-color: transparent !important;
+ background-color: transparent !important;
}
-/* Larger, more readable code. Fumadocs sets `text-sm` (14px) on the
- `figure.shiki` (components/codeblock.js), which the inner `pre`/`code`
- inherit. Bumping font-size on the pre lifts the whole block; line-height
- is loosened to keep the taller text comfortable. */
+
.prose figure.shiki pre {
- font-size: 0.9375rem;
- line-height: 1.7;
+ font-size: 0.9375rem;
+ line-height: 1.7;
}
-/* Inline `code` inside prose — token-driven chip, not a default slab. */
.prose :not(pre) > code {
- background-color: color-mix(in oklab, var(--muted) 70%, transparent);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- padding: 0.125rem 0.375rem;
- font-size: 0.875em;
- font-weight: 500;
+ background-color: color-mix(in oklab, var(--muted) 70%, transparent);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-sm);
+ padding: 0.125rem 0.375rem;
+ font-size: 0.875em;
+ font-weight: 500;
}
.prose :not(pre) > code::before,
.prose :not(pre) > code::after {
- content: none;
+ content: none;
}
-/* ── Docs prose (C2/C3/A3) ───────────────────────────────────────────
- Explicit heading rhythm so a heading groups with the content beneath
- it. h2–h4 stay in the sans/heading scale; only the doc-title H1 gets
- the reserved display treatment. */
.prose h2 {
- @apply mt-16 mb-4 text-3xl font-semibold tracking-tight;
+ @apply mt-16 mb-4 text-3xl font-semibold tracking-tight;
}
.prose > :first-child h2,
.prose h2:first-child {
- @apply mt-12;
+ @apply mt-12;
}
.prose h3 {
- @apply mt-10 mb-3 text-xl font-semibold tracking-tight;
+ @apply mt-10 mb-3 text-xl font-semibold tracking-tight;
}
.prose h4 {
- @apply mt-8 mb-2 text-base font-semibold tracking-tight;
+ @apply mt-8 mb-2 text-base font-semibold tracking-tight;
}
-/* Links (B4): foreground-weighted, underline reveals on hover via the
- token border — accent color only on hover, never default-blue.
- Guarded with :not(:where([class~="not-prose"] *)) so the prose link
- treatment (notably the hover underline) does NOT leak into interactive
- .not-prose blocks like the component card grid. The :where() keeps the
- guard at zero specificity, so these stay equivalent to `.prose a`. */
.prose a:not(:where([class~="not-prose"] *)) {
- color: var(--foreground);
- font-weight: 500;
- text-decoration: none;
- text-underline-offset: 0.2em;
- text-decoration-color: color-mix(in oklab, var(--foreground) 35%, transparent);
- transition: text-decoration-color 150ms ease, color 150ms ease;
+ color: var(--foreground);
+ font-weight: 500;
+ text-decoration: none;
+ text-underline-offset: 0.2em;
+ text-decoration-color: color-mix(
+ in oklab,
+ var(--foreground) 35%,
+ transparent
+ );
+ transition:
+ text-decoration-color 150ms ease,
+ color 150ms ease;
}
.prose a:not(:where([class~="not-prose"] *)):hover {
- text-decoration: underline;
- text-decoration-color: color-mix(in oklab, var(--foreground) 60%, transparent);
+ text-decoration: underline;
+ text-decoration-color: color-mix(
+ in oklab,
+ var(--foreground) 60%,
+ transparent
+ );
}
.prose a:not(:where([class~="not-prose"] *)):focus-visible {
- outline: none;
- border-radius: var(--radius-sm);
- box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 60%, transparent);
+ outline: none;
+ border-radius: var(--radius-sm);
+ box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 60%, transparent);
}
-/* Tables — token hairlines, muted header row, no zebra slop. */
.prose table {
- font-size: 0.875rem;
+ font-size: 0.875rem;
}
.prose thead {
- border-bottom: 1px solid var(--border);
+ border-bottom: 1px solid var(--border);
}
.prose th {
- font-weight: 600;
- color: var(--foreground);
+ font-weight: 600;
+ color: var(--foreground);
}
.prose tbody tr {
- border-bottom: 1px solid var(--border);
+ border-bottom: 1px solid var(--border);
}
.prose td,
.prose th {
- padding: 0.5rem 0.75rem;
+ padding: 0.5rem 0.75rem;
}
-/* Reading measure (A2/C4): cap prose text at ~68ch while interactive
- `.not-prose` blocks (preview stage, install, props table) stay full
- content width — never clamp the centerpieces. */
.prose p,
.prose ul,
.prose ol,
.prose blockquote {
- @apply max-w-3xl;
+ @apply max-w-3xl;
}
.prose .not-prose,
.prose .not-prose p,
.prose .not-prose ul,
.prose .not-prose ol {
- max-width: none;
+ max-width: none;
}
-/* Blockquote — soft left hairline, not a heavy bar. */
.prose blockquote {
- border-inline-start: 2px solid var(--border);
- color: var(--muted-foreground);
- font-style: normal;
+ border-inline-start: 2px solid var(--border);
+ color: var(--muted-foreground);
+ font-style: normal;
}
-/* ── Sidebar de-template (E2/E3/E6) ──────────────────────────────────
- Override Fumadocs' default sidebar look via #nd-sidebar selectors.
- We do NOT override fd-* tokens with literal colors — these rules
- restyle layout/behaviour and resolve color through our oklch tokens.
- Applies to both the desktop rail and the mobile drawer (#nd-sidebar
- plus the drawer's sidebar root). */
#nd-sidebar a,
#nd-sidebar-mobile a {
- font-size: 0.8125rem;
- letter-spacing: -0.01em;
+ font-size: 0.8125rem;
+ letter-spacing: -0.01em;
}
-/* Category section headers (SidebarSeparator) — small uppercase muted
- labels. The Separator renders as a bare <p> inside the page-tree, so
- scoping to #nd-sidebar p reliably targets the section labels without
- touching the nav links (which are <a>). */
#nd-sidebar p,
#nd-sidebar-mobile p {
- text-transform: uppercase;
- letter-spacing: 0.08em;
- font-size: 0.6875rem;
- font-weight: 600;
- color: var(--muted-foreground);
+ text-transform: uppercase;
+ letter-spacing: 0.08em;
+ font-size: 0.6875rem;
+ font-weight: 600;
+ color: var(--muted-foreground);
}
-/* Nav items: comfortable-compact rows (~34px), readable resting state.
- Items resolve to the foreground (white) token so the menu is legible;
- only the category headers stay subtle/muted for hierarchy. Hover is a
- COLOR transition only — no background slab grow, no underline animation
- (E6). We neutralise Fumadocs' hover:bg-*. */
#nd-sidebar a[data-active],
#nd-sidebar-mobile a[data-active] {
- padding-block: 0.375rem;
- color: var(--foreground);
- transition: color 150ms ease;
+ padding-block: 0.375rem;
+ color: var(--foreground);
+ transition: color 150ms ease;
}
#nd-sidebar a[data-active]:hover,
#nd-sidebar-mobile a[data-active]:hover {
- color: var(--foreground);
- background-color: transparent;
+ color: var(--foreground);
+ background-color: transparent;
}
-/* Active item (E3): not color-only. Subtle accent fill + a left hairline
- indicator drawn from the foreground token + medium weight. */
#nd-sidebar a[data-active="true"],
#nd-sidebar-mobile a[data-active="true"] {
- position: relative;
- font-weight: 500;
- color: var(--foreground);
- background-color: color-mix(in oklab, var(--accent) 80%, transparent);
+ position: relative;
+ font-weight: 500;
+ color: var(--foreground);
+ background-color: color-mix(in oklab, var(--accent) 80%, transparent);
}
#nd-sidebar a[data-active="true"]:hover,
#nd-sidebar-mobile a[data-active="true"]:hover {
- background-color: color-mix(in oklab, var(--accent) 80%, transparent);
+ background-color: color-mix(in oklab, var(--accent) 80%, transparent);
}
#nd-sidebar a[data-active="true"]::before,
#nd-sidebar-mobile a[data-active="true"]::before {
- content: "";
- position: absolute;
- inset-inline-start: 0;
- inset-block: 0.3rem;
- width: 2px;
- border-radius: 1px;
- background-color: var(--foreground);
+ content: "";
+ position: absolute;
+ inset-inline-start: 0;
+ inset-block: 0.3rem;
+ width: 2px;
+ border-radius: 1px;
+ background-color: var(--foreground);
}
@media (prefers-reduced-motion: reduce) {
- #nd-sidebar a[data-active],
- #nd-sidebar-mobile a[data-active] {
- transition: none;
- }
+ #nd-sidebar a[data-active],
+ #nd-sidebar-mobile a[data-active] {
+ transition: none;
+ }
}
-/* ── Non-collapsible category title (SidebarFolderLink) ──────────────
- Each category folder has an index page, so with collapsible:false the
- title renders as SidebarFolderLink — an <a> that carries the `w-full`
- class (slots/sidebar.js). Nav items (SidebarItem) do NOT get `w-full`,
- so `a.w-full` targets ONLY the category headers. (The earlier
- `div.relative` selector was wrong: the only relative <div> is the
- SidebarFolderContent wrapper, which contains every item — styling it
- uppercased and disabled all links.) The title stays navigable to its
- category index; it just reads as a quiet uppercase section label. */
#nd-sidebar a.w-full,
#nd-sidebar-mobile a.w-full {
- text-transform: uppercase;
- letter-spacing: 0.08em;
- font-size: 0.6875rem;
- font-weight: 600;
- color: var(--muted-foreground);
- /* Generous gap above each category so the groups read as distinct
- sections. NOTE: each title is the first child of its own folder
- wrapper, so `:first-child` would match every title — we deliberately
- don't special-case the first one; the sidebar's own top padding
- handles the top edge. */
- margin-top: 2.5rem;
-}
-/* Subtle hover only — it's a heading that also links to the overview. */
+ text-transform: uppercase;
+ letter-spacing: 0.08em;
+ font-size: 0.6875rem;
+ font-weight: 600;
+ color: var(--muted-foreground);
+
+ margin-top: 2.5rem;
+}
#nd-sidebar a.w-full:hover,
#nd-sidebar-mobile a.w-full:hover {
- color: var(--foreground);
- background-color: transparent;
+ color: var(--foreground);
+ background-color: transparent;
}
-/* ── Sidebar scroll viewport bottom padding ──────────────────────────
- The scroll area is the Radix viewport (`[data-radix-scroll-area-viewport]`,
- from fumadocs-ui ScrollViewport). It ships only `p-4` (1rem) at the bottom
- and a 12px bottom mask fade (layouts/docs/slots/sidebar.js), so the last
- nav items sit under the fade and can't be scrolled fully into view. The
- id+attribute selector outranks the `.p-4` utility, so this longhand wins
- over the shorthand's bottom value without touching the other sides. */
#nd-sidebar [data-radix-scroll-area-viewport],
#nd-sidebar-mobile [data-radix-scroll-area-viewport] {
- padding-bottom: 2rem;
+ padding-bottom: 2rem;
}
-/* ── Default-Fumadocs visual tells, neutralised ──────────────────────
- Anything that could leak a stock accent / off-token colour is pinned
- back to our oklch tokens via the fd-* bridge (no literal overrides). */
#nd-sidebar [data-active="true"] svg {
- color: var(--foreground);
+ color: var(--foreground);
}
diff --git a/components/docs/component-customizer.tsx b/components/docs/component-customizer.tsx
index 65e9051b..8c384ccc 100644
--- a/components/docs/component-customizer.tsx
+++ b/components/docs/component-customizer.tsx
@@ -12,7 +12,7 @@ import { cn } from "@/lib/utils";
/** Shared pill surface so every non-slider control matches the elastic slider. */
const PILL =
- "flex h-11 items-center gap-3 rounded-xl bg-muted px-3 text-sm transition-colors";
+ "flex h-11 items-center gap-3 rounded-xl bg-control px-3 text-sm transition-colors";
/** Strip trailing zeros so the value reads like the reference (1, 0.8, 0.1). */
function formatNumber(v: number) {
@@ -148,7 +148,7 @@ function Control({
max={ctrl.max}
step={ctrl.step}
formatValue={formatNumber}
- className="[--elastic-slider-height:--spacing(11)] [--elastic-slider-radius:0.75rem]"
+ className="[--elastic-slider-height:--spacing(11)] [--elastic-slider-radius:0.75rem] "
/>
);
@@ -164,16 +164,18 @@ function Control({
case "select":
return (
- <SelectPill id={id} ctrl={ctrl} value={value as string} onChange={onChange} />
+ <SelectPill
+ id={id}
+ ctrl={ctrl}
+ value={value as string}
+ onChange={onChange}
+ />
);
case "boolean":
return (
<div className={cn(PILL, "justify-between")}>
- <Label
- htmlFor={id}
- className="font-medium text-muted-foreground"
- >
+ <Label htmlFor={id} className="font-medium text-muted-foreground">
{ctrl.label}
</Label>
<Switch
@@ -196,7 +198,7 @@ function Control({
<span className="font-mono text-sm font-medium uppercase text-foreground">
{value as string}
</span>
- <span className="relative inline-flex size-5 shrink-0 overflow-hidden rounded-md border border-border/60">
+ <span className="relative inline-flex size-5 shrink-0 overflow-hidden rounded-lg border border-border/60">
<input
id={id}
type="color"
diff --git a/components/ui/elastic-slider.tsx b/components/ui/elastic-slider.tsx
index f0b5f13b..cf74bb14 100644
--- a/components/ui/elastic-slider.tsx
+++ b/components/ui/elastic-slider.tsx
@@ -447,7 +447,7 @@ export function ElasticSlider({
ref={wrapperRef}
data-slot="elastic-slider"
className={cn(
- "[--elastic-slider-height:--spacing(9)] [--elastic-slider-radius:var(--radius-lg)]",
+ "[--elastic-slider-height:--spacing(9)] [--elastic-slider-radius:var(--radius-xl)]",
"[--elastic-slider-bg:var(--muted)]",
"[--elastic-slider-fill:var(--muted-foreground)]/10",
"[--elastic-slider-fill-active:var(--muted-foreground)]/20",
@@ -473,8 +473,8 @@ export function ElasticSlider({
aria-valuenow={value}
aria-valuetext={displayValue}
className={cn(
- "group/elastic-slider absolute inset-0 cursor-pointer touch-none overflow-hidden rounded-(--elastic-slider-radius) bg-(--elastic-slider-bg) outline-none select-none",
- "data-[focus-visible=true]:ring-2 data-[focus-visible=true]:ring-ring/50 data-[focus-visible=true]:ring-offset-1 data-[focus-visible=true]:ring-offset-background",
+ "group/elastic-slider absolute inset-0 cursor-pointer touch-none overflow-hidden rounded-xl bg-(--elastic-slider-bg) outline-none select-none",
+ "data-[focus-visible=true]:ring-2 data-[focus-visible=true]:ring-ring/50 data-[focus-visible=true]:ring-offset-1 data-[focus-visible=true]:ring-offset-background bg-control",
)}
style={{ width: rubberWidth, x: rubberX }}
onPointerDown={handlePointerDown}