Wooden for shadcn/ui

Wooden is a shadcn/ui theme built around a blue primary color (#3f8bc6) with green accents (#8bc63f). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the blue primary (#3f8bc6) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020303black
Foreground
#030e17black
#ffffffwhite
Card
#f8fafcghostwhite
#030507black
Card foreground
#020b12black
#ffffffwhite
Popover
#fcfdfdwhite
#020303black
Popover foreground
#030e17black
#ffffffwhite
Primary
#3f8bc6steelblue
#3f8bc6steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c63f8bmediumvioletred
#c63f8bmediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1d1dagainsboro
#2e1e27darkslategray
Muted foreground
#4d474adarkslategray
#b8b2b5silver
Accent
#8bc63fyellowgreen
#8bc63fyellowgreen
Accent foreground
#1e2b0dblack
#1e2b0dblack
Destructive
#c9360dfirebrick
#e13c0eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f8bc6steelblue
#3f8bc6steelblue

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card18.96:1AAA
Primary button3.67:1AA Large
Secondary button4.70:1AA
Muted text6.17:1AA
Accent7.25:1AAA
Destructive5.22:1AA
Dark mode
Text on background20.68:1AAA
Text on card20.37:1AAA
Primary button3.67:1AA Large
Secondary button4.70:1AA
Muted text7.54:1AAA
Accent7.25:1AAA
Destructive4.31: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.992 0.001 240.303);
  --foreground: oklch(0.157 0.027 238.771);
  --muted: oklch(0.875 0.021 342.386);
  --muted-foreground: oklch(0.405 0.01 342.366);
  --popover: oklch(0.992 0.001 240.303);
  --popover-foreground: oklch(0.157 0.027 238.771);
  --card: oklch(0.984 0.003 240.323);
  --card-foreground: oklch(0.144 0.023 235.828);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.615 0.116 244.533);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.582 0.186 349.528);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.759 0.174 129.995);
  --accent-foreground: oklch(0.27 0.053 129.022);
  --destructive: oklch(0.554 0.19 34.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.615 0.116 244.533);
  --chart-1: oklch(0.615 0.116 244.533);
  --chart-2: oklch(0.582 0.186 349.528);
  --chart-3: oklch(0.759 0.174 129.995);
  --chart-4: oklch(0.603 0.177 348.67);
  --chart-5: oklch(0.617 0.122 244.892);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.006 235.845);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.26 0.029 344.341);
  --muted-foreground: oklch(0.77 0.008 342.06);
  --popover: oklch(0.091 0.006 235.845);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.007 235.845);
  --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.615 0.116 244.533);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.582 0.186 349.528);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.759 0.174 129.995);
  --accent-foreground: oklch(0.27 0.053 129.022);
  --destructive: oklch(0.602 0.208 34.387);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.615 0.116 244.533);
  --chart-1: oklch(0.615 0.116 244.533);
  --chart-2: oklch(0.582 0.186 349.528);
  --chart-3: oklch(0.759 0.174 129.995);
  --chart-4: oklch(0.603 0.177 348.67);
  --chart-5: oklch(0.617 0.122 244.892);
}