Woozy for shadcn/ui

Woozy is a shadcn/ui theme built around a muted deep orange primary color (#2f291d) with muted deep violet accents (#291d2f). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted deep orange primary (#2f291d) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fdfbf7snow
#070603black
Foreground
#090602black
#ffffffwhite
Card
#fdfbf7snow
#070603black
Card foreground
#090602black
#ffffffwhite
Popover
#fdfbf7snow
#070603black
Popover foreground
#090602black
#ffffffwhite
Primary
#2f291ddarkslategray
#2f291ddarkslategray
Primary foreground
#cfc3b0silver
#cfc3b0silver
Secondary
#1d2f29darkslategray
#1d2f29darkslategray
Secondary foreground
#b0cfc3silver
#b0cfc3silver
Muted
#eef6f3whitesmoke
#09110eblack
Muted foreground
#5d6562dimgray
#9aa29fdarkgray
Accent
#291d2fdarkslategray
#291d2fdarkslategray
Accent foreground
#c3b0cfsilver
#c3b0cfsilver
Destructive
#a21f10firebrick
#eb4533tomato
Destructive foreground
#fdeae8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2f291ddarkslategray
#2f291ddarkslategray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button8.31:1AAA
Secondary button8.38:1AAA
Muted text5.46:1AA
Accent7.95:1AAA
Destructive6.59:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button8.31:1AAA
Secondary button8.38:1AAA
Muted text7.33:1AAA
Accent7.95:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 81.513);
  --foreground: oklch(0.124 0.017 89.1);
  --muted: oklch(0.967 0.009 172.298);
  --muted-foreground: oklch(0.498 0.011 171.948);
  --popover: oklch(0.987 0.005 81.513);
  --popover-foreground: oklch(0.124 0.017 89.1);
  --card: oklch(0.987 0.005 81.513);
  --card-foreground: oklch(0.124 0.017 89.1);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.283 0.022 81.127);
  --primary-foreground: oklch(0.822 0.029 81.451);
  --secondary: oklch(0.288 0.027 169.449);
  --secondary-foreground: oklch(0.827 0.036 171.241);
  --accent: oklch(0.254 0.037 312.677);
  --accent-foreground: oklch(0.783 0.048 313.232);
  --destructive: oklch(0.464 0.169 30.508);
  --destructive-foreground: oklch(0.951 0.021 25.181);
  --ring: oklch(0.283 0.022 81.127);
  --chart-1: oklch(0.283 0.022 81.127);
  --chart-2: oklch(0.288 0.027 169.449);
  --chart-3: oklch(0.254 0.037 312.677);
  --chart-4: oklch(0.323 0.032 169.304);
  --chart-5: oklch(0.285 0.025 81.015);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.009 86.009);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.167 0.014 170.05);
  --muted-foreground: oklch(0.705 0.01 172.17);
  --popover: oklch(0.12 0.009 86.009);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.009 86.009);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.283 0.022 81.127);
  --primary-foreground: oklch(0.822 0.029 81.451);
  --secondary: oklch(0.288 0.027 169.449);
  --secondary-foreground: oklch(0.827 0.036 171.241);
  --accent: oklch(0.254 0.037 312.677);
  --accent-foreground: oklch(0.783 0.048 313.232);
  --destructive: oklch(0.629 0.205 30.085);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.283 0.022 81.127);
  --chart-1: oklch(0.283 0.022 81.127);
  --chart-2: oklch(0.288 0.027 169.449);
  --chart-3: oklch(0.254 0.037 312.677);
  --chart-4: oklch(0.323 0.032 169.304);
  --chart-5: oklch(0.285 0.025 81.015);
}