Equal is a shadcn/ui theme built around a green primary color (#88a441) with purple accents (#a44188). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#88a441) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060802black |
| Foreground | #101505black | #ffffffwhite |
| Card | #fcfcfcsnow | #0a0c03black |
| Card foreground | #0d1104black | #ffffffwhite |
| Popover | #ffffffwhite | #060802black |
| Popover foreground | #101505black | #ffffffwhite |
| Primary | #88a441olivedrab | #88a441olivedrab |
| Primary foreground | #0f1207black | #0f1207black |
| Secondary | #4188a4steelblue | #4188a4steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5edf0lavender | #0f171ablack |
| Muted foreground | #505a5edimgray | #a1abafdarkgray |
| Accent | #a44188mediumvioletred | #a44188mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bf4f12chocolate | #ec7636tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #88a441olivedrab | #88a441olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.55:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 3.96:1 | AA Large |
| Muted text | 5.97:1 | AA |
| Accent | 5.67:1 | AA |
| Destructive | 4.84:1 | AA |
| Text on background | 20.11:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 3.96:1 | AA Large |
| Muted text | 7.75:1 | AAA |
| Accent | 5.67:1 | AA |
| Destructive | 7.22:1 | AAA |
Paste this into your globals.css to use Equal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.185 0.032 121.892);
--muted: oklch(0.941 0.009 223.233);
--muted-foreground: oklch(0.459 0.014 223.483);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.185 0.032 121.892);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.168 0.028 121.069);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.677 0.13 123.198);
--primary-foreground: oklch(0.176 0.022 121.317);
--secondary: oklch(0.593 0.082 226.608);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.533 0.154 340.138);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.567 0.159 43.262);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.677 0.13 123.198);
--chart-1: oklch(0.677 0.13 123.198);
--chart-2: oklch(0.593 0.082 226.608);
--chart-3: oklch(0.533 0.154 340.138);
--chart-4: oklch(0.622 0.087 226.645);
--chart-5: oklch(0.686 0.137 123.436);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.019 119.277);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.013 224.121);
--muted-foreground: oklch(0.736 0.013 223.313);
--popover: oklch(0.129 0.019 119.277);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.148 0.022 119.644);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.677 0.13 123.198);
--primary-foreground: oklch(0.176 0.022 121.317);
--secondary: oklch(0.593 0.082 226.608);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.533 0.154 340.138);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.693 0.164 46.095);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.677 0.13 123.198);
--chart-1: oklch(0.677 0.13 123.198);
--chart-2: oklch(0.593 0.082 226.608);
--chart-3: oklch(0.533 0.154 340.138);
--chart-4: oklch(0.622 0.087 226.645);
--chart-5: oklch(0.686 0.137 123.436);
}