School is a shadcn/ui theme built around a muted green primary color (#abbd9e) with muted light green accents (#cbd4c4). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted green primary (#abbd9e) on a green-tinted background (#070c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #070c04black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f7fbf4whitesmoke | #091005black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fafcf8snow | #070c04black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #abbd9edarkgray | #abbd9edarkgray |
| Primary foreground | #141811black | #141811black |
| Secondary | #e0e3degainsboro | #1c1e1ablack |
| Secondary foreground | #474c42darkslategray | #b4b9b1silver |
| Muted | #eff3ecwhitesmoke | #0f130cblack |
| Muted foreground | #61635fdimgray | #9ea09cdarkgray |
| Accent | #cbd4c4lightgrey | #2d3329darkslategray |
| Accent foreground | #323b2bdarkslategray | #c6cdc1silver |
| Destructive | #c84a14chocolate | #d14d15chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #abbd9edarkgray | #abbd9edarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 8.98:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.41:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 4.74:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 8.98:1 | AAA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.39:1 | AA Large |
Paste this into your globals.css to use School in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 131.146);
--foreground: oklch(0 0 0);
--muted: oklch(0.96 0.01 131.174);
--muted-foreground: oklch(0.496 0.007 131.202);
--popover: oklch(0.989 0.007 131.146);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.01 131.177);
--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.776 0.047 131.636);
--primary-foreground: oklch(0.203 0.016 131.833);
--secondary: oklch(0.911 0.006 131.145);
--secondary-foreground: oklch(0.41 0.018 131.476);
--accent: oklch(0.858 0.023 131.32);
--accent-foreground: oklch(0.338 0.028 131.867);
--destructive: oklch(0.573 0.171 39.787);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.776 0.047 131.636);
--chart-1: oklch(0.776 0.047 131.636);
--chart-2: oklch(0.911 0.006 131.145);
--chart-3: oklch(0.858 0.023 131.32);
--chart-4: oklch(0.934 0.005 131.129);
--chart-5: oklch(0.781 0.054 131.722);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.021 129.956);
--foreground: oklch(0.993 0.002 131.1);
--muted: oklch(0.178 0.015 131.848);
--muted-foreground: oklch(0.703 0.006 131.16);
--popover: oklch(0.144 0.021 129.956);
--popover-foreground: oklch(0.993 0.002 131.1);
--card: oklch(0.16 0.025 130.979);
--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.776 0.047 131.636);
--primary-foreground: oklch(0.203 0.016 131.833);
--secondary: oklch(0.231 0.007 131.353);
--secondary-foreground: oklch(0.781 0.014 131.238);
--accent: oklch(0.312 0.019 131.646);
--accent-foreground: oklch(0.84 0.019 131.279);
--destructive: oklch(0.593 0.178 39.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.776 0.047 131.636);
--chart-1: oklch(0.776 0.047 131.636);
--chart-2: oklch(0.231 0.007 131.353);
--chart-3: oklch(0.312 0.019 131.646);
--chart-4: oklch(0.264 0.009 131.373);
--chart-5: oklch(0.781 0.054 131.722);
}