Jump to a page or a component.
Twenty-three complete palettes across twelve hues. Pick one and every primitive below follows — this page is itself the reference implementation.
Write the palette's variables onto the root element. That is the whole mechanism — there is no provider to mount and no context to thread.
import { appThemeCssVars, COLOR_THEMES } from "@/lib/color-themes";
const theme = COLOR_THEMES.midnight;
for (const [name, value] of Object.entries(appThemeCssVars(theme))) {
document.documentElement.style.setProperty(name, value);
}
document.documentElement.classList.toggle("dark", !theme.isLight);light is simply the palette whose isLight flag is true.dark: and fails the build on a hit.