Rundown for shadcn/ui

Rundown is a shadcn/ui theme built around a deep green primary color (#07180d) with deep pink accents (#180712). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#07180d) on a green-tinted background (#050f09).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f09black
Foreground
#06140bblack
#f6f8f7whitesmoke
Card
#ffffffwhite
#050f09black
Card foreground
#06140bblack
#f6f8f7whitesmoke
Popover
#ffffffwhite
#050f09black
Popover foreground
#06140bblack
#f6f8f7whitesmoke
Primary
#07180dblack
#07180dblack
Primary foreground
#36b564mediumseagreen
#36b564mediumseagreen
Secondary
#180712black
#180712black
Secondary foreground
#d779b5orchid
#d779b5orchid
Muted
#ecd5e3gainsboro
#2a1322black
Muted foreground
#715667dimgray
#a98e9frosybrown
Accent
#180712black
#180712black
Accent foreground
#d779b5orchid
#d779b5orchid
Destructive
#881f01darkred
#f23602orangered
Destructive foreground
#fecbbdpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#07180dblack
#07180dblack

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.87:1AAA
Primary button6.96:1AA
Secondary button6.77:1AA
Muted text4.70:1AA
Accent6.77:1AA
Destructive6.45:1AA
Dark mode
Text on background18.24:1AAA
Text on card18.24:1AAA
Primary button6.96:1AA
Secondary button6.77:1AA
Muted text5.80:1AA
Accent6.77:1AA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.174 0.028 155.594);
  --muted: oklch(0.896 0.031 339.454);
  --muted-foreground: oklch(0.486 0.045 340.601);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.174 0.028 155.594);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.174 0.028 155.594);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.189 0.031 154.686);
  --primary-foreground: oklch(0.684 0.16 151.422);
  --secondary: oklch(0.161 0.035 342.724);
  --secondary-foreground: oklch(0.699 0.136 342.598);
  --accent: oklch(0.161 0.035 342.724);
  --accent-foreground: oklch(0.699 0.136 342.598);
  --destructive: oklch(0.413 0.145 34.537);
  --destructive-foreground: oklch(0.884 0.061 35.974);
  --ring: oklch(0.189 0.031 154.686);
  --chart-1: oklch(0.189 0.031 154.686);
  --chart-2: oklch(0.161 0.035 342.724);
  --chart-3: oklch(0.161 0.035 342.724);
  --chart-4: oklch(0.195 0.049 343.743);
  --chart-5: oklch(0.19 0.033 154.541);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.02 157.292);
  --foreground: oklch(0.978 0.003 158.651);
  --muted: oklch(0.227 0.044 342.552);
  --muted-foreground: oklch(0.676 0.041 339.984);
  --popover: oklch(0.156 0.02 157.292);
  --popover-foreground: oklch(0.978 0.003 158.651);
  --card: oklch(0.156 0.02 157.292);
  --card-foreground: oklch(0.978 0.003 158.651);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.189 0.031 154.686);
  --primary-foreground: oklch(0.684 0.16 151.422);
  --secondary: oklch(0.161 0.035 342.724);
  --secondary-foreground: oklch(0.699 0.136 342.598);
  --accent: oklch(0.161 0.035 342.724);
  --accent-foreground: oklch(0.699 0.136 342.598);
  --destructive: oklch(0.627 0.228 33.399);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.031 154.686);
  --chart-1: oklch(0.189 0.031 154.686);
  --chart-2: oklch(0.161 0.035 342.724);
  --chart-3: oklch(0.161 0.035 342.724);
  --chart-4: oklch(0.195 0.049 343.743);
  --chart-5: oklch(0.19 0.033 154.541);
}