Theming
shadcn-style CSS variables in OKLCH, with a light and a dark mode.
Choose a theme
pyblade-ui theme list
pyblade-ui theme set --base slate --color rose --radius 0.75remThe tint of the grays: backgrounds, borders, muted text.
neutralzincslatestonegrayThey set --primary and --ring.
neutralbluegreenvioletroseredorangeyellowThe radius, --radius, is used to compute rounded-sm, rounded-md, rounded-lg and rounded-xl.
The variables
--background, --foreground, --card, --popover, --primary, --secondary, --muted, --accent, --destructive, --border, --input, --ring, --chart-1 to --chart-5, plus --success and --warning with their -foreground, and the sidebar variables --sidebar-*. They are exposed to Tailwind through @theme inline: write bg-primary, text-muted-foreground, border-border…
Customize
Write your variables below the marker in theme.css: theme set regenerates the whole file except that part.
/* pyblade-ui:custom -- everything below this line is kept when the theme is regenerated */
:root { --primary: oklch(0.6 0.2 160); }
.dark { --primary: oklch(0.7 0.18 160); }Dark mode
It relies on the .dark class on <html>. theme-script applies it before the page paints, with no flash, and mode-toggle switches it.