Academic is a shadcn/ui theme built around a neutral gray primary color (#424342) with neutral gray accents (#434242). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the neutral gray primary (#424342) on a green-tinted background (#070b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #070b05black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfdfcwhite | #070b05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfdfcwhite | #070b05black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #424342darkslategray | #424342darkslategray |
| Primary foreground | #dbdcdbgainsboro | #dbdcdbgainsboro |
| Secondary | #424243darkslategray | #424243darkslategray |
| Secondary foreground | #dbdbdcgainsboro | #dbdbdcgainsboro |
| Muted | #cddae9gainsboro | #162232darkslategray |
| Muted foreground | #444950darkslategray | #afb4bbsilver |
| Accent | #434242darkslategray | #434242darkslategray |
| Accent foreground | #dcdbdbgainsboro | #dcdbdbgainsboro |
| Destructive | #6d1908maroon | #f05233tomato |
| Destructive foreground | #f9bbaelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #424342darkslategray | #424342darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.65:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 7.27:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Academic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 130.463);
--foreground: oklch(0 0 0);
--muted: oklch(0.883 0.025 253.396);
--muted-foreground: oklch(0.404 0.013 253.416);
--popover: oklch(0.994 0.003 130.463);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 130.463);
--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.382 0.002 130.497);
--primary-foreground: oklch(0.893 0.001 130.449);
--secondary: oklch(0.38 0.001 253.246);
--secondary-foreground: oklch(0.892 0.001 253.224);
--accent: oklch(0.379 0.002 347.96);
--accent-foreground: oklch(0.892 0.001 347.84);
--destructive: oklch(0.355 0.12 32.995);
--destructive-foreground: oklch(0.845 0.075 31.48);
--ring: oklch(0.382 0.002 130.497);
--chart-1: oklch(0.382 0.002 130.497);
--chart-2: oklch(0.38 0.001 253.246);
--chart-3: oklch(0.379 0.002 347.96);
--chart-4: oklch(0.408 0.002 253.246);
--chart-5: oklch(0.386 0.01 130.674);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.016 129.508);
--foreground: oklch(1 0 180);
--muted: oklch(0.249 0.034 253.954);
--muted-foreground: oklch(0.769 0.011 253.314);
--popover: oklch(0.141 0.016 129.508);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.016 129.508);
--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.382 0.002 130.497);
--primary-foreground: oklch(0.893 0.001 130.449);
--secondary: oklch(0.38 0.001 253.246);
--secondary-foreground: oklch(0.892 0.001 253.224);
--accent: oklch(0.379 0.002 347.96);
--accent-foreground: oklch(0.892 0.001 347.84);
--destructive: oklch(0.651 0.199 33.209);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.382 0.002 130.497);
--chart-1: oklch(0.382 0.002 130.497);
--chart-2: oklch(0.38 0.001 253.246);
--chart-3: oklch(0.379 0.002 347.96);
--chart-4: oklch(0.408 0.002 253.246);
--chart-5: oklch(0.386 0.01 130.674);
}