University is a shadcn/ui theme built around a near-white primary color (#f6fcfe) with near-white accents (#fcfef6). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f6fcfe) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #000000black | #f8fbfcghostwhite |
| Card | #fcfcfcsnow | #05090ablack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #ffffffwhite | #030607black |
| Popover foreground | #000000black | #f8fbfcghostwhite |
| Primary | #f6fcfeghostwhite | #f6fcfeghostwhite |
| Primary foreground | #0d434fdarkslategray | #0d434fdarkslategray |
| Secondary | #fef6fcsnow | #fef6fcsnow |
| Secondary foreground | #a71b8dmediumvioletred | #a71b8dmediumvioletred |
| Muted | #f1dfeelavender | #200e1cblack |
| Muted foreground | #4e3b4bdarkslategray | #c4b1c0silver |
| Accent | #fcfef6snow | #fcfef6snow |
| Accent foreground | #434f0ddarkolivegreen | #434f0ddarkolivegreen |
| Destructive | #940000darkred | #f50000red |
| Destructive foreground | #ffc7c7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6fcfeghostwhite | #f6fcfeghostwhite |
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 | 10.50:1 | AAA |
| Secondary button | 6.22:1 | AA |
| Muted text | 8.06:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 10.50:1 | AAA |
| Secondary button | 6.22:1 | AA |
| Muted text | 9.10:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use University in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.923 0.027 331.813);
--muted-foreground: oklch(0.38 0.037 332.716);
--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.988 0.007 212.667);
--primary-foreground: oklch(0.354 0.057 216.687);
--secondary: oklch(0.981 0.011 331.567);
--secondary-foreground: oklch(0.505 0.205 337.359);
--accent: oklch(0.993 0.01 115.005);
--accent-foreground: oklch(0.403 0.088 119.845);
--destructive: oklch(0.418 0.172 29.234);
--destructive-foreground: oklch(0.879 0.064 18.449);
--ring: oklch(0.988 0.007 212.667);
--chart-1: oklch(0.988 0.007 212.667);
--chart-2: oklch(0.981 0.011 331.567);
--chart-3: oklch(0.993 0.01 115.005);
--chart-4: oklch(1.009 0.005 151.329);
--chart-5: oklch(0.988 0.007 212.667);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.007 210.225);
--foreground: oklch(0.986 0.003 212.664);
--muted: oklch(0.197 0.039 333.973);
--muted-foreground: oklch(0.78 0.031 331.957);
--popover: oklch(0.119 0.007 210.225);
--popover-foreground: oklch(0.986 0.003 212.664);
--card: oklch(0.136 0.009 210.225);
--card-foreground: oklch(0.993 0.002 212.662);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.988 0.007 212.667);
--primary-foreground: oklch(0.354 0.057 216.687);
--secondary: oklch(0.981 0.011 331.567);
--secondary-foreground: oklch(0.505 0.205 337.359);
--accent: oklch(0.993 0.01 115.005);
--accent-foreground: oklch(0.403 0.088 119.845);
--destructive: oklch(0.609 0.25 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.988 0.007 212.667);
--chart-1: oklch(0.988 0.007 212.667);
--chart-2: oklch(0.981 0.011 331.567);
--chart-3: oklch(0.993 0.01 115.005);
--chart-4: oklch(1.009 0.005 151.329);
--chart-5: oklch(0.988 0.007 212.667);
}