Educated is a shadcn/ui theme built around a green primary color (#71db39) with violet accents (#a239db). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#71db39) on a green-tinted background (#090f05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #090f05black |
| Foreground | #0b1406black | #f7f9f6whitesmoke |
| Card | #fcfcfcsnow | #0b1306black |
| Card foreground | #091005black | #fafbf9snow |
| Popover | #ffffffwhite | #090f05black |
| Popover foreground | #0b1406black | #f7f9f6whitesmoke |
| Primary | #71db39yellowgreen | #71db39yellowgreen |
| Primary foreground | #1c3c0bdarkgreen | #1c3c0bdarkgreen |
| Secondary | #a239dbdarkorchid | #a239dbdarkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfdae1gainsboro | #221e25black |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #a239dbdarkorchid | #a239dbdarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c52911firebrick | #ee563ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #71db39yellowgreen | #71db39yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 5.07:1 | AA |
| Muted text | 6.14:1 | AA |
| Accent | 5.07:1 | AA |
| Destructive | 5.67:1 | AA |
| Text on background | 18.30:1 | AAA |
| Text on card | 18.21:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 5.07:1 | AA |
| Muted text | 7.84:1 | AAA |
| Accent | 5.07:1 | AA |
| Destructive | 6.04:1 | AA |
Paste this into your globals.css to use Educated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.175 0.03 134.628);
--muted: oklch(0.895 0.011 314.151);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.03 134.628);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.16 0.026 133.652);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.797 0.216 137.066);
--primary-foreground: oklch(0.321 0.084 136.818);
--secondary: oklch(0.569 0.236 310.578);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.236 310.578);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.536 0.195 31.527);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.797 0.216 137.066);
--chart-1: oklch(0.797 0.216 137.066);
--chart-2: oklch(0.569 0.236 310.578);
--chart-3: oklch(0.569 0.236 310.578);
--chart-4: oklch(0.592 0.226 311.183);
--chart-5: oklch(0.805 0.223 137.22);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.025 133.687);
--foreground: oklch(0.98 0.005 134.251);
--muted: oklch(0.241 0.015 313.871);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.159 0.025 133.687);
--popover-foreground: oklch(0.98 0.005 134.251);
--card: oklch(0.174 0.029 134.658);
--card-foreground: oklch(0.987 0.004 134.24);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.797 0.216 137.066);
--primary-foreground: oklch(0.321 0.084 136.818);
--secondary: oklch(0.569 0.236 310.578);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.236 310.578);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.654 0.192 31.362);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.797 0.216 137.066);
--chart-1: oklch(0.797 0.216 137.066);
--chart-2: oklch(0.569 0.236 310.578);
--chart-3: oklch(0.569 0.236 310.578);
--chart-4: oklch(0.592 0.226 311.183);
--chart-5: oklch(0.805 0.223 137.22);
}