Theming
Theme bext-ui with CSS variables.
bext/ui themes with CSS variables. Components reference semantic tokens (bg-primary, text-muted-foreground) that resolve to HSL custom properties — so a single class is correct in both light and dark.
CSS variables
Values are space-separated HSL channels, consumed as hsl(var(--primary)). This makes opacity modifiers like bg-primary/90 work.
Dark mode
Override the same variables under a .dark selector. See Dark Mode for the toggle.
Adding colors
Add a new token by defining it in both :root and .dark, then a matching utility class. Browse the full color reference.
On This Page