Every value on this page comes from the engine
Build one theme.
Preview it everywhere.
Pick a brand colour. Thevio derives OKLCH scales, light and dark tokens and every contrast pair, fixes what fails WCAG 2, then hands you a link and the code.
- Brand
- #2563eb
- Neutral tint
- pure grey
- Radius
- 0.625rem
- Style
- shadcn
- WCAG 2 pairs
- 58/58
- Auto-fixes
- 5
Brand scale
oklch(0.5461 0.2152 262.88) → step 600Share this theme
97 charsOnly what differs from the defaults travels in the link.
Chart series
vs page · min 3:1Contrast ratio of each series against the page.
Preview of the Default theme: brand #2563eb, radius 0.625rem, rounded buttons.
01Build
One colour in.
A whole system out.
Your brand colour lands exactly on its nearest step, untouched. Every other step follows a lightness curve averaged from Tailwind v4, with chroma peaking at 600 and every value mapped into sRGB.
Brand
oklch(0.5461 0.2152 262.88) · lands on 600
- 50
- 100
- 200
- 300
- 400
- 500
- 600
- 700
- 800
- 900
- 950
Neutral
Tailwind neutral lightness, tinted
- 50
- 100
- 200
- 300
- 400
- 500
- 600
- 700
- 800
- 900
- 950
Your colour, untouched. Numbers on swatches are OKLCH lightness.
Status colours
Re-derived for dark mode, never mirrored.
light
- destructive#e40016
- success#16a34a
- warning#f59e09
- info#0084c7
dark
- destructive#ff7568
- success#16a34a
- warning#b27100
- info#0084c7
02Validate
Contrast you never have to check.
Every text, control, focus and chart pair is measured with WCAG 2, 29 per mode. What fails is fixed by moving lightness only, so the hue you picked stays yours. Even stock shadcn neutral needs a few.
Pairs checked
58
29 per mode: text, controls, focus, charts
Passing before auto-fix
52/58
As the theme was typed in
Passing after
58/58
5 tokens moved in lightness only
light
29/29 pass
- Aa
foreground
on background
19.79:1
AAA min 4.5
- Aa
muted-foreground
on background
4.92:1
AA min 4.5
- Aa
primary-foreground
on primary
4.95:1
AA min 4.5
- Aa
secondary-foreground
on secondary
16.42:1
AAA min 4.5
- Aa
destructive-foreground
on destructive
4.67:1
AA min 4.5
primary
on background
5.17:1
UI min 3
input
on background
3.01:1
UI min 3
chart-2
on card
3.01:1
UI min 3
dark
29/29 pass
- Aa
foreground
on background
18.96:1
AAA min 4.5
- Aa
muted-foreground
on background
7.63:1
AAA min 4.5
- Aa
primary-foreground
on primary
4.95:1
AA min 4.5
- Aa
secondary-foreground
on secondary
14.48:1
AAA min 4.5
- Aa
destructive-foreground
on destructive
6.87:1
AA min 4.5
primary
on background
3.83:1
UI min 3
input
on background
3.01:1
UI min 3
chart-2
on card
3.97:1
UI min 3
What auto-fix changed
- muted-foreground · light4.344.51
- input · light1.263.01
- ring · light2.593.01
- sidebar-ring · light2.483.01
- input · dark1.473.01
04Export
Paste it anywhere.
Plain functions turn the resolved theme into files: shadcn's globals.css for Tailwind v4, a Tailwind @theme with the full scales, and SCSS. What you see below is their actual output.
globals.css · 192 lines
/* Thevio theme "Untitled" · globals.css · https://thevio.zubyr.dev/studio?t=1N4IgbiBcCMA0IBkBGUDaAGAdAVgCwDYAOWdEgXXgQAs0t8j8TzKBLWzewx09CxCSBg7YA7Lia94AERqC4PEpgDMSgJxkAvkA *//* * Component style (the --tv-* variables encode it): * surfaceStyle: border * density: default * buttonShape: rounded * buttonStyle: solid * inputStyle: outline * focusRing: ring * tabStyle: segmented */:root { --radius: 0.625rem; --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --font-heading: "Inter", ui-sans-serif, system-ui, sans-serif; --tracking-normal: 0em; --spacing: 0.25rem; --shadow-2xs: 0px 1px 3px 0px oklch(0 0 0 / 5%); --shadow-xs: 0px 1px 3px 0px oklch(0 0 0 / 5%); --shadow-sm: 0px 1px 3px 0px oklch(0 0 0 / 10%), 0px 1px 2px -1px oklch(0 0 0 / 10%); --shadow-md: 0px 1px 3px 0px oklch(0 0 0 / 10%), 0px 2px 4px -1px oklch(0 0 0 / 10%); --shadow-lg: 0px 1px 3px 0px oklch(0 0 0 / 10%), 0px 4px 6px -1px oklch(0 0 0 / 10%); --shadow-xl: 0px 1px 3px 0px oklch(0 0 0 / 10%), 0px 8px 10px -1px oklch(0 0 0 / 10%); --shadow-2xl: 0px 1px 3px 0px oklch(0 0 0 / 25%); --tv-control-h: 2.25rem; --tv-pad-x: 1rem; --tv-gap: 0.75rem; --tv-card-pad: 1.5rem; --tv-row-h: 2.5rem; --tv-text: 0.875rem; --tv-btn-radius: 0.625rem; --tv-surface-border: 1px; --tv-surface-shadow: 0 0 #0000; --tv-ring-width: 3px; --tv-ring-offset: 0px; --tv-hover-shift: 0.05; --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); --card: oklch(1 0 0); --card-foreground: oklch(0.145 0 0); --popover: oklch(1 0 0); --popover-foreground: oklch(0.145 0 0); --primary: oklch(0.5461 0.2152 262.88); --primary-foreground: oklch(0.985 0.007 262.88); --secondary: oklch(0.97 0 0); --secondary-foreground: oklch(0.205 0 0); --muted: oklch(0.97 0 0); --muted-foreground: oklch(0.5468 0 0); --accent: oklch(0.97 0 0); --accent-foreground: oklch(0.205 0 0); --destructive: oklch(0.577 0.245 27.33); --destructive-foreground: oklch(0.985 0.0072 27.33); --border: oklch(0.922 0 0); --input: oklch(0.6686 0 0); --ring: oklch(0.6686 0 0); --chart-1: oklch(0.6 0.2 262.88); --chart-2: oklch(0.6831 0.1701 52.88); --chart-3: oklch(0.48 0.2 322.88); --chart-4: oklch(0.4739 0.0911 172.88); --chart-5: oklch(0.6547 0.1139 187.88); --sidebar: oklch(0.985 0 0); --sidebar-foreground: oklch(0.145 0 0); --sidebar-primary: oklch(0.5461 0.2152 262.88); --sidebar-primary-foreground: oklch(0.985 0.007 262.88); --sidebar-accent: oklch(0.97 0 0); --sidebar-accent-foreground: oklch(0.205 0 0); --sidebar-border: oklch(0.922 0 0); --sidebar-ring: oklch(0.6574 0 0); --success: oklch(0.627 0.17 149.21); --success-foreground: oklch(0.205 0.04 149.21); --warning: oklch(0.769 0.165 70.08); --warning-foreground: oklch(0.205 0.04 70.08); --info: oklch(0.588 0.158 241.97); --info-foreground: oklch(0 0 0); --tv-soft-bg: oklch(0.9455 0.0258 262.88); --tv-soft-fg: oklch(0.5408 0.2152 262.88); --tv-primary-text: oklch(0.5461 0.2152 262.88); --tv-field: oklch(0.97 0 0); --tv-line: oklch(0.6462 0 0);}.dark { --background: oklch(0.145 0 0); --foreground: oklch(0.985 0 0); --card: oklch(0.205 0 0); --card-foreground: oklch(0.985 0 0); --popover: oklch(0.205 0 0); --popover-foreground: oklch(0.985 0 0); --primary: oklch(0.5461 0.2152 262.88); --primary-foreground: oklch(0.985 0.007 262.88); --secondary: oklch(0.269 0 0); --secondary-foreground: oklch(0.985 0 0); --muted: oklch(0.269 0 0); --muted-foreground: oklch(0.708 0 0); --accent: oklch(0.269 0 0); --accent-foreground: oklch(0.985 0 0); --destructive: oklch(0.7239 0.1712 27.33); --destructive-foreground: oklch(0.205 0.04 27.33); --border: oklch(1 0 0 / 10%); --input: oklch(1 0 0 / 33.9%); --ring: oklch(0.556 0 0); --chart-1: oklch(0.7 0.1566 262.88); --chart-2: oklch(0.58 0.1474 52.88); --chart-3: oklch(0.8 0.1221 2.88); --chart-4: oklch(0.64 0.1426 112.88); --chart-5: oklch(0.81 0.1409 187.88); --sidebar: oklch(0.205 0 0); --sidebar-foreground: oklch(0.985 0 0); --sidebar-primary: oklch(0.5461 0.2152 262.88); --sidebar-primary-foreground: oklch(0.985 0.007 262.88); --sidebar-accent: oklch(0.269 0 0); --sidebar-accent-foreground: oklch(0.985 0 0); --sidebar-border: oklch(1 0 0 / 10%); --sidebar-ring: oklch(0.556 0 0); --success: oklch(0.627 0.17 149.21); --success-foreground: oklch(0.205 0.04 149.21); --warning: oklch(0.6028 0.1305 70.08); --warning-foreground: oklch(0 0 0); --info: oklch(0.588 0.158 241.97); --info-foreground: oklch(0 0 0); --tv-soft-bg: oklch(0.2252 0.043 262.88); --tv-soft-fg: oklch(0.6181 0.2057 262.88); --tv-primary-text: oklch(0.6079 0.2121 262.88); --tv-field: oklch(0.269 0 0); --tv-line: oklch(1 0 0 / 33.9%);}@theme inline { --color-background: var(--background); --color-foreground: var(--foreground); --color-card: var(--card); --color-card-foreground: var(--card-foreground); --color-popover: var(--popover); --color-popover-foreground: var(--popover-foreground); --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground); --color-secondary: var(--secondary); --color-secondary-foreground: var(--secondary-foreground); --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground); --color-accent: var(--accent); --color-accent-foreground: var(--accent-foreground); --color-destructive: var(--destructive); --color-destructive-foreground: var(--destructive-foreground); --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); --color-chart-1: var(--chart-1); --color-chart-2: var(--chart-2); --color-chart-3: var(--chart-3); --color-chart-4: var(--chart-4); --color-chart-5: var(--chart-5); --color-sidebar: var(--sidebar); --color-sidebar-foreground: var(--sidebar-foreground); --color-sidebar-primary: var(--sidebar-primary); --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); --color-sidebar-accent: var(--sidebar-accent); --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-border: var(--sidebar-border); --color-sidebar-ring: var(--sidebar-ring); --color-success: var(--success); --color-success-foreground: var(--success-foreground); --color-warning: var(--warning); --color-warning-foreground: var(--warning-foreground); --color-info: var(--info); --color-info-foreground: var(--info-foreground); --color-tv-soft-bg: var(--tv-soft-bg); --color-tv-soft-fg: var(--tv-soft-fg); --color-tv-primary-text: var(--tv-primary-text); --color-tv-field: var(--tv-field); --color-tv-line: var(--tv-line); --font-sans: var(--font-sans); --font-mono: var(--font-mono); --font-heading: var(--font-heading); --radius-sm: calc(var(--radius) * 0.6); --radius-md: calc(var(--radius) * 0.8); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) * 1.4); --radius-2xl: calc(var(--radius) * 1.8); --radius-3xl: calc(var(--radius) * 2.2); --radius-4xl: calc(var(--radius) * 2.6); --shadow-2xs: var(--shadow-2xs); --shadow-xs: var(--shadow-xs); --shadow-sm: var(--shadow-sm); --shadow-md: var(--shadow-md); --shadow-lg: var(--shadow-lg); --shadow-xl: var(--shadow-xl); --shadow-2xl: var(--shadow-2xl);}Start from your brand colour.
One theme, checked in both modes, ready to share and paste.
Open the Studio