Eager is a shadcn/ui theme built around a muted violet primary color (#b7b1c9) with muted green accents (#b1c9b7). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted violet primary (#b7b1c9) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #040307black |
| Foreground | #020104black | #f6f5fawhitesmoke |
| Card | #f6f4fawhitesmoke | #06050bblack |
| Card foreground | #000000black | #f9f8fcghostwhite |
| Popover | #f9f8fcghostwhite | #040307black |
| Popover foreground | #020104black | #f6f5fawhitesmoke |
| Primary | #b7b1c9silver | #b7b1c9silver |
| Primary foreground | #211d2ablack | #211d2ablack |
| Secondary | #c9b7b1silver | #c9b7b1silver |
| Secondary foreground | #2a211dblack | #2a211dblack |
| Muted | #ebe3e0gainsboro | #1f1714black |
| Muted foreground | #4b4644darkslategray | #bbb6b4silver |
| Accent | #b1c9b7silver | #b1c9b7silver |
| Accent foreground | #1d2a21black | #1d2a21black |
| Destructive | #bd3e0ffirebrick | #ed5b26chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b7b1c9silver | #b7b1c9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 5.46:1 | AA |
| Text on background | 18.94:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 8.78:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 6.14:1 | AA |
Paste this into your globals.css to use Eager in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 298.471);
--foreground: oklch(0.076 0.019 298.396);
--muted: oklch(0.921 0.009 41.229);
--muted-foreground: oklch(0.398 0.008 41.163);
--popover: oklch(0.981 0.005 298.471);
--popover-foreground: oklch(0.076 0.019 298.396);
--card: oklch(0.971 0.008 298.421);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.772 0.034 297.788);
--primary-foreground: oklch(0.242 0.025 296.744);
--secondary: oklch(0.793 0.022 41.114);
--secondary-foreground: oklch(0.256 0.016 40.96);
--accent: oklch(0.812 0.035 153.731);
--accent-foreground: oklch(0.27 0.025 152.774);
--destructive: oklch(0.541 0.171 37.428);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.772 0.034 297.788);
--chart-1: oklch(0.772 0.034 297.788);
--chart-2: oklch(0.793 0.022 41.114);
--chart-3: oklch(0.812 0.035 153.731);
--chart-4: oklch(0.817 0.019 41.138);
--chart-5: oklch(0.768 0.04 297.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.014 298.478);
--foreground: oklch(0.972 0.007 298.44);
--muted: oklch(0.213 0.013 40.96);
--muted-foreground: oklch(0.78 0.007 41.239);
--popover: oklch(0.104 0.014 298.478);
--popover-foreground: oklch(0.972 0.007 298.44);
--card: oklch(0.12 0.016 298.458);
--card-foreground: oklch(0.981 0.005 298.483);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.772 0.034 297.788);
--primary-foreground: oklch(0.242 0.025 296.744);
--secondary: oklch(0.793 0.022 41.114);
--secondary-foreground: oklch(0.256 0.016 40.96);
--accent: oklch(0.812 0.035 153.731);
--accent-foreground: oklch(0.27 0.025 152.774);
--destructive: oklch(0.656 0.191 38.59);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.772 0.034 297.788);
--chart-1: oklch(0.772 0.034 297.788);
--chart-2: oklch(0.793 0.022 41.114);
--chart-3: oklch(0.812 0.035 153.731);
--chart-4: oklch(0.817 0.019 41.138);
--chart-5: oklch(0.768 0.04 297.65);
}