Academy is a shadcn/ui theme built around a muted light green primary color (#cedcc7) with muted light pink accents (#dcc7ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#cedcc7) on a green-tinted background (#070a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070a05black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #090e07black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #070a05black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #cedcc7lightgrey | #cedcc7lightgrey |
| Primary foreground | #34452bdarkslategray | #34452bdarkslategray |
| Secondary | #c7cedclightgrey | #c7cedclightgrey |
| Secondary foreground | #2b3445darkslategray | #2b3445darkslategray |
| Muted | #e4e7eclavender | #13161bblack |
| Muted foreground | #576175dimgray | #8a94a8lightslategray |
| Accent | #dcc7cethistle | #dcc7cethistle |
| Accent foreground | #452b34darkslategray | #452b34darkslategray |
| Destructive | #89280bsaddlebrown | #ed5526chocolate |
| Destructive foreground | #fbd6cbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cedcc7lightgrey | #cedcc7lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 5.01:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Academy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.927 0.008 263.038);
--muted-foreground: oklch(0.492 0.035 262.786);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.877 0.032 134.429);
--primary-foreground: oklch(0.368 0.048 135.053);
--secondary: oklch(0.85 0.021 262.994);
--secondary-foreground: oklch(0.325 0.032 262.61);
--accent: oklch(0.848 0.026 354.428);
--accent-foreground: oklch(0.325 0.041 356.98);
--destructive: oklch(0.425 0.136 35.994);
--destructive-foreground: oklch(0.905 0.044 37.6);
--ring: oklch(0.877 0.032 134.429);
--chart-1: oklch(0.877 0.032 134.429);
--chart-2: oklch(0.85 0.021 262.994);
--chart-3: oklch(0.848 0.026 354.428);
--chart-4: oklch(0.875 0.017 263.009);
--chart-5: oklch(0.879 0.036 134.456);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.014 133.276);
--foreground: oklch(0.994 0.003 134.235);
--muted: oklch(0.198 0.012 262.846);
--muted-foreground: oklch(0.666 0.032 262.9);
--popover: oklch(0.139 0.014 133.276);
--popover-foreground: oklch(0.994 0.003 134.235);
--card: oklch(0.154 0.016 133.889);
--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.877 0.032 134.429);
--primary-foreground: oklch(0.368 0.048 135.053);
--secondary: oklch(0.85 0.021 262.994);
--secondary-foreground: oklch(0.325 0.032 262.61);
--accent: oklch(0.848 0.026 354.428);
--accent-foreground: oklch(0.325 0.041 356.98);
--destructive: oklch(0.649 0.197 36.55);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.877 0.032 134.429);
--chart-1: oklch(0.877 0.032 134.429);
--chart-2: oklch(0.85 0.021 262.994);
--chart-3: oklch(0.848 0.026 354.428);
--chart-4: oklch(0.875 0.017 263.009);
--chart-5: oklch(0.879 0.036 134.456);
}