Equal is a shadcn/ui theme built around a yellow primary color (#decd82) with blue accents (#8293de). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the yellow primary (#decd82) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #070603black |
| Foreground | #0d0b02black | #fdfdfcwhite |
| Card | #fbf9f4floralwhite | #0b0a05black |
| Card foreground | #090801black | #ffffffwhite |
| Popover | #fcfbf8snow | #070603black |
| Popover foreground | #0d0b02black | #fdfdfcwhite |
| Primary | #decd82burlywood | #decd82burlywood |
| Primary foreground | #241f0ablack | #241f0ablack |
| Secondary | #8293decornflowerblue | #8293decornflowerblue |
| Secondary foreground | #0a0f24black | #0a0f24black |
| Muted | #dadce7gainsboro | #181b25black |
| Muted foreground | #42444ddarkslategray | #b2b4bdsilver |
| Accent | #8293decornflowerblue | #8293decornflowerblue |
| Accent foreground | #0a0f24black | #0a0f24black |
| Destructive | #b83805firebrick | #f95615orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #decd82burlywood | #decd82burlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 10.31:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 7.11:1 | AAA |
| Accent | 6.47:1 | AA |
| Destructive | 5.83:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 10.31:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 8.33:1 | AAA |
| Accent | 6.47:1 | AA |
| Destructive | 3.29:1 | AA Large |
Paste this into your globals.css to use Equal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 96.225);
--foreground: oklch(0.15 0.025 100.382);
--muted: oklch(0.897 0.015 275.95);
--muted-foreground: oklch(0.387 0.016 275.589);
--popover: oklch(0.988 0.005 96.225);
--popover-foreground: oklch(0.15 0.025 100.382);
--card: oklch(0.983 0.007 96.255);
--card-foreground: oklch(0.131 0.021 101.38);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.845 0.097 97.056);
--primary-foreground: oklch(0.241 0.036 96.858);
--secondary: oklch(0.68 0.112 273.429);
--secondary-foreground: oklch(0.175 0.045 271.499);
--accent: oklch(0.68 0.112 273.429);
--accent-foreground: oklch(0.175 0.045 271.499);
--destructive: oklch(0.525 0.172 37.212);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0.097 97.056);
--chart-1: oklch(0.845 0.097 97.056);
--chart-2: oklch(0.68 0.112 273.429);
--chart-3: oklch(0.68 0.112 273.429);
--chart-4: oklch(0.712 0.101 273.889);
--chart-5: oklch(0.85 0.101 97.054);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.011 99.234);
--foreground: oklch(0.993 0.001 96.177);
--muted: oklch(0.223 0.021 274.747);
--muted-foreground: oklch(0.771 0.013 275.934);
--popover: oklch(0.124 0.011 99.234);
--popover-foreground: oklch(0.993 0.001 96.177);
--card: oklch(0.142 0.013 99.149);
--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.845 0.097 97.056);
--primary-foreground: oklch(0.241 0.036 96.858);
--secondary: oklch(0.68 0.112 273.429);
--secondary-foreground: oklch(0.175 0.045 271.499);
--accent: oklch(0.68 0.112 273.429);
--accent-foreground: oklch(0.175 0.045 271.499);
--destructive: oklch(0.668 0.21 38.162);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0.097 97.056);
--chart-1: oklch(0.845 0.097 97.056);
--chart-2: oklch(0.68 0.112 273.429);
--chart-3: oklch(0.68 0.112 273.429);
--chart-4: oklch(0.712 0.101 273.889);
--chart-5: oklch(0.85 0.101 97.054);
}