Theming

Every color, radius, and font in Veloria UI is a CSS custom property. Override them in your global CSS to match your brand.

How it works

Veloria UI defines all design tokens as CSS custom properties on the :root element. The Tailwind plugin maps these to Tailwind classes. To customise the theme, override the variables in your global CSS file — after importing the Veloria UI stylesheet.

ts
/* app/globals.cssafter @import "veloria-ui/styles" */
 
:root {
/* Change the primary brand color */
--primary: 142 70% 45%; /* green */
--primary-foreground: 0 0% 100%;
 
/* Rounder corners */
--radius: 0.75rem;
}
 
.dark {
/* Darker primary for dark mode */
--primary: 142 60% 55%;
}

Colors use the H S% L% format (HSL without the hsl() wrapper). This lets Tailwind compose opacity variants like bg-primary/20.

All tokens

TokenDescription
--backgroundPage background
--foregroundDefault text
--primaryBrand / primary action color
--primary-foregroundText on primary background
--secondarySecondary surface
--mutedMuted / subtle surface
--muted-foregroundMuted text
--accentHover/focus highlight
--destructiveError / danger color
--successSuccess color
--warningWarning color
--borderDefault border color
--inputForm input border
--ringFocus ring color
--radiusBase border radius

Custom fonts

Override the font variables to use your own typefaces:

json
/* app/globals.css */
:root {
--font-sans: "Your Sans Font", system-ui, sans-serif;
--font-mono: "Your Mono Font", monospace;
}