Downfall for shadcn/ui

Downfall is a shadcn/ui theme built around a neutral gray primary color (#8f8f94) with neutral gray accents (#918f94). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the neutral gray primary (#8f8f94) on an indigo-tinted background (#07070e).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#07070eblack
Foreground
#04040cblack
#f9f9fbghostwhite
Card
#f7f7fdghostwhite
#07070eblack
Card foreground
#04040cblack
#f9f9fbghostwhite
Popover
#f7f7fdghostwhite
#07070eblack
Popover foreground
#04040cblack
#f9f9fbghostwhite
Primary
#8f8f94lightslategray
#8f8f94lightslategray
Primary foreground
#000000black
#000000black
Secondary
#8f9194lightslategray
#8f9194lightslategray
Secondary foreground
#000000black
#000000black
Muted
#d6dbe0gainsboro
#1f2429darkslategray
Muted foreground
#4d5156darkslategray
#a9adb2darkgray
Accent
#918f94lightslategray
#918f94lightslategray
Accent foreground
#000000black
#000000black
Destructive
#6c0904maroon
#f73126orangered
Destructive foreground
#fcaba6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8f8f94lightslategray
#8f8f94lightslategray

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button6.53:1AA
Secondary button6.66:1AA
Muted text5.74:1AA
Accent6.57:1AA
Destructive6.84:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button6.53:1AA
Secondary button6.66:1AA
Muted text6.96:1AA
Accent6.57:1AA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.007 287.033);
  --foreground: oklch(0.111 0.023 283.169);
  --muted: oklch(0.89 0.009 249.743);
  --muted-foreground: oklch(0.434 0.01 249.866);
  --popover: oklch(0.978 0.007 287.033);
  --popover-foreground: oklch(0.111 0.023 283.169);
  --card: oklch(0.978 0.007 287.033);
  --card-foreground: oklch(0.111 0.023 283.169);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.006 286.988);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.657 0.004 249.71);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.654 0.007 309.014);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.34 0.131 29.684);
  --destructive-foreground: oklch(0.818 0.096 22.715);
  --ring: oklch(0.652 0.006 286.988);
  --chart-1: oklch(0.652 0.006 286.988);
  --chart-2: oklch(0.657 0.004 249.71);
  --chart-3: oklch(0.654 0.007 309.014);
  --chart-4: oklch(0.682 0.004 249.703);
  --chart-5: oklch(0.643 0.016 286.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.017 284.757);
  --foreground: oklch(0.983 0.002 287.124);
  --muted: oklch(0.256 0.012 250.063);
  --muted-foreground: oklch(0.746 0.009 249.762);
  --popover: oklch(0.131 0.017 284.757);
  --popover-foreground: oklch(0.983 0.002 287.124);
  --card: oklch(0.131 0.017 284.757);
  --card-foreground: oklch(0.983 0.002 287.124);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.652 0.006 286.988);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.657 0.004 249.71);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.654 0.007 309.014);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.633 0.233 28.888);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.006 286.988);
  --chart-1: oklch(0.652 0.006 286.988);
  --chart-2: oklch(0.657 0.004 249.71);
  --chart-3: oklch(0.654 0.007 309.014);
  --chart-4: oklch(0.682 0.004 249.703);
  --chart-5: oklch(0.643 0.016 286.702);
}