What Is Tailwind OKLCH Theme Studio?
Tailwind OKLCH Theme Studio is a local browser design-system workbench that turns a single brand color into a perceptually uniform Tailwind CSS v4 50-950 OKLCH scale and harmonized light and dark shadcn/ui CSS variables. Every OKLCH conversion, Display-P3 gamut calculation, and WCAG + APCA contrast check runs 100% locally in your browser with zero uploads.
Key Capabilities & Workflow
- Perceptually Uniform OKLCH 50-950 Scale: Unlike legacy HSL palettes where blues look much darker than yellows at identical lightness percentages, OKLCH keeps visual brightness consistent across all 11 stops from
50to950. Inspectoklch(), sRGBHEX, andcolor(display-p3 ...)values for every swatch with one-click copy. - Live shadcn/ui Component Preview: Tune Primary, Accent, Destructive hues, neutral gray base (
Slate,Zinc,Stone,Neutral, orBrand Tinted), chroma intensity, and--radiuswhile previewing realistic buttons, inputs, badges, alerts, and cards across Light and Dark modes. - Automatic WCAG 2.1 + APCA Contrast Audit: Verify all 7 critical foreground/background semantic pairs with exact WCAG 2.1 ratios (
AAA,AA,AA-Large) alongside modern perceptual APCA (Lc) ratings so text stays legible before shipping. - Instant Copy & Download Formats: Export clean Tailwind CSS v4
@theme inlineblocks, drop-in shadcn/ui:root/.darkCSS variables, or structured W3C Design Tokens JSON (.tokens.json) for Figma and multi-platform pipelines.
Frequently Asked Questions
Should I export OKLCH, HEX, or Display-P3?
Tailwind CSS v4 defaults to oklch(), which is supported natively by modern Chrome, Safari, Edge, and Firefox. Switch the output color space to HEX for maximum legacy compatibility or Display-P3 when targeting wide-gamut displays.
Are my custom themes saved locally?
Yes. Changes auto-save inside your browser storage (IndexedDB) after roughly 1.2~5 seconds so you can restore your last theme on return or clear only this studio’s local saves whenever you want.