Theming
Colors, dark mode and motion tokens.
Components use the same CSS variables as shadcn/ui, so an existing theme applies automatically. If you are starting fresh, define these tokens in your global CSS:
:root {
--background: oklch(0.99 0.002 90);
--foreground: oklch(0.2 0.006 60);
--card: oklch(1 0 0);
--muted: oklch(0.96 0.003 90);
--muted-foreground: oklch(0.5 0.01 60);
--border: oklch(0.91 0.004 90);
--ring: oklch(0.7 0.19 45);
}
.dark {
--background: oklch(0.15 0.004 60);
--foreground: oklch(0.96 0.003 90);
--card: oklch(0.18 0.005 60);
--muted: oklch(0.22 0.005 60);
--muted-foreground: oklch(0.68 0.01 70);
--border: oklch(0.27 0.006 60);
}Dark mode
Components follow a .dark class on the root element. The Theme Toggle component works with next-themes.
Changing motion
Durations and spring values are plain props or constants at the top of each file. Wrap your app in Motion's MotionConfig reducedMotion="user" to apply the user's motion preference to your own animations as well.