Applewood for shadcn/ui

Applewood is a shadcn/ui theme built around a deep green primary color (#4b5a16) with deep indigo accents (#25165a). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#4b5a16) on a neutral background (#060704).

Color palette

TokenLightDark
Background
#fdfefbwhite
#060704black
Foreground
#070803black
#ffffffwhite
Card
#fcfdf7snow
#090a05black
Card foreground
#030401black
#ffffffwhite
Popover
#fdfefbwhite
#060704black
Popover foreground
#070803black
#ffffffwhite
Primary
#4b5a16darkolivegreen
#4b5a16darkolivegreen
Primary foreground
#e1edb5palegoldenrod
#e1edb5palegoldenrod
Secondary
#25165amidnightblue
#25165amidnightblue
Secondary foreground
#c1b5edlightsteelblue
#c1b5edlightsteelblue
Muted
#dfdee3gainsboro
#1d1c21black
Muted foreground
#5d5969dimgray
#9a96a6darkgray
Accent
#25165amidnightblue
#25165amidnightblue
Accent foreground
#c1b5edlightsteelblue
#c1b5edlightsteelblue
Destructive
#9a3e09saddlebrown
#f37730tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b5a16darkolivegreen
#4b5a16darkolivegreen

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card20.09:1AAA
Primary button6.09:1AA
Secondary button8.28:1AAA
Muted text5.06:1AA
Accent8.28:1AAA
Destructive6.82:1AA
Dark mode
Text on background20.23:1AAA
Text on card19.86:1AAA
Primary button6.09:1AA
Secondary button8.28:1AAA
Muted text5.86:1AA
Accent8.28:1AAA
Destructive7.50:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 116.409);
  --foreground: oklch(0.128 0.016 116.724);
  --muted: oklch(0.903 0.007 296.195);
  --muted-foreground: oklch(0.473 0.025 295.358);
  --popover: oklch(0.996 0.004 116.409);
  --popover-foreground: oklch(0.128 0.016 116.724);
  --card: oklch(0.992 0.009 116.487);
  --card-foreground: oklch(0.102 0.013 116.724);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.442 0.093 121.029);
  --primary-foreground: oklch(0.923 0.074 117.804);
  --secondary: oklch(0.269 0.115 285.651);
  --secondary-foreground: oklch(0.803 0.079 294.484);
  --accent: oklch(0.269 0.115 285.651);
  --accent-foreground: oklch(0.803 0.079 294.484);
  --destructive: oklch(0.484 0.136 43.992);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.442 0.093 121.029);
  --chart-1: oklch(0.442 0.093 121.029);
  --chart-2: oklch(0.269 0.115 285.651);
  --chart-3: oklch(0.269 0.115 285.651);
  --chart-4: oklch(0.291 0.128 285.255);
  --chart-5: oklch(0.447 0.096 121.216);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.01 116.585);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.009 295.578);
  --muted-foreground: oklch(0.682 0.023 295.719);
  --popover: oklch(0.123 0.01 116.585);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.011 116.585);
  --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.442 0.093 121.029);
  --primary-foreground: oklch(0.923 0.074 117.804);
  --secondary: oklch(0.269 0.115 285.651);
  --secondary-foreground: oklch(0.803 0.079 294.484);
  --accent: oklch(0.269 0.115 285.651);
  --accent-foreground: oklch(0.803 0.079 294.484);
  --destructive: oklch(0.704 0.172 46.883);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.442 0.093 121.029);
  --chart-1: oklch(0.442 0.093 121.029);
  --chart-2: oklch(0.269 0.115 285.651);
  --chart-3: oklch(0.269 0.115 285.651);
  --chart-4: oklch(0.291 0.128 285.255);
  --chart-5: oklch(0.447 0.096 121.216);
}