Even is a shadcn/ui theme built around a near-black primary color (#040802) with near-black accents (#020803). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#040802) on a green-tinted background (#081004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #081004black |
| Foreground | #081203black | #f6faf4whitesmoke |
| Card | #ffffffwhite | #081004black |
| Card foreground | #081203black | #f6faf4whitesmoke |
| Popover | #ffffffwhite | #081004black |
| Popover foreground | #081203black | #f6faf4whitesmoke |
| Primary | #040802black | #040802black |
| Primary foreground | #56ab2bolivedrab | #56ab2bolivedrab |
| Secondary | #070802black | #070802black |
| Secondary foreground | #96ab2byellowgreen | #96ab2byellowgreen |
| Muted | #f3f3f1whitesmoke | #0e0e0cblack |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #020803black | #020803black |
| Accent foreground | #2bab40limegreen | #2bab40limegreen |
| Destructive | #852800saddlebrown | #e64500orangered |
| Destructive foreground | #ffcdb8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040802black | #040802black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 6.40:1 | AA |
| Text on background | 18.29:1 | AAA |
| Text on card | 18.29:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 8.92:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Even in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.166 0.037 133.914);
--muted: oklch(0.964 0.003 114.125);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.166 0.037 133.914);
--card: oklch(1 0 180);
--card-foreground: oklch(0.166 0.037 133.914);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.126 0.022 133.138);
--primary-foreground: oklch(0.664 0.181 137.445);
--secondary: oklch(0.131 0.019 114.919);
--secondary-foreground: oklch(0.703 0.15 118.842);
--accent: oklch(0.123 0.022 149.755);
--accent-foreground: oklch(0.652 0.183 145.492);
--destructive: oklch(0.416 0.134 38.729);
--destructive-foreground: oklch(0.887 0.064 44.394);
--ring: oklch(0.126 0.022 133.138);
--chart-1: oklch(0.126 0.022 133.138);
--chart-2: oklch(0.131 0.019 114.919);
--chart-3: oklch(0.123 0.022 149.755);
--chart-4: oklch(0.185 0.03 116.749);
--chart-5: oklch(0.126 0.023 133.059);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.029 134.1);
--foreground: oklch(0.981 0.009 134.872);
--muted: oklch(0.162 0.005 114.611);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.161 0.029 134.1);
--popover-foreground: oklch(0.981 0.009 134.872);
--card: oklch(0.161 0.029 134.1);
--card-foreground: oklch(0.981 0.009 134.872);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.126 0.022 133.138);
--primary-foreground: oklch(0.664 0.181 137.445);
--secondary: oklch(0.131 0.019 114.919);
--secondary-foreground: oklch(0.703 0.15 118.842);
--accent: oklch(0.123 0.022 149.755);
--accent-foreground: oklch(0.652 0.183 145.492);
--destructive: oklch(0.617 0.206 37.099);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.126 0.022 133.138);
--chart-1: oklch(0.126 0.022 133.138);
--chart-2: oklch(0.131 0.019 114.919);
--chart-3: oklch(0.123 0.022 149.755);
--chart-4: oklch(0.185 0.03 116.749);
--chart-5: oklch(0.126 0.023 133.059);
}