Decision for shadcn/ui

Decision is a shadcn/ui theme built around a vivid deep green primary color (#191e01) with muted light green accents (#d7d8cf). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid deep green primary (#191e01) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fdfefbwhite
#040401black
Foreground
#000000black
#fbfbf9snow
Card
#fdfefbwhite
#040401black
Card foreground
#000000black
#fbfbf9snow
Popover
#fdfefbwhite
#040401black
Popover foreground
#000000black
#fbfbf9snow
Primary
#191e01black
#191e01black
Primary foreground
#c0e506greenyellow
#c0e506greenyellow
Secondary
#d7d8cflightgrey
#282924darkslategray
Secondary foreground
#3f4134darkslategray
#c2c4bbsilver
Muted
#e7e8degainsboro
#202117black
Muted foreground
#6a6c60dimgray
#9d9f93darkgray
Accent
#d7d8cflightgrey
#282924darkslategray
Accent foreground
#3f4134darkslategray
#c2c4bbsilver
Destructive
#b8230ffirebrick
#de2a12orangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#191e01black
#191e01black

Contrast

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

Light mode
Text on background20.71:1AAA
Text on card20.71:1AAA
Primary button11.79:1AAA
Secondary button7.26:1AAA
Muted text4.33:1AA Large
Accent7.26:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button11.79:1AAA
Secondary button8.31:1AAA
Muted text6.03:1AA
Accent8.31:1AAA
Destructive4.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 114.124);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.928 0.014 114.353);
  --muted-foreground: oklch(0.526 0.019 114.731);
  --popover: oklch(0.995 0.003 114.124);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.003 114.124);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.222 0.05 118.105);
  --primary-foreground: oklch(0.863 0.206 120.83);
  --secondary: oklch(0.88 0.013 114.341);
  --secondary-foreground: oklch(0.369 0.022 115.147);
  --accent: oklch(0.88 0.013 114.341);
  --accent-foreground: oklch(0.369 0.022 115.147);
  --destructive: oklch(0.507 0.187 30.997);
  --destructive-foreground: oklch(0.99 0.004 26.468);
  --ring: oklch(0.222 0.05 118.105);
  --chart-1: oklch(0.222 0.05 118.105);
  --chart-2: oklch(0.88 0.013 114.341);
  --chart-3: oklch(0.88 0.013 114.341);
  --chart-4: oklch(0.901 0.011 114.286);
  --chart-5: oklch(0.223 0.051 118.177);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.015 114.908);
  --foreground: oklch(0.987 0.003 114.117);
  --muted: oklch(0.244 0.02 115.557);
  --muted-foreground: oklch(0.698 0.018 114.535);
  --popover: oklch(0.103 0.015 114.908);
  --popover-foreground: oklch(0.987 0.003 114.117);
  --card: oklch(0.103 0.015 114.908);
  --card-foreground: oklch(0.987 0.003 114.117);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.222 0.05 118.105);
  --primary-foreground: oklch(0.863 0.206 120.83);
  --secondary: oklch(0.278 0.01 114.712);
  --secondary-foreground: oklch(0.816 0.012 114.348);
  --accent: oklch(0.278 0.01 114.712);
  --accent-foreground: oklch(0.816 0.012 114.348);
  --destructive: oklch(0.581 0.216 30.964);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.222 0.05 118.105);
  --chart-1: oklch(0.222 0.05 118.105);
  --chart-2: oklch(0.278 0.01 114.712);
  --chart-3: oklch(0.278 0.01 114.712);
  --chart-4: oklch(0.31 0.011 114.741);
  --chart-5: oklch(0.223 0.051 118.177);
}