Warren for shadcn/ui

Warren is a shadcn/ui theme built around a deep green primary color (#051203) with deep green accents (#031208). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#051203) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#ffffffwhite
#020302black
Foreground
#071005black
#f6f9f6whitesmoke
Card
#ffffffwhite
#020302black
Card foreground
#071005black
#f6f9f6whitesmoke
Popover
#ffffffwhite
#020302black
Popover foreground
#071005black
#f6f9f6whitesmoke
Primary
#051203black
#051203black
Primary foreground
#38c41climegreen
#38c41climegreen
Secondary
#0d1203black
#0d1203black
Secondary foreground
#8cc41cyellowgreen
#8cc41cyellowgreen
Muted
#eff3e7linen
#14180cblack
Muted foreground
#484f3bdarkslategray
#bec4b0silver
Accent
#031208black
#031208black
Accent foreground
#1cc454limegreen
#1cc454limegreen
Destructive
#b33300firebrick
#ff692etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#051203black
#051203black

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button8.30:1AAA
Secondary button9.08:1AAA
Muted text7.59:1AAA
Accent8.30:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button8.30:1AAA
Secondary button9.08:1AAA
Muted text10.06:1AAA
Accent8.30:1AAA
Destructive7.31:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.029 139.228);
  --muted: oklch(0.958 0.016 121.764);
  --muted-foreground: oklch(0.416 0.034 122.855);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.029 139.228);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.158 0.029 139.228);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.163 0.04 138.723);
  --primary-foreground: oklch(0.719 0.227 141.099);
  --secondary: oklch(0.171 0.034 123.176);
  --secondary-foreground: oklch(0.755 0.19 127.88);
  --accent: oklch(0.163 0.033 155.108);
  --accent-foreground: oklch(0.719 0.201 148.119);
  --destructive: oklch(0.51 0.171 36.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.163 0.04 138.723);
  --chart-1: oklch(0.163 0.04 138.723);
  --chart-2: oklch(0.171 0.034 123.176);
  --chart-3: oklch(0.163 0.033 155.108);
  --chart-4: oklch(0.224 0.048 125.277);
  --chart-5: oklch(0.164 0.041 138.653);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 139.505);
  --foreground: oklch(0.979 0.005 140.524);
  --muted: oklch(0.2 0.023 123.459);
  --muted-foreground: oklch(0.811 0.029 122.08);
  --popover: oklch(0.096 0.01 139.505);
  --popover-foreground: oklch(0.979 0.005 140.524);
  --card: oklch(0.096 0.01 139.505);
  --card-foreground: oklch(0.979 0.005 140.524);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.163 0.04 138.723);
  --primary-foreground: oklch(0.719 0.227 141.099);
  --secondary: oklch(0.171 0.034 123.176);
  --secondary-foreground: oklch(0.755 0.19 127.88);
  --accent: oklch(0.163 0.033 155.108);
  --accent-foreground: oklch(0.719 0.201 148.119);
  --destructive: oklch(0.702 0.196 39.962);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.163 0.04 138.723);
  --chart-1: oklch(0.163 0.04 138.723);
  --chart-2: oklch(0.171 0.034 123.176);
  --chart-3: oklch(0.163 0.033 155.108);
  --chart-4: oklch(0.224 0.048 125.277);
  --chart-5: oklch(0.164 0.041 138.653);
}