Woozy for shadcn/ui

Woozy is a shadcn/ui theme built around a neutral gray primary color (#81898d) with neutral gray accents (#898d81). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#81898d) on a blue-tinted background (#04090c).

Color palette

TokenLightDark
Background
#ffffffwhite
#04090cblack
Foreground
#000000black
#f9fafbghostwhite
Card
#ffffffwhite
#04090cblack
Card foreground
#000000black
#f9fafbghostwhite
Popover
#ffffffwhite
#04090cblack
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#81898dlightslategray
#81898dlightslategray
Primary foreground
#000000black
#000000black
Secondary
#8d8189gray
#8d8189gray
Secondary foreground
#000000black
#000000black
Muted
#dfd2dagainsboro
#2d2028darkslategray
Muted foreground
#5f595ddimgray
#a6a0a4darkgray
Accent
#898d81gray
#898d81gray
Accent foreground
#000000black
#000000black
Destructive
#b04411sienna
#d55215chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#81898dlightslategray
#81898dlightslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.88:1AA
Secondary button5.64:1AA
Muted text4.68:1AA
Accent6.19:1AA
Destructive5.70:1AA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button5.88:1AA
Secondary button5.64:1AA
Muted text6.08:1AA
Accent6.19:1AA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.877 0.018 339.156);
  --muted-foreground: oklch(0.471 0.009 339.123);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.624 0.011 232.837);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.617 0.018 339.341);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.637 0.018 123.369);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.528 0.153 41.1);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.011 232.837);
  --chart-1: oklch(0.624 0.011 232.837);
  --chart-2: oklch(0.617 0.018 339.341);
  --chart-3: oklch(0.637 0.018 123.369);
  --chart-4: oklch(0.643 0.017 339.273);
  --chart-5: oklch(0.625 0.018 233.002);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.012 227.075);
  --foreground: oklch(0.985 0.002 232.604);
  --muted: oklch(0.261 0.025 340.627);
  --muted-foreground: oklch(0.713 0.008 338.96);
  --popover: oklch(0.133 0.012 227.075);
  --popover-foreground: oklch(0.985 0.002 232.604);
  --card: oklch(0.133 0.012 227.075);
  --card-foreground: oklch(0.985 0.002 232.604);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.624 0.011 232.837);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.617 0.018 339.341);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.637 0.018 123.369);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.606 0.178 40.821);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.011 232.837);
  --chart-1: oklch(0.624 0.011 232.837);
  --chart-2: oklch(0.617 0.018 339.341);
  --chart-3: oklch(0.637 0.018 123.369);
  --chart-4: oklch(0.643 0.017 339.273);
  --chart-5: oklch(0.625 0.018 233.002);
}