Evergreen is a shadcn/ui theme built around a cyan primary color (#8dc4d3) with red accents (#d39c8d). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#8dc4d3) on a cyan-tinted background (#070c0e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070c0eblack |
| Foreground | #040e11black | #f8fbfcghostwhite |
| Card | #fcfcfcsnow | #080f11black |
| Card foreground | #030a0dblack | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #080f11black |
| Popover foreground | #030a0dblack | #fcfdfdwhite |
| Primary | #8dc4d3skyblue | #8dc4d3skyblue |
| Primary foreground | #0d1d21black | #0d1d21black |
| Secondary | #d39c8dtan | #d39c8dtan |
| Secondary foreground | #21110dblack | #21110dblack |
| Muted | #e7e1dfgainsboro | #201a18black |
| Muted foreground | #594d4adarkolivegreen | #b5a9a6darkgray |
| Accent | #d39c8dtan | #d39c8dtan |
| Accent foreground | #21110dblack | #21110dblack |
| Destructive | #652601maroon | #fe7120tomato |
| Destructive foreground | #febf9anavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8dc4d3skyblue | #8dc4d3skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 18.90:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 7.60:1 | AAA |
Paste this into your globals.css to use Evergreen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.019 214.813);
--muted: oklch(0.913 0.007 35.986);
--muted-foreground: oklch(0.432 0.016 35.944);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.138 0.016 212.426);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.138 0.016 212.426);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.787 0.06 216.78);
--primary-foreground: oklch(0.217 0.023 217.495);
--secondary: oklch(0.741 0.069 36.032);
--secondary-foreground: oklch(0.2 0.028 36.198);
--accent: oklch(0.741 0.069 36.032);
--accent-foreground: oklch(0.2 0.028 36.198);
--destructive: oklch(0.356 0.102 44.586);
--destructive-foreground: oklch(0.853 0.089 51.223);
--ring: oklch(0.787 0.06 216.78);
--chart-1: oklch(0.787 0.06 216.78);
--chart-2: oklch(0.741 0.069 36.032);
--chart-3: oklch(0.741 0.069 36.032);
--chart-4: oklch(0.766 0.062 35.998);
--chart-5: oklch(0.789 0.064 216.866);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.15 0.01 215.359);
--foreground: oklch(0.986 0.003 216.025);
--muted: oklch(0.224 0.01 35.945);
--muted-foreground: oklch(0.744 0.014 35.961);
--popover: oklch(0.163 0.011 216.439);
--popover-foreground: oklch(0.993 0.002 216.018);
--card: oklch(0.163 0.011 216.439);
--card-foreground: oklch(0.993 0.002 216.018);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.787 0.06 216.78);
--primary-foreground: oklch(0.217 0.023 217.495);
--secondary: oklch(0.741 0.069 36.032);
--secondary-foreground: oklch(0.2 0.028 36.198);
--accent: oklch(0.741 0.069 36.032);
--accent-foreground: oklch(0.2 0.028 36.198);
--destructive: oklch(0.71 0.191 45.057);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.787 0.06 216.78);
--chart-1: oklch(0.787 0.06 216.78);
--chart-2: oklch(0.741 0.069 36.032);
--chart-3: oklch(0.741 0.069 36.032);
--chart-4: oklch(0.766 0.062 35.998);
--chart-5: oklch(0.789 0.064 216.866);
}