Theming
Colors, dark mode, and Tailwind tokens.
Every component is drop-in on both light and dark pages. Colours come from Tailwind dark: variants, and the variant is class-based: a dark class on any ancestor switches components inside it to their dark look, and no class means light. Wrap a section in class="light" to force light inside a dark page.
@import "tailwindcss";
/* dark: follows the nearest .dark / .light ancestor */
@custom-variant dark (&:where(.dark, .dark *):not(:where(.light, .light *):not(:where(.light .dark, .light .dark *))));
Canvas-drawn scenes read the same rule through useResolvedTheme and accept theme="auto" | "light" | "dark". Brand tokens live under signal-* (lilac) and framekit-* (orange), plus a font-display serif; the shadcn CLI adds them via the framekit-theme registry item.