Wooden for shadcn/ui

Wooden is a shadcn/ui theme built around a deep purple primary color (#410b3e) with deep pink accents (#410b23). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the deep purple primary (#410b3e) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#040104black
Foreground
#160415black
#ffffffwhite
Card
#fdf7fdsnow
#040104black
Card foreground
#160415black
#ffffffwhite
Popover
#fdf7fdsnow
#040104black
Popover foreground
#160415black
#ffffffwhite
Primary
#410b3emidnightblue
#410b3emidnightblue
Primary foreground
#ed92e6violet
#ed92e6violet
Secondary
#2a0b41midnightblue
#2a0b41midnightblue
Secondary foreground
#c592edplum
#c592edplum
Muted
#eee6f4lavender
#130b19black
Muted foreground
#5c5760dimgray
#a49fa8darkgray
Accent
#410b23maroon
#410b23maroon
Accent foreground
#ed92b9lightpink
#ed92b9lightpink
Destructive
#ad1c05firebrick
#f22707orangered
Destructive foreground
#fee9e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#410b3emidnightblue
#410b3emidnightblue

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button7.32:1AAA
Secondary button7.11:1AAA
Muted text5.78:1AA
Accent7.24:1AAA
Destructive6.11:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button7.32:1AAA
Secondary button7.11:1AAA
Muted text7.44:1AAA
Accent7.24:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.01 327.645);
  --foreground: oklch(0.151 0.048 330.105);
  --muted: oklch(0.935 0.021 310.89);
  --muted-foreground: oklch(0.466 0.016 310.787);
  --popover: oklch(0.982 0.01 327.645);
  --popover-foreground: oklch(0.151 0.048 330.105);
  --card: oklch(0.982 0.01 327.645);
  --card-foreground: oklch(0.151 0.048 330.105);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.272 0.105 330.957);
  --primary-foreground: oklch(0.781 0.152 329.3);
  --secondary: oklch(0.236 0.097 305.959);
  --secondary-foreground: oklch(0.742 0.137 309.415);
  --accent: oklch(0.258 0.086 358.832);
  --accent-foreground: oklch(0.764 0.119 352.754);
  --destructive: oklch(0.481 0.182 31.315);
  --destructive-foreground: oklch(0.951 0.023 28.073);
  --ring: oklch(0.272 0.105 330.957);
  --chart-1: oklch(0.272 0.105 330.957);
  --chart-2: oklch(0.236 0.097 305.959);
  --chart-3: oklch(0.258 0.086 358.832);
  --chart-4: oklch(0.263 0.112 305.596);
  --chart-5: oklch(0.274 0.108 331.046);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.016 328.692);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.167 0.031 309.384);
  --muted-foreground: oklch(0.708 0.014 310.908);
  --popover: oklch(0.087 0.016 328.692);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.016 328.692);
  --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.272 0.105 330.957);
  --primary-foreground: oklch(0.781 0.152 329.3);
  --secondary: oklch(0.236 0.097 305.959);
  --secondary-foreground: oklch(0.742 0.137 309.415);
  --accent: oklch(0.258 0.086 358.832);
  --accent-foreground: oklch(0.764 0.119 352.754);
  --destructive: oklch(0.617 0.236 31.064);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.272 0.105 330.957);
  --chart-1: oklch(0.272 0.105 330.957);
  --chart-2: oklch(0.236 0.097 305.959);
  --chart-3: oklch(0.258 0.086 358.832);
  --chart-4: oklch(0.263 0.112 305.596);
  --chart-5: oklch(0.274 0.108 331.046);
}