Pea is a shadcn/ui theme built around a deep green primary color (#2e7113) with deep pink accents (#71132e). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the deep green primary (#2e7113) on a green-tinted background (#060a05).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #060a05black |
| Foreground | #020401black | #f9fbf9mintcream |
| Card | #f9fcf8mintcream | #060a05black |
| Card foreground | #020401black | #f9fbf9mintcream |
| Popover | #f9fcf8mintcream | #060a05black |
| Popover foreground | #020401black | #f9fbf9mintcream |
| Primary | #2e7113forestgreen | #2e7113forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #132e71midnightblue | #132e71midnightblue |
| Secondary foreground | #c2d0f5lightblue | #c2d0f5lightblue |
| Muted | #dce0eagainsboro | #151923black |
| Muted foreground | #45484fdarkslategray | #b0b3badarkgray |
| Accent | #71132emaroon | #71132emaroon |
| Accent foreground | #f5c2d0pink | #f5c2d0pink |
| Destructive | #d0360bfirebrick | #da380borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2e7113forestgreen | #2e7113forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 5.99:1 | AA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.97:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 5.99:1 | AA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.60:1 | AA |
Paste this into your globals.css to use Pea in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 136.626);
--foreground: oklch(0.101 0.023 134.395);
--muted: oklch(0.906 0.014 268.675);
--muted-foreground: oklch(0.401 0.013 268.533);
--popover: oklch(0.987 0.006 136.626);
--popover-foreground: oklch(0.101 0.023 134.395);
--card: oklch(0.987 0.006 136.626);
--card-foreground: oklch(0.101 0.023 134.395);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.487 0.142 138.855);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.327 0.121 264.307);
--secondary-foreground: oklch(0.859 0.053 268.249);
--accent: oklch(0.364 0.128 10.472);
--accent-foreground: oklch(0.863 0.061 359.655);
--destructive: oklch(0.566 0.197 34.273);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.487 0.142 138.855);
--chart-1: oklch(0.487 0.142 138.855);
--chart-2: oklch(0.327 0.121 264.307);
--chart-3: oklch(0.364 0.128 10.472);
--chart-4: oklch(0.351 0.133 264.237);
--chart-5: oklch(0.493 0.146 138.991);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.015 135.553);
--foreground: oklch(0.987 0.004 136.621);
--muted: oklch(0.214 0.021 267.851);
--muted-foreground: oklch(0.766 0.011 268.686);
--popover: oklch(0.139 0.015 135.553);
--popover-foreground: oklch(0.987 0.004 136.621);
--card: oklch(0.139 0.015 135.553);
--card-foreground: oklch(0.987 0.004 136.621);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.487 0.142 138.855);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.327 0.121 264.307);
--secondary-foreground: oklch(0.859 0.053 268.249);
--accent: oklch(0.364 0.128 10.472);
--accent-foreground: oklch(0.863 0.061 359.655);
--destructive: oklch(0.586 0.204 34.227);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.487 0.142 138.855);
--chart-1: oklch(0.487 0.142 138.855);
--chart-2: oklch(0.327 0.121 264.307);
--chart-3: oklch(0.364 0.128 10.472);
--chart-4: oklch(0.351 0.133 264.237);
--chart-5: oklch(0.493 0.146 138.991);
}