Theming
Change colors and radius with CSS variables, pick a theme, and how dark mode works.
How theming works
VenusUI components use the same CSS variables as shadcn/ui: --background, --foreground, --primary, --muted, --border, --radius and the rest, defined in your globals.css. Change the variables and every component follows, in light and dark.
Selected and active states (switches that are on, the current step, progress bars, the active tab) use --primary. With shadcn’s default palettes, primary is almost the same as the text color, so components look neutral until you pick an accent.
Pick a theme
Open the theme page (or the palette button in the header), choose a base color, an accent and a radius, and watch every component and block on this site change. Then use Copy CSS.
Replace the :root and .dark blocks in your globals.css with what you copied. For example, Zinc with a violet accent starts like this:
globals.css (excerpt)
:root {
--primary: oklch(0.541 0.281 293.009);
--primary-foreground: oklch(0.985 0 0);
--radius: 0.625rem;
/* …the other variables */
}
.dark {
--primary: oklch(0.702 0.183 293.541);
--primary-foreground: oklch(0.205 0 0);
/* …the other variables */
}
Dark mode
Dark mode is the .dark class, as in shadcn’s default setup: put it on <html> and the dark variables apply. Some blocks wrap themselves in .dark so they stay dark in both themes, which also relies on the class-based setup.
3D components
WebGL components such as Dotted Globe and Arc Globe draw in the CSS text color, read when they mount and again when the theme class on <html> changes. Tint them with a text class like text-primary. Colors passed as props go to three.js, which reads hex, rgb() and hsl() but not oklch().