Theming
omverse-ui uses CSS custom properties for all design tokens. Override them to match your brand.
How it works
All omverse-ui styles are built on CSS custom properties (variables) declared inside a @theme block via omverse-ui/styles. This means every color, radius, and spacing value is a single CSS variable you can override anywhere in your own stylesheet — no build step, no config file, no re-compilation required.
Tailwind v4 reads these tokens automatically via @theme, making them available as utility classes too (e.g. bg-primary, text-on-primary).
Overriding design tokens
After importing omverse-ui/styles, add a :root block in the same file and set any tokens you want to change. Your values win due to CSS cascade order.
Dark mode
omverse-ui ships with a light theme by default. You can enable dark mode via the standard CSS media query or a class-based toggle — whichever matches your app's approach.
Media query (system preference)
Class-based toggle
If you manage dark mode with a .dark class on <html>, scope your overrides to that class instead.
Tips
- See the Design tokens page for a full list of every available token.
- Tokens prefixed
--color-on-*are foreground colors designed for legibility on top of their background counterpart. - Radius and spacing tokens (
--radius-*) follow the same override pattern.