Supporting Clean Green for shadcn/ui

Supporting Clean Green is a shadcn/ui theme built around a teal primary color (#84e1c8) with muted light teal accents (#d5dddb). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#84e1c8) on a blue-tinted background (#1b1e27).

Color palette

TokenLightDark
Background
#fbfefdwhite
#1b1e27black
Foreground
#000000black
#a7adcdlightsteelblue
Card
#fbfefdwhite
#030706black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefdwhite
#15171eblack
Popover foreground
#000000black
#c8cbe0lightgrey
Primary
#84e1c8aquamarine
#84e1c8aquamarine
Primary foreground
#0a2921black
#0a2921black
Secondary
#9cdafclightskyblue
#9cdafclightskyblue
Secondary foreground
#034163midnightblue
#034163midnightblue
Muted
#e1e5e4gainsboro
#262931darkslategray
Muted foreground
#424242darkslategray
#a1a5b5darkgray
Accent
#d5dddbgainsboro
#2c3f3adarkslategray
Accent foreground
#394643darkslategray
#c6d7d3lightgrey
Destructive
#9d1e02darkred
#fd4921orangered
Destructive foreground
#ffdad2bisque
#ffffffwhite
Border
#e3e8e7gainsboro
#2a2c32darkslategray
Input
#e3e8e7gainsboro
#31333adarkslategray
Ring
#84e1c8aquamarine
#84e1c8aquamarine

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button10.06:1AAA
Secondary button7.15:1AAA
Muted text7.90:1AAA
Accent7.10:1AAA
Destructive6.21:1AA
Dark mode
Text on background7.54:1AAA
Text on card20.22:1AAA
Primary button10.06:1AAA
Secondary button7.15:1AAA
Muted text5.95:1AA
Accent7.46:1AAA
Destructive3.41:1AA Large

CSS variables

Paste this into your globals.css to use Supporting Clean Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 178.682);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.918 0.004 178.644);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.995 0.004 178.682);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.004 178.682);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.927 0.005 178.622);
  --input: oklch(0.927 0.005 178.622);
  --primary: oklch(0.845 0.097 174.798);
  --primary-foreground: oklch(0.255 0.04 172.417);
  --secondary: oklch(0.859 0.079 232.394);
  --secondary-foreground: oklch(0.36 0.081 240.368);
  --accent: oklch(0.89 0.009 178.5);
  --accent-foreground: oklch(0.382 0.017 177.403);
  --destructive: oklch(0.451 0.165 32.945);
  --destructive-foreground: oklch(0.916 0.043 32.746);
  --ring: oklch(0.845 0.097 174.798);
  --chart-1: oklch(0.845 0.097 174.798);
  --chart-2: oklch(0.859 0.079 232.394);
  --chart-3: oklch(0.89 0.009 178.5);
  --chart-4: oklch(0.879 0.067 232.01);
  --chart-5: oklch(0.85 0.101 174.608);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.236 0.019 271.647);
  --foreground: oklch(0.753 0.047 277.322);
  --muted: oklch(0.28 0.015 272.025);
  --muted-foreground: oklch(0.725 0.023 272.304);
  --popover: oklch(0.205 0.015 271.748);
  --popover-foreground: oklch(0.846 0.029 277.801);
  --card: oklch(0.123 0.011 178.863);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.293 0.012 272.197);
  --input: oklch(0.322 0.013 272.179);
  --primary: oklch(0.845 0.097 174.798);
  --primary-foreground: oklch(0.255 0.04 172.417);
  --secondary: oklch(0.859 0.079 232.394);
  --secondary-foreground: oklch(0.36 0.081 240.368);
  --accent: oklch(0.35 0.026 176.406);
  --accent-foreground: oklch(0.866 0.02 178.112);
  --destructive: oklch(0.661 0.222 33.657);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.097 174.798);
  --chart-1: oklch(0.845 0.097 174.798);
  --chart-2: oklch(0.859 0.079 232.394);
  --chart-3: oklch(0.35 0.026 176.406);
  --chart-4: oklch(0.879 0.067 232.01);
  --chart-5: oklch(0.85 0.101 174.608);
}