Downfall for shadcn/ui

Downfall is a shadcn/ui theme built around a light teal primary color (#b6e7d3) with muted light teal accents (#c1dcd1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#b6e7d3) on a teal-tinted background (#070e0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e0bblack
Foreground
#03160eblack
#f9fafaghostwhite
Card
#fcfcfcsnow
#08110dblack
Card foreground
#03120bblack
#fcfdfcwhite
Popover
#ffffffwhite
#070e0bblack
Popover foreground
#03160eblack
#f9fafaghostwhite
Primary
#b6e7d3powderblue
#b6e7d3powderblue
Primary foreground
#1b503adarkslategray
#1b503adarkslategray
Secondary
#e0ebe6gainsboro
#25372fdarkslategray
Secondary foreground
#3d5c4fdarkslategray
#bcd2c9silver
Muted
#e7e9e8lavender
#161817black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#c1dcd1lightgrey
#345648darkslategray
Accent foreground
#274438darkslategray
#d6e6dfgainsboro
Destructive
#cf0c0cfirebrick
#f33030crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6e7d3powderblue
#b6e7d3powderblue

Contrast

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

Light mode
Text on background18.66:1AAA
Text on card18.76:1AAA
Primary button6.80:1AA
Secondary button6.03:1AA
Muted text8.52:1AAA
Accent7.30:1AAA
Destructive5.64:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.76:1AAA
Primary button6.80:1AA
Secondary button7.95:1AAA
Muted text9.68:1AAA
Accent6.32:1AA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.181 0.031 164.994);
  --muted: oklch(0.933 0.003 169.57);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.181 0.031 164.994);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.163 0.027 166.713);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.888 0.057 167.699);
  --primary-foreground: oklch(0.39 0.069 162.639);
  --secondary: oklch(0.93 0.012 169.294);
  --secondary-foreground: oklch(0.446 0.042 166.64);
  --accent: oklch(0.871 0.032 168.604);
  --accent-foreground: oklch(0.36 0.041 165.839);
  --destructive: oklch(0.54 0.217 28.764);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.888 0.057 167.699);
  --chart-1: oklch(0.888 0.057 167.699);
  --chart-2: oklch(0.93 0.012 169.294);
  --chart-3: oklch(0.871 0.032 168.604);
  --chart-4: oklch(0.951 0.009 169.415);
  --chart-5: oklch(0.89 0.06 167.581);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.013 168.188);
  --foreground: oklch(0.985 0.001 169.632);
  --muted: oklch(0.207 0.005 169.001);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.153 0.013 168.188);
  --popover-foreground: oklch(0.985 0.001 169.632);
  --card: oklch(0.168 0.015 166.951);
  --card-foreground: oklch(0.993 0.001 169.652);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.888 0.057 167.699);
  --primary-foreground: oklch(0.39 0.069 162.639);
  --secondary: oklch(0.317 0.026 167.06);
  --secondary-foreground: oklch(0.844 0.026 168.77);
  --accent: oklch(0.422 0.047 165.951);
  --accent-foreground: oklch(0.911 0.02 169.039);
  --destructive: oklch(0.625 0.229 26.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.888 0.057 167.699);
  --chart-1: oklch(0.888 0.057 167.699);
  --chart-2: oklch(0.317 0.026 167.06);
  --chart-3: oklch(0.422 0.047 165.951);
  --chart-4: oklch(0.35 0.03 166.97);
  --chart-5: oklch(0.89 0.06 167.581);
}