Simple for shadcn/ui

Simple is a shadcn/ui theme built around a deep green primary color (#051506) with deep purple accents (#150514). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#051506) on a green-tinted background (#050a06).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a06black
Foreground
#010401black
#f6f8f6whitesmoke
Card
#ffffffwhite
#050a06black
Card foreground
#010401black
#f6f8f6whitesmoke
Popover
#ffffffwhite
#050a06black
Popover foreground
#010401black
#f6f8f6whitesmoke
Primary
#051506black
#051506black
Primary foreground
#2cba33limegreen
#2cba33limegreen
Secondary
#150514black
#150514black
Secondary foreground
#dd6ed8orchid
#dd6ed8orchid
Muted
#e4d8e3gainsboro
#271b27black
Muted foreground
#6a5c6adimgray
#a395a2darkgray
Accent
#150514black
#150514black
Accent foreground
#dd6ed8orchid
#dd6ed8orchid
Destructive
#772603maroon
#e04706orangered
Destructive foreground
#fdc7afpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#051506black
#051506black

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button7.34:1AAA
Secondary button6.86:1AA
Muted text4.53:1AA
Accent6.86:1AA
Destructive6.75:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button7.34:1AAA
Secondary button6.86:1AA
Muted text5.79:1AA
Accent6.86:1AA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.017 145.689);
  --muted: oklch(0.895 0.02 327.243);
  --muted-foreground: oklch(0.495 0.027 327.53);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.017 145.689);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.097 0.017 145.689);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.174 0.039 144.984);
  --primary-foreground: oklch(0.69 0.209 143.435);
  --secondary: oklch(0.151 0.042 329.192);
  --secondary-foreground: oklch(0.705 0.187 329.236);
  --accent: oklch(0.151 0.042 329.192);
  --accent-foreground: oklch(0.705 0.187 329.236);
  --destructive: oklch(0.389 0.121 39.403);
  --destructive-foreground: oklch(0.871 0.07 44.341);
  --ring: oklch(0.174 0.039 144.984);
  --chart-1: oklch(0.174 0.039 144.984);
  --chart-2: oklch(0.151 0.042 329.192);
  --chart-3: oklch(0.151 0.042 329.192);
  --chart-4: oklch(0.189 0.058 329.56);
  --chart-5: oklch(0.175 0.041 144.896);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.014 146.267);
  --foreground: oklch(0.978 0.004 147.005);
  --muted: oklch(0.243 0.028 328.032);
  --muted-foreground: oklch(0.685 0.025 327.369);
  --popover: oklch(0.136 0.014 146.267);
  --popover-foreground: oklch(0.978 0.004 147.005);
  --card: oklch(0.136 0.014 146.267);
  --card-foreground: oklch(0.978 0.004 147.005);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.174 0.039 144.984);
  --primary-foreground: oklch(0.69 0.209 143.435);
  --secondary: oklch(0.151 0.042 329.192);
  --secondary-foreground: oklch(0.705 0.187 329.236);
  --accent: oklch(0.151 0.042 329.192);
  --accent-foreground: oklch(0.705 0.187 329.236);
  --destructive: oklch(0.61 0.198 37.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.174 0.039 144.984);
  --chart-1: oklch(0.174 0.039 144.984);
  --chart-2: oklch(0.151 0.042 329.192);
  --chart-3: oklch(0.151 0.042 329.192);
  --chart-4: oklch(0.189 0.058 329.56);
  --chart-5: oklch(0.175 0.041 144.896);
}