Academic is a shadcn/ui theme built around a light teal primary color (#f2f8f7) with muted light teal accents (#e9ecec). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the light teal primary (#f2f8f7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfcmintcream | #000000black |
| Foreground | #04110fblack | #ffffffwhite |
| Card | #f8fcfcmintcream | #000000black |
| Card foreground | #04110fblack | #ffffffwhite |
| Popover | #f8fcfcmintcream | #000000black |
| Popover foreground | #04110fblack | #ffffffwhite |
| Primary | #f2f8f7whitesmoke | #f2f8f7whitesmoke |
| Primary foreground | #1c3632darkslategray | #1c3632darkslategray |
| Secondary | #e9ececlavender | #313534darkslategray |
| Secondary foreground | #4a5957darkslategray | #cacecdlightgrey |
| Muted | #e6efeelavender | #101918black |
| Muted foreground | #394644darkslategray | #b9c6c4silver |
| Accent | #e9ececlavender | #313534darkslategray |
| Accent foreground | #4a5957darkslategray | #cacecdlightgrey |
| Destructive | #82240dsaddlebrown | #e94820orangered |
| Destructive foreground | #f9d1c7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2f8f7whitesmoke | #f2f8f7whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 12.03:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 8.42:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 12.03:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 10.16:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Academic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 186.463);
--foreground: oklch(0.162 0.021 184.079);
--muted: oklch(0.946 0.01 186.321);
--muted-foreground: oklch(0.383 0.017 185.446);
--popover: oklch(0.988 0.005 186.463);
--popover-foreground: oklch(0.162 0.021 184.079);
--card: oklch(0.988 0.005 186.463);
--card-foreground: oklch(0.162 0.021 184.079);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.974 0.007 186.412);
--primary-foreground: oklch(0.31 0.033 183.47);
--secondary: oklch(0.941 0.004 186.487);
--secondary-foreground: oklch(0.451 0.019 185.515);
--accent: oklch(0.941 0.004 186.487);
--accent-foreground: oklch(0.451 0.019 185.515);
--destructive: oklch(0.407 0.132 34.543);
--destructive-foreground: oklch(0.893 0.047 34.342);
--ring: oklch(0.974 0.007 186.412);
--chart-1: oklch(0.974 0.007 186.412);
--chart-2: oklch(0.941 0.004 186.487);
--chart-3: oklch(0.941 0.004 186.487);
--chart-4: oklch(0.964 0.002 186.53);
--chart-5: oklch(0.975 0.008 186.395);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.014 184.732);
--muted-foreground: oklch(0.815 0.014 186.148);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.974 0.007 186.412);
--primary-foreground: oklch(0.31 0.033 183.47);
--secondary: oklch(0.324 0.004 186.255);
--secondary-foreground: oklch(0.847 0.003 186.493);
--accent: oklch(0.324 0.004 186.255);
--accent-foreground: oklch(0.847 0.003 186.493);
--destructive: oklch(0.628 0.204 34.549);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.974 0.007 186.412);
--chart-1: oklch(0.974 0.007 186.412);
--chart-2: oklch(0.324 0.004 186.255);
--chart-3: oklch(0.324 0.004 186.255);
--chart-4: oklch(0.354 0.005 186.245);
--chart-5: oklch(0.975 0.008 186.395);
}