Tools38

Design System Tokens

shadcn/ui Theme Generator.

Preview semantic shadcn/ui components in Light and Dark modes and copy production globals.css.

Active palette
Primary
Deploy Design System

Semantic tokens adapt across light and dark themes automatically.

v4 Ready
Overview Tokens Analytics
WCAG Contrast Target 5.8:1 AA

Export palette

Import colors

Paste CSS variables, JSON tokens, a Coolors URL, or comma-separated HEX / RGB / OKLCH values (3–8 colors).

Try:

Saved Palettes

Stored in your browser cache—no account required.

Blog How to generate a custom shadcn/ui & Tailwind v4 theme Read the guide

Generate complete Light & Dark shadcn/ui themes for Tailwind v4 OKLCH and v3 HSL

Customize your primary brand color, neutral base family (Zinc, Slate, Stone, or Neutral), and border radius while previewing real semantic shadcn/ui cards, inputs, focus rings, tabs, badges, and chart series in both Light and Dark modes.

Live interactive shadcn/ui preview paired with ready-to-paste :root and .dark globals.css.
QUICK VIDEO TUTORIAL How to generate a custom shadcn/ui & Tailwind v4 theme Preview Light and Dark semantic tokens live and copy production globals.css. Watch the video

How to generate a custom shadcn/ui & Tailwind v4 theme

Ship cohesive React & Tailwind design systems faster

Tailwind v4 & v3

OKLCH & HSL exports

Outputs complete :root and .dark CSS variable blocks including --chart-1 through --chart-5.

Contrast-Aware

Automatic foregrounds

Calculates readable --primary-foreground and lifted dark-mode primary chroma automatically.

4 Neutral Bases

Zinc, Slate, Stone & Neutral

Pair cool blue-slate or warm architectural stone surfaces with your brand accent.

Key capabilities

Calibrated dark surface elevation

Synthesizes distinct canvas, card surface, hairline border, and lifted accent tokens across 4 dark profiles.

Live split UI

Preview Light and Dark product cards side by side with real-time WCAG contrast verification.

11-step 50–950 shade scales

Builds smooth tints and shades in OKLCH while pinning your exact input HEX at its natural lightness stop.

Anchor accuracy

Click any tile from 50 to 950 to copy its HEX, OKLCH, RGB, or HSL code immediately.

WCAG 2.1 AA/AAA + APCA Lc

Evaluates both standard luminance contrast ratios and polarity-aware perceptual APCA scores.

Dual scoring

Check normal body copy (4.5:1 AA, 7:1 AAA), large headlines (3:1), and perceptual Lc values side by side.

Synced active palette across tools

Move freely between Generator, Visualizer, Contrast, Tailwind, and Vision without re-entering colors.

How state travels

Your active palette syncs automatically in browser storage across every module, and visiting any tool directly starts from a fresh harmonious palette.

Formats & privacy

Supported inputs
Primary Brand #HEX + Zinc, Slate, Stone, or Neutral Scale
Outputs & exports
Tailwind v4 OKLCH & v3 HSL globals.css (:root + .dark) Tokens

Supports 3 to 8 active palette roles with unlimited local saves and exports—no account required.

All color math, simulations, and exports run locally in your browser while syncing your active palette across tools.

FAQ

Good to know.

A few answers before you get started.

On your device
Should I choose OKLCH (v4) or HSL (v3)?

Recent shadcn/ui + Tailwind CSS v4 projects use complete oklch(...) values in globals.css, whereas legacy Tailwind v3 setups expect bare H S% L% channel numbers.

Which CSS variables are generated in globals.css?

Both :root and .dark blocks include --background, --foreground, --card, --popover, --primary, --secondary, --muted, --accent, --destructive, --border, --input, --ring, and --chart-1..5.

How does the generator handle dark-mode primary legibility?

If your primary brand color is dark (below 0.45 OKLCH lightness), the .dark theme automatically lifts its lightness so buttons and focus rings stay crisp.

Can I adjust border-radius alongside colors?

Yes. Choose 0rem, 0.5rem, 0.625rem, or 0.875rem to preview sharp architectural corners or rounded pills and include --radius in your exported CSS.

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina