Eager is a shadcn/ui theme built around a vivid deep violet primary color (#110024) with vivid deep green accents (#002411). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#110024) on a neutral background (#050208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050208black |
| Foreground | #0a0312black | #f7f5f9whitesmoke |
| Card | #ffffffwhite | #050208black |
| Card foreground | #0a0312black | #f7f5f9whitesmoke |
| Popover | #ffffffwhite | #050208black |
| Popover foreground | #0a0312black | #f7f5f9whitesmoke |
| Primary | #110024black | #110024black |
| Primary foreground | #ddbdffthistle | #ddbdffthistle |
| Secondary | #241100black | #241100black |
| Secondary foreground | #f07400darkorange | #f07400darkorange |
| Muted | #ebddd1gainsboro | #2e2114black |
| Muted foreground | #55514edarkslategray | #b1adaadarkgray |
| Accent | #002411black | #002411black |
| Accent foreground | #00f074springgreen | #00f074springgreen |
| Destructive | #c52216firebrick | #dc2618crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #110024black | #110024black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 12.19:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 5.92:1 | AA |
| Accent | 10.91:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 12.19:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.02:1 | AAA |
| Accent | 10.91:1 | AAA |
| Destructive | 4.84:1 | AA |
Paste this into your globals.css to use Eager in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.041 307.586);
--muted: oklch(0.906 0.022 65.665);
--muted-foreground: oklch(0.439 0.007 65.781);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.041 307.586);
--card: oklch(1 0 180);
--card-foreground: oklch(0.122 0.041 307.586);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.146 0.077 302.592);
--primary-foreground: oklch(0.847 0.097 306.448);
--secondary: oklch(0.201 0.045 65.659);
--secondary-foreground: oklch(0.692 0.18 51.215);
--accent: oklch(0.228 0.055 156.45);
--accent-foreground: oklch(0.834 0.227 150.506);
--destructive: oklch(0.532 0.199 29.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.146 0.077 302.592);
--chart-1: oklch(0.146 0.077 302.592);
--chart-2: oklch(0.201 0.045 65.659);
--chart-3: oklch(0.228 0.055 156.45);
--chart-4: oklch(0.244 0.057 61.109);
--chart-5: oklch(0.145 0.079 302.468);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.022 309.301);
--foreground: oklch(0.974 0.006 307.719);
--muted: oklch(0.259 0.03 63.98);
--muted-foreground: oklch(0.75 0.006 65.873);
--popover: oklch(0.102 0.022 309.301);
--popover-foreground: oklch(0.974 0.006 307.719);
--card: oklch(0.102 0.022 309.301);
--card-foreground: oklch(0.974 0.006 307.719);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.146 0.077 302.592);
--primary-foreground: oklch(0.847 0.097 306.448);
--secondary: oklch(0.201 0.045 65.659);
--secondary-foreground: oklch(0.692 0.18 51.215);
--accent: oklch(0.228 0.055 156.45);
--accent-foreground: oklch(0.834 0.227 150.506);
--destructive: oklch(0.576 0.217 29.603);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.146 0.077 302.592);
--chart-1: oklch(0.146 0.077 302.592);
--chart-2: oklch(0.201 0.045 65.659);
--chart-3: oklch(0.228 0.055 156.45);
--chart-4: oklch(0.244 0.057 61.109);
--chart-5: oklch(0.145 0.079 302.468);
}