Autumn for shadcn/ui

Autumn is a shadcn/ui theme built around a vivid deep orange primary color (#130801) with vivid deep blue accents (#010c13). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#130801) on an orange-tinted background (#0c0703).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0703black
Foreground
#0f0905black
#f9f7f6whitesmoke
Card
#fcfcfcsnow
#100904black
Card foreground
#0c0704black
#fbfaf9snow
Popover
#fcfcfcsnow
#100904black
Popover foreground
#0c0704black
#fbfaf9snow
Primary
#130801black
#130801black
Primary foreground
#f29154coral
#f29154coral
Secondary
#010c13black
#010c13black
Secondary foreground
#54b6f2cornflowerblue
#54b6f2cornflowerblue
Muted
#ebf1f4whitesmoke
#0b1014black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#010c13black
#010c13black
Accent foreground
#54b6f2cornflowerblue
#54b6f2cornflowerblue
Destructive
#6f2802maroon
#fc7831tomato
Destructive foreground
#fec4a5navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#130801black
#130801black

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.61:1AAA
Primary button8.41:1AAA
Secondary button8.77:1AAA
Muted text9.08:1AAA
Accent8.77:1AAA
Destructive6.92:1AA
Dark mode
Text on background18.80:1AAA
Text on card18.96:1AAA
Primary button8.41:1AAA
Secondary button8.77:1AAA
Muted text10.37:1AAA
Accent8.77:1AAA
Destructive7.86:1AAA

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.147 0.015 58.913);
  --muted: oklch(0.954 0.008 234.626);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.133 0.013 61.719);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.133 0.013 61.719);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.149 0.028 63.541);
  --primary-foreground: oklch(0.747 0.14 51.001);
  --secondary: oklch(0.147 0.025 230.756);
  --secondary-foreground: oklch(0.742 0.126 239.02);
  --accent: oklch(0.147 0.025 230.756);
  --accent-foreground: oklch(0.742 0.126 239.02);
  --destructive: oklch(0.376 0.11 42.997);
  --destructive-foreground: oklch(0.864 0.079 49.589);
  --ring: oklch(0.149 0.028 63.541);
  --chart-1: oklch(0.149 0.028 63.541);
  --chart-2: oklch(0.147 0.025 230.756);
  --chart-3: oklch(0.147 0.025 230.756);
  --chart-4: oklch(0.188 0.036 237.047);
  --chart-5: oklch(0.149 0.029 64.001);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.015 62.688);
  --foreground: oklch(0.977 0.003 54.466);
  --muted: oklch(0.171 0.012 235.687);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.147 0.018 59.736);
  --popover-foreground: oklch(0.985 0.002 54.48);
  --card: oklch(0.147 0.018 59.736);
  --card-foreground: oklch(0.985 0.002 54.48);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.149 0.028 63.541);
  --primary-foreground: oklch(0.747 0.14 51.001);
  --secondary: oklch(0.147 0.025 230.756);
  --secondary-foreground: oklch(0.742 0.126 239.02);
  --accent: oklch(0.147 0.025 230.756);
  --accent-foreground: oklch(0.742 0.126 239.02);
  --destructive: oklch(0.718 0.18 45.373);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.149 0.028 63.541);
  --chart-1: oklch(0.149 0.028 63.541);
  --chart-2: oklch(0.147 0.025 230.756);
  --chart-3: oklch(0.147 0.025 230.756);
  --chart-4: oklch(0.188 0.036 237.047);
  --chart-5: oklch(0.149 0.029 64.001);
}