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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.69:1 | AAA |
| Primary button | 10.06:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 7.54:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 10.06:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 3.41:1 | AA Large |
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);
}