shadcn/ui Theme Generator
Free shadcn/ui theme generator. Create complete light and dark HSL CSS variable themes with radius config from one base color. Copy-paste globals.css ready.
Loading tool...
What is shadcn/ui Theme Generator?
The shadcn/ui Theme Generator converts one brand color into the full set of shadcn/ui HSL CSS variables for light and dark modes, plus a radius token. Preview the result live and paste the generated block straight into globals.css.
Key Benefits
- Consistent, professional themes without hand-picking twenty colors.
- Light and dark modes generated together so they always match.
- Live component previews catch issues before you commit.
- Copy-paste ready output - zero manual formatting.
- Fast enough to iterate through brand palettes in minutes.
Common Use Cases
- •Rebranding a shadcn/ui project with a new primary color.
- •Starting a new dashboard with a coherent design token set.
- •Comparing candidate brand colors in real UI previews.
- •Aligning internal tools with corporate design guidelines.
How to Use the shadcn/ui Theme Generator
- Pick your brand color: Use the color picker to choose the base color for your primary tokens.
- Tune the radius: Slide the corner radius to match your design - 0.5rem is the shadcn default.
- Check the previews: Compare buttons and cards in light and dark mode side by side.
- Copy into globals.css: Copy the generated block and replace the variables in your globals.css.
Key Features
- Complete :root and .dark blocks generated from one base color.
- Every shadcn/ui token: background, primary, secondary, muted, accent, ring.
- Radius token slider from 0 to 1.5 rem.
- Live component previews in both light and dark modes.
- Copy the whole globals.css block with one click.
- Runs offline - nothing is uploaded, nothing tracked.