Autumn for shadcn/ui

Autumn is a shadcn/ui theme built around a teal primary color (#a4dacb) with yellow accents (#dacba4). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#a4dacb) on a teal-tinted background (#030c09).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c09black
Foreground
#010503black
#ffffffwhite
Card
#fcfcfcsnow
#05100dblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#05100dblack
Popover foreground
#000000black
#ffffffwhite
Primary
#a4dacblightblue
#a4dacblightblue
Primary foreground
#16362ddarkslategray
#16362ddarkslategray
Secondary
#cba4daplum
#cba4daplum
Secondary foreground
#2d1636midnightblue
#2d1636midnightblue
Muted
#e0dae2gainsboro
#231d25black
Muted foreground
#666567dimgray
#99989adarkgray
Accent
#dacba4tan
#dacba4tan
Accent foreground
#362d16darkslategray
#362d16darkslategray
Destructive
#bd1105firebrick
#e01406red
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a4dacblightblue
#a4dacblightblue

Contrast

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

Light mode
Text on background20.50:1AAA
Text on card20.54:1AAA
Primary button8.42:1AAA
Secondary button7.73:1AAA
Muted text4.20:1AA Large
Accent8.45:1AAA
Destructive6.08:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.36:1AAA
Primary button8.42:1AAA
Secondary button7.73:1AAA
Muted text5.74:1AA
Accent8.45:1AAA
Destructive4.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.016 177.905);
  --muted: oklch(0.894 0.013 316.565);
  --muted-foreground: oklch(0.509 0.004 316.588);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.847 0.059 175.499);
  --primary-foreground: oklch(0.307 0.042 172.597);
  --secondary: oklch(0.772 0.086 316.279);
  --secondary-foreground: oklch(0.249 0.065 315.653);
  --accent: oklch(0.844 0.054 89.014);
  --accent-foreground: oklch(0.302 0.039 88.453);
  --destructive: oklch(0.506 0.201 29.832);
  --destructive-foreground: oklch(0.979 0.01 22.327);
  --ring: oklch(0.847 0.059 175.499);
  --chart-1: oklch(0.847 0.059 175.499);
  --chart-2: oklch(0.772 0.086 316.279);
  --chart-3: oklch(0.844 0.054 89.014);
  --chart-4: oklch(0.8 0.075 316.333);
  --chart-5: oklch(0.85 0.063 175.344);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.017 177.358);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.019 316.384);
  --muted-foreground: oklch(0.681 0.003 316.594);
  --popover: oklch(0.159 0.019 175.273);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.019 175.273);
  --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.847 0.059 175.499);
  --primary-foreground: oklch(0.307 0.042 172.597);
  --secondary: oklch(0.772 0.086 316.279);
  --secondary-foreground: oklch(0.249 0.065 315.653);
  --accent: oklch(0.844 0.054 89.014);
  --accent-foreground: oklch(0.302 0.039 88.453);
  --destructive: oklch(0.574 0.229 29.775);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.847 0.059 175.499);
  --chart-1: oklch(0.847 0.059 175.499);
  --chart-2: oklch(0.772 0.086 316.279);
  --chart-3: oklch(0.844 0.054 89.014);
  --chart-4: oklch(0.8 0.075 316.333);
  --chart-5: oklch(0.85 0.063 175.344);
}