Themes
@nisli/ui is themed with CSS variables — a small, shadcn-compatible token layer you
own in theme.css. Light and
dark are the same tokens, re-declared under a .dark
class. Toggle the theme (top-right) to watch every token below flip.
Color tokens
Semantic pairs — a surface and the foreground that sits on it.
Chart colors
Five categorical colors for data visualization.
Radius
Every radius derives from a single --radius token.
Typography
The quick brown fox
The quick brown fox
Body copy in the foreground color — jumps over the lazy dog while staying perfectly legible on the background surface.
Muted secondary text for captions and hints.
Own your theme
Theming is editing variables. Override any token in your
theme.css — no config, no
build plugin, no rebuild of the components.
:root {
--primary: oklch(0.55 0.22 264); /* your brand */
--primary-foreground: oklch(0.98 0 0);
--radius: 0.5rem;
}
.dark {
--primary: oklch(0.7 0.19 264);
}