Wooden for shadcn/ui

Wooden is a shadcn/ui theme built around a deep indigo primary color (#0a0920) with deep violet accents (#160920). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the deep indigo primary (#0a0920) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#000000black
Foreground
#000000black
#f5f5fawhitesmoke
Card
#f8f8fcghostwhite
#000000black
Card foreground
#000000black
#f5f5fawhitesmoke
Popover
#f8f8fcghostwhite
#000000black
Popover foreground
#000000black
#f5f5fawhitesmoke
Primary
#0a0920black
#0a0920black
Primary foreground
#d1d0f1gainsboro
#d1d0f1gainsboro
Secondary
#091320black
#091320black
Secondary foreground
#81a9dacornflowerblue
#81a9dacornflowerblue
Muted
#dee0e3gainsboro
#1c1e21black
Muted foreground
#565e67dimgray
#98a0a9darkgray
Accent
#160920black
#160920black
Accent foreground
#b281damediumpurple
#b281damediumpurple
Destructive
#a63707saddlebrown
#f55b19orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a0920black
#0a0920black

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button13.04:1AAA
Secondary button7.64:1AAA
Muted text4.97:1AA
Accent6.44:1AA
Destructive6.60:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button13.04:1AAA
Secondary button7.64:1AAA
Muted text6.29:1AA
Accent6.44:1AA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.005 288.606);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.906 0.004 253.252);
  --muted-foreground: oklch(0.477 0.018 253.445);
  --popover: oklch(0.98 0.005 288.606);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.005 288.606);
  --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.158 0.046 282.025);
  --primary-foreground: oklch(0.868 0.046 287.687);
  --secondary: oklch(0.185 0.03 254.066);
  --secondary-foreground: oklch(0.724 0.085 253.838);
  --accent: oklch(0.172 0.047 307.584);
  --accent-foreground: oklch(0.685 0.138 308.473);
  --destructive: oklch(0.494 0.155 38.73);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.158 0.046 282.025);
  --chart-1: oklch(0.158 0.046 282.025);
  --chart-2: oklch(0.185 0.03 254.066);
  --chart-3: oklch(0.172 0.047 307.584);
  --chart-4: oklch(0.217 0.039 254.263);
  --chart-5: oklch(0.156 0.049 281.553);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.971 0.006 288.584);
  --muted: oklch(0.235 0.006 253.383);
  --muted-foreground: oklch(0.702 0.016 253.366);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.971 0.006 288.584);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.971 0.006 288.584);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.158 0.046 282.025);
  --primary-foreground: oklch(0.868 0.046 287.687);
  --secondary: oklch(0.185 0.03 254.066);
  --secondary-foreground: oklch(0.724 0.085 253.838);
  --accent: oklch(0.172 0.047 307.584);
  --accent-foreground: oklch(0.685 0.138 308.473);
  --destructive: oklch(0.668 0.201 39.589);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.158 0.046 282.025);
  --chart-1: oklch(0.158 0.046 282.025);
  --chart-2: oklch(0.185 0.03 254.066);
  --chart-3: oklch(0.172 0.047 307.584);
  --chart-4: oklch(0.217 0.039 254.263);
  --chart-5: oklch(0.156 0.049 281.553);
}