College is a shadcn/ui theme built around a vivid yellow primary color (#9d7101) with vivid violet accents (#71019d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#9d7101) on a neutral background (#080603).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080603black |
| Foreground | #050301black | #ffffffwhite |
| Card | #ffffffwhite | #080603black |
| Card foreground | #050301black | #ffffffwhite |
| Popover | #ffffffwhite | #080603black |
| Popover foreground | #050301black | #ffffffwhite |
| Primary | #9d7101olive | #9d7101olive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #019d71darkcyan | #019d71darkcyan |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d7dfddgainsboro | #202825darkslategray |
| Muted foreground | #40544edarkslategray | #abbfb9silver |
| Accent | #71019ddarkmagenta | #71019ddarkmagenta |
| Accent foreground | #f2d1fflavender | #f2d1fflavender |
| Destructive | #8d1d01darkred | #fd5d35tomato |
| Destructive foreground | #fecec2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9d7101olive | #9d7101olive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 4.37:1 | AA Large |
| Secondary button | 3.45:1 | AA Large |
| Muted text | 5.97:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 6.38:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 4.37:1 | AA Large |
| Secondary button | 3.45:1 | AA Large |
| Muted text | 7.85:1 | AAA |
| Accent | 6.99:1 | AA |
| Destructive | 6.79:1 | AA |
Paste this into your globals.css to use College in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.016 95.873);
--muted: oklch(0.898 0.009 177.423);
--muted-foreground: oklch(0.426 0.025 175.852);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.016 95.873);
--card: oklch(1 0 180);
--card-foreground: oklch(0.101 0.016 95.873);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.578 0.119 81.171);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.617 0.13 164.662);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.42 0.21 311.376);
--accent-foreground: oklch(0.903 0.07 316.381);
--destructive: oklch(0.421 0.151 33.775);
--destructive-foreground: oklch(0.891 0.057 34.374);
--ring: oklch(0.578 0.119 81.171);
--chart-1: oklch(0.578 0.119 81.171);
--chart-2: oklch(0.617 0.13 164.662);
--chart-3: oklch(0.42 0.21 311.376);
--chart-4: oklch(0.661 0.14 164.502);
--chart-5: oklch(0.583 0.121 80.755);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.012 93.45);
--foreground: oklch(1 0 180);
--muted: oklch(0.267 0.012 176.362);
--muted-foreground: oklch(0.787 0.022 176.866);
--popover: oklch(0.123 0.012 93.45);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.012 93.45);
--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.578 0.119 81.171);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.617 0.13 164.662);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.42 0.21 311.376);
--accent-foreground: oklch(0.903 0.07 316.381);
--destructive: oklch(0.684 0.202 35.006);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.578 0.119 81.171);
--chart-1: oklch(0.578 0.119 81.171);
--chart-2: oklch(0.617 0.13 164.662);
--chart-3: oklch(0.42 0.21 311.376);
--chart-4: oklch(0.661 0.14 164.502);
--chart-5: oklch(0.583 0.121 80.755);
}