Theme Studio
A live editor for shadcn/ui themes that scores contrast as you pick: presets, a full colour picker, shareable links and paste-ready OKLCH.
Visit the live site ↗
The 30-second version.
Retheming shadcn/ui meant editing colour tokens, reloading and guessing, and nothing told you the label on your new button failed contrast.
Built a live editor, then audited it at 1440 and 390 px and rebuilt the weakest parts: a full picker, OKLCH with alpha as the stored value, contrast on every token row and a phone layout built on sheets.
A browser-only theme editor that scores 13 real component pairings live, fixes a failing one in a click, and exports paste-ready CSS, Tailwind v4 or JSON.
- Presets
- 5
- Theme vars
- 19
- Contrast pairs
- 13
- Backend
- 0
Edit, reload, guess, repeat.
A shadcn/ui theme is nineteen colour variables. Changing them by hand means reloading and guessing how every component will look, and whether the text on it can still be read.
- Who: developers retheming a shadcn/ui project.
- Constraint: the export has to paste straight back into a project.
- Risk: a picker that makes any colour easy to choose, including the ones that fail WCAG.
What I owned.
What I owned
- Audit, interaction and visual design
- Colour maths, contrast and export
- Frontend, and QA at desktop and phone sizes
How it came together.
Audit
Captured eleven states at 1440 and 390 px and ranked ten problems by user impact, starting with a picker that had no alpha and no formats.

Picker
Alpha, an eyedropper where the browser has one, four formats and saved swatches, built onto the picker already in the app.

Contrast
Thirteen pairings read from what the components actually paint, scored on every row, with a one-click fix that only moves lightness.

Phone
Preview first, shorter preset cards, and a picker that takes over the sheet instead of floating on top of it.

The preview changes; the editor doesn't.
Your theme is applied as scoped variables on ten real shadcn components, while the editor's own chrome keeps a fixed palette, so there is always a stable reference to judge colours against. Compare puts light and dark side by side.

OKLCH inside, any format at the edges.
The theme is stored as OKLCH with alpha. The picker takes hex, RGB, HSL or OKLCH, and the CSS, Tailwind v4 and JSON exports all write oklch() values, while links shared back when the app stored HSL still open.

A score you can check.
Every token row shows its worst AA and AAA result, and the report explains each pairing. The presets ship as designed, failures included: Ivory light passes 10 of 13, and one fix on the muted text takes it to 13.

What I chose, and what it cost.
Open any decision to see the alternative and the price I paid for it.
What shipped.

BeforeAfter- Component pairings scored live
- 13
- Colour formats the picker takes
- 4
- Backend services
- 0
- InputPicker + presetsHex, RGB, HSL or OKLCH, with alpha
- StateOKLCH source of truthPer mode, contrast scored, diffed to URL
- OutputExport + shareCSS, Tailwind v4, JSON, shareable URL
One static Next.js App Router page renders a single client component. There is no API route, no database and no auth anywhere in the tree. A theme is a plain in-memory object: a name plus a light and a dark record of nineteen colours, stored as canonical OKLCH with alpha and produced by five presets or a seed generator. Edits apply to the preview immediately, while URL writes are debounced and hold only what differs from the preset, and the parser still reads links from the HSL era. Contrast uses the WCAG relative-luminance formula with alpha composited over its background, and the fix searches along OKLCH lightness for the smallest change that passes without breaking a pairing that already passes. Saved swatches live in local storage behind a guard; the only other persistence is the URL.
- Next.js
- TypeScript
- Tailwind
- shadcn/ui
- react-colorful
What I'd change, and what I'd keep.
I'd do differently
Measure the preview's render time instead of assuming it, test the colour conversions with unit tests rather than by hand, and make the radius token editable.
I'd keep
One canonical value per colour, driving the preview, the contrast maths and every export.
Open to full-time product design and full-stack development roles. Let's build something people rely on.
javiertpga@gmail.com