Free toolNo sign-up, runs in your browser

shadcn/ui theme generator

Pick a brand colour and get a full set of shadcn/ui CSS variables for light and dark mode, previewed on real components. Every text colour is checked at WCAG AA, and adjusted where it falls short.

theme-generator · globals.css
In your browser

A hex colour, such as #7c5cff.

Neutrals

Corner radius

Preview

Contrast, light mode

  • Body text16.3:1 passes
  • Muted text5.8:1 passes
  • Button label on primary5.2:1 passes
  • Primary as text and links4.6:1 passes
  • Destructive text4.6:1 passes
  • Focus ring3.9:1 passes
  • Chart colours3.6:1 passes

Your colour is deepened to #7053e6 in light mode, so primary text, links and filled buttons all read at WCAG AA.

Workspace

Overview

Revenue

$48,210

↑ 12.4% vs last month

Active users

3,904

↑ 4.1% vs last month

Churn

2.3%

↓ 0.4% vs last month

Usage by plan

Live
  • Pro
  • Team
  • Starter
  • Trial
  • Free

globals.css · :root and .dark

:root {
  --radius: 0.75rem;
  --background: #ffffff;
  --foreground: #14141b;
  --card: #ffffff;
  --card-foreground: #14141b;
  --popover: #ffffff;
  --popover-foreground: #14141b;
  --primary: #7053e6;
  --primary-foreground: #ffffff;
  --secondary: #f1f1f5;
  --secondary-foreground: #14141b;
  --muted: #f4f4f7;
  --muted-foreground: #5c5c6b;
  --accent: #f1f1f5;
  --accent-foreground: #14141b;
  --destructive: #c33d41;
  --border: #e7e7ee;
  --input: #e7e7ee;
  --ring: #7c5cff;
  --chart-1: #7c5cff;
  --chart-2: #0891b2;
  --chart-3: #ea580c;
  --chart-4: #c026d3;
  --chart-5: #0f766e;
  --sidebar: #f4f4f7;
  --sidebar-foreground: #14141b;
  --sidebar-primary: #7053e6;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f1f1f5;
  --sidebar-accent-foreground: #14141b;
  --sidebar-border: #e7e7ee;
  --sidebar-ring: #7c5cff;
}

.dark {
  --background: #0a0a0f;
  --foreground: #ededf2;
  --card: #111118;
  --card-foreground: #ededf2;
  --popover: #111118;
  --popover-foreground: #ededf2;
  --primary: #896cff;
  --primary-foreground: #0a0a0a;
  --secondary: #1a1a24;
  --secondary-foreground: #ededf2;
  --muted: #16161e;
  --muted-foreground: #a3a3b3;
  --accent: #1a1a24;
  --accent-foreground: #ededf2;
  --destructive: #f8717a;
  --border: #1f1f2a;
  --input: #1f1f2a;
  --ring: #7c5cff;
  --chart-1: #7c5cff;
  --chart-2: #22d3ee;
  --chart-3: #fb923c;
  --chart-4: #e879f9;
  --chart-5: #2dd4bf;
  --sidebar: #111118;
  --sidebar-foreground: #ededf2;
  --sidebar-primary: #896cff;
  --sidebar-primary-foreground: #0a0a0a;
  --sidebar-accent: #1a1a24;
  --sidebar-accent-foreground: #ededf2;
  --sidebar-border: #1f1f2a;
  --sidebar-ring: #7c5cff;
}

How it works

01

Pick your brand colour

Choose one of the examples, use the colour picker, or type its hex code.
02

Tune it and check it

Choose grey or brand-tinted neutrals and a corner radius, and look at the preview in light and dark mode.
03

Copy the CSS

Replace the :root and .dark blocks in your app's globals.css. Every shadcn/ui component picks it up.

Contrast first

Most generated themes look right and fail in use: a pale primary that can’t carry link text, or muted text that drops below 4.5:1 on a grey panel. This generator uses the same colour rules as GliaKit Studio, so each colour is moved only as far as it must to pass, and the chart colours keep your brand in the lead.

The preview uses the GliaKit components, built on shadcn/ui, so what you see is what your app gets. Starting from a logo instead of a hex code? Try brand colours from a logo or screenshot.

GliaKit Studio

Want every page of your app designed in this theme?

GliaKit Studio designs every page of your app from one prompt, in your brand colour, and exports clean Next.js code on shadcn/ui. Or start from the free kit and paste this theme into it.

Talvo's Overview page, designed in GliaKit Studio

About the theme generator

Still unsure? Email dejan@veljanoski.com and the person who built it will reply.

Theme it. Then design it.
Ship it designed.

Start a free Studio trial with no card, and get every page of your app designed in your brand.

Free trial, no card. Studio designs every page.

Or start from an example

or get the free kit