Uneven is a shadcn/ui theme built around a deep green primary color (#235229) with deep red accents (#522923). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the deep green primary (#235229) on a green-tinted background (#040b05).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf8mintcream | #040b05black |
| Foreground | #020902black | #f8fcf8mintcream |
| Card | #f3fcf4honeydew | #060f07black |
| Card foreground | #010401black | #fbfdfcwhite |
| Popover | #f7fdf8mintcream | #040b05black |
| Popover foreground | #020902black | #f8fcf8mintcream |
| Primary | #235229darkslategray | #235229darkslategray |
| Primary foreground | #c2e5c6lightgrey | #c2e5c6lightgrey |
| Secondary | #292352midnightblue | #292352midnightblue |
| Secondary foreground | #c6c2e5thistle | #c6c2e5thistle |
| Muted | #d3d1e1lightgrey | #201e2edarkslategray |
| Muted foreground | #4b4a54darkslategray | #acabb5darkgray |
| Accent | #522923saddlebrown | #522923saddlebrown |
| Accent foreground | #e5c6c2thistle | #e5c6c2thistle |
| Destructive | #ca420cchocolate | #f2591cchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #235229darkslategray | #235229darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 4.88:1 | AA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.21:1 | AA |
Paste this into your globals.css to use Uneven in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 149.022);
--foreground: oklch(0.124 0.026 147.679);
--muted: oklch(0.866 0.022 291.296);
--muted-foreground: oklch(0.415 0.016 291.057);
--popover: oklch(0.988 0.009 149.022);
--popover-foreground: oklch(0.124 0.026 147.679);
--card: oklch(0.982 0.014 148.966);
--card-foreground: oklch(0.098 0.021 147.679);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.395 0.085 146.081);
--primary-foreground: oklch(0.889 0.055 148.373);
--secondary: oklch(0.291 0.083 285.354);
--secondary-foreground: oklch(0.829 0.048 290.656);
--accent: oklch(0.334 0.063 28.722);
--accent-foreground: oklch(0.852 0.035 26.77);
--destructive: oklch(0.568 0.182 37.784);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.395 0.085 146.081);
--chart-1: oklch(0.395 0.085 146.081);
--chart-2: oklch(0.291 0.083 285.354);
--chart-3: oklch(0.334 0.063 28.722);
--chart-4: oklch(0.314 0.091 285.147);
--chart-5: oklch(0.399 0.091 145.88);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.02 148.177);
--foreground: oklch(0.987 0.006 149.06);
--muted: oklch(0.246 0.03 289.31);
--muted-foreground: oklch(0.746 0.014 291.436);
--popover: oklch(0.139 0.02 148.177);
--popover-foreground: oklch(0.987 0.006 149.06);
--card: oklch(0.154 0.023 147.878);
--card-foreground: oklch(0.993 0.003 149.097);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.395 0.085 146.081);
--primary-foreground: oklch(0.889 0.055 148.373);
--secondary: oklch(0.291 0.083 285.354);
--secondary-foreground: oklch(0.829 0.048 290.656);
--accent: oklch(0.334 0.063 28.722);
--accent-foreground: oklch(0.852 0.035 26.77);
--destructive: oklch(0.66 0.199 38.894);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.395 0.085 146.081);
--chart-1: oklch(0.395 0.085 146.081);
--chart-2: oklch(0.291 0.083 285.354);
--chart-3: oklch(0.334 0.063 28.722);
--chart-4: oklch(0.314 0.091 285.147);
--chart-5: oklch(0.399 0.091 145.88);
}