Autumn for shadcn/ui

Autumn is a shadcn/ui theme built around a vivid deep green primary color (#04530d) with muted light green accents (#ccd7cd). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid deep green primary (#04530d) on a green-tinted background (#030c04).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030c04black
Foreground
#020e03black
#f8fbf9mintcream
Card
#fbfefbwhite
#030c04black
Card foreground
#020e03black
#f8fbf9mintcream
Popover
#fbfefbwhite
#030c04black
Popover foreground
#020e03black
#f8fbf9mintcream
Primary
#04530ddarkgreen
#04530ddarkgreen
Primary foreground
#2ef545limegreen
#2ef545limegreen
Secondary
#ccd7cdlightgrey
#232f24darkslategray
Secondary foreground
#313f33darkslategray
#b9cabbsilver
Muted
#d4e2d6gainsboro
#1d2b1eblack
Muted foreground
#435144darkslategray
#aebcafdarkgray
Accent
#ccd7cdlightgrey
#232f24darkslategray
Accent foreground
#313f33darkslategray
#b9cabbsilver
Destructive
#700200maroon
#ff0905red
Destructive foreground
#ffa5a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#04530ddarkgreen
#04530ddarkgreen

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button6.36:1AA
Secondary button7.47:1AAA
Muted text6.28:1AA
Accent7.47:1AAA
Destructive6.56:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button6.36:1AA
Secondary button8.17:1AAA
Muted text7.50:1AAA
Accent8.17:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 149.078);
  --foreground: oklch(0.144 0.034 147.337);
  --muted: oklch(0.9 0.023 148.831);
  --muted-foreground: oklch(0.419 0.028 148.302);
  --popover: oklch(0.994 0.005 149.078);
  --popover-foreground: oklch(0.144 0.034 147.337);
  --card: oklch(0.994 0.005 149.078);
  --card-foreground: oklch(0.144 0.034 147.337);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.384 0.122 143.832);
  --primary-foreground: oklch(0.847 0.261 144.02);
  --secondary: oklch(0.867 0.018 148.889);
  --secondary-foreground: oklch(0.351 0.027 148.184);
  --accent: oklch(0.867 0.018 148.889);
  --accent-foreground: oklch(0.351 0.027 148.184);
  --destructive: oklch(0.344 0.14 29.584);
  --destructive-foreground: oklch(0.81 0.108 20.748);
  --ring: oklch(0.384 0.122 143.832);
  --chart-1: oklch(0.384 0.122 143.832);
  --chart-2: oklch(0.867 0.018 148.889);
  --chart-3: oklch(0.867 0.018 148.889);
  --chart-4: oklch(0.889 0.015 148.937);
  --chart-5: oklch(0.388 0.125 143.776);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.025 147.88);
  --foreground: oklch(0.986 0.005 149.074);
  --muted: oklch(0.271 0.03 147.718);
  --muted-foreground: oklch(0.781 0.024 148.759);
  --popover: oklch(0.14 0.025 147.88);
  --popover-foreground: oklch(0.986 0.005 149.074);
  --card: oklch(0.14 0.025 147.88);
  --card-foreground: oklch(0.986 0.005 149.074);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.384 0.122 143.832);
  --primary-foreground: oklch(0.847 0.261 144.02);
  --secondary: oklch(0.289 0.024 148.104);
  --secondary-foreground: oklch(0.823 0.028 148.726);
  --accent: oklch(0.289 0.024 148.104);
  --accent-foreground: oklch(0.823 0.028 148.726);
  --destructive: oklch(0.63 0.256 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.384 0.122 143.832);
  --chart-1: oklch(0.384 0.122 143.832);
  --chart-2: oklch(0.289 0.024 148.104);
  --chart-3: oklch(0.289 0.024 148.104);
  --chart-4: oklch(0.321 0.028 148.061);
  --chart-5: oklch(0.388 0.125 143.776);
}