Queen for shadcn/ui

Queen is a shadcn/ui theme built around a vivid deep yellow primary color (#513c0b) with muted light yellow accents (#dcd7cb). The light mode uses a neutral background (#fdfbf6). Dark mode keeps the vivid deep yellow primary (#513c0b) on a yellow-tinted background (#0c0903).

Color palette

TokenLightDark
Background
#fdfbf6snow
#0c0903black
Foreground
#0c0903black
#fdfdfcwhite
Card
#fdfbf6snow
#0c0903black
Card foreground
#0c0903black
#fdfdfcwhite
Popover
#fdfbf6snow
#0c0903black
Popover foreground
#0c0903black
#fdfdfcwhite
Primary
#513c0bsaddlebrown
#513c0bsaddlebrown
Primary foreground
#f2d89ckhaki
#f2d89ckhaki
Secondary
#dcd7cblightgrey
#343332darkslategray
Secondary foreground
#463f30darkslategray
#cdcccblightgrey
Muted
#e8dfc9gainsboro
#362c17darkslategray
Muted foreground
#4e4b46darkslategray
#b9b7b1silver
Accent
#dcd7cblightgrey
#343332darkslategray
Accent foreground
#463f30darkslategray
#cdcccblightgrey
Destructive
#d5230bfirebrick
#ed270corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#513c0bsaddlebrown
#513c0bsaddlebrown

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button7.52:1AAA
Secondary button7.25:1AAA
Muted text6.54:1AA
Accent7.25:1AAA
Destructive5.15:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.52:1AAA
Secondary button7.85:1AAA
Muted text6.83:1AA
Accent7.85:1AAA
Destructive4.27:1AA Large

CSS variables

Paste this into your globals.css to use Queen in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 87.456);
  --foreground: oklch(0.142 0.017 92.4);
  --muted: oklch(0.905 0.03 87.551);
  --muted-foreground: oklch(0.415 0.009 87.517);
  --popover: oklch(0.989 0.007 87.456);
  --popover-foreground: oklch(0.142 0.017 92.4);
  --card: oklch(0.989 0.007 87.456);
  --card-foreground: oklch(0.142 0.017 92.4);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.37 0.069 83.613);
  --primary-foreground: oklch(0.89 0.083 87.407);
  --secondary: oklch(0.88 0.017 87.507);
  --secondary-foreground: oklch(0.37 0.027 87.528);
  --accent: oklch(0.88 0.017 87.507);
  --accent-foreground: oklch(0.37 0.027 87.528);
  --destructive: oklch(0.561 0.213 30.848);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.37 0.069 83.613);
  --chart-1: oklch(0.37 0.069 83.613);
  --chart-2: oklch(0.88 0.017 87.507);
  --chart-3: oklch(0.88 0.017 87.507);
  --chart-4: oklch(0.901 0.014 87.492);
  --chart-5: oklch(0.373 0.071 83.243);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.017 92.452);
  --foreground: oklch(0.994 0.002 87.429);
  --muted: oklch(0.299 0.037 86.978);
  --muted-foreground: oklch(0.778 0.008 87.47);
  --popover: oklch(0.142 0.017 92.452);
  --popover-foreground: oklch(0.994 0.002 87.429);
  --card: oklch(0.142 0.017 92.452);
  --card-foreground: oklch(0.994 0.002 87.429);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.37 0.069 83.613);
  --primary-foreground: oklch(0.89 0.083 87.407);
  --secondary: oklch(0.322 0.001 87.441);
  --secondary-foreground: oklch(0.846 0.001 87.426);
  --accent: oklch(0.322 0.001 87.441);
  --accent-foreground: oklch(0.846 0.001 87.426);
  --destructive: oklch(0.608 0.232 30.815);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.37 0.069 83.613);
  --chart-1: oklch(0.37 0.069 83.613);
  --chart-2: oklch(0.322 0.001 87.441);
  --chart-3: oklch(0.322 0.001 87.441);
  --chart-4: oklch(0.352 0.001 87.442);
  --chart-5: oklch(0.373 0.071 83.243);
}