Downstairs for shadcn/ui

Downstairs is a shadcn/ui theme built around a vivid deep violet primary color (#47026f) with vivid deep green accents (#2a6f02). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#47026f) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#ffffffwhite
#030204black
Foreground
#0c0410black
#faf8fcghostwhite
Card
#ffffffwhite
#030204black
Card foreground
#0c0410black
#faf8fcghostwhite
Popover
#ffffffwhite
#030204black
Popover foreground
#0c0410black
#faf8fcghostwhite
Primary
#47026findigo
#47026findigo
Primary foreground
#dda5feplum
#dda5feplum
Secondary
#2a6f02forestgreen
#2a6f02forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7eee3beige
#151c11black
Muted foreground
#3e453adarkslategray
#bec5basilver
Accent
#2a6f02forestgreen
#2a6f02forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#871508darkred
#f33f2borangered
Destructive foreground
#fccbc5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#47026findigo
#47026findigo

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button7.25:1AAA
Secondary button6.26:1AA
Muted text8.34:1AAA
Accent6.26:1AA
Destructive6.78:1AA
Dark mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button7.25:1AAA
Secondary button6.26:1AA
Muted text9.80:1AAA
Accent6.26:1AA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.033 313.819);
  --muted: oklch(0.939 0.016 133.715);
  --muted-foreground: oklch(0.382 0.021 133.967);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.131 0.033 313.819);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.131 0.033 313.819);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.314 0.16 306.533);
  --primary-foreground: oklch(0.804 0.135 312.533);
  --secondary: oklch(0.477 0.147 138.237);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.477 0.147 138.237);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.402 0.15 30.547);
  --destructive-foreground: oklch(0.882 0.056 25.641);
  --ring: oklch(0.314 0.16 306.533);
  --chart-1: oklch(0.314 0.16 306.533);
  --chart-2: oklch(0.477 0.147 138.237);
  --chart-3: oklch(0.477 0.147 138.237);
  --chart-4: oklch(0.522 0.162 138.402);
  --chart-5: oklch(0.315 0.163 306.239);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.012 314.832);
  --foreground: oklch(0.982 0.006 313.569);
  --muted: oklch(0.217 0.023 134.341);
  --muted-foreground: oklch(0.814 0.018 133.743);
  --popover: oklch(0.086 0.012 314.832);
  --popover-foreground: oklch(0.982 0.006 313.569);
  --card: oklch(0.086 0.012 314.832);
  --card-foreground: oklch(0.982 0.006 313.569);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.314 0.16 306.533);
  --primary-foreground: oklch(0.804 0.135 312.533);
  --secondary: oklch(0.477 0.147 138.237);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.477 0.147 138.237);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.636 0.219 30.332);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.314 0.16 306.533);
  --chart-1: oklch(0.314 0.16 306.533);
  --chart-2: oklch(0.477 0.147 138.237);
  --chart-3: oklch(0.477 0.147 138.237);
  --chart-4: oklch(0.522 0.162 138.402);
  --chart-5: oklch(0.315 0.163 306.239);
}