University is a shadcn/ui theme built around a red primary color (#c8644c) with cyan accents (#4cafc8). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the red primary (#c8644c) on a neutral background (#080302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #080302black |
| Foreground | #140805black | #faf6f5whitesmoke |
| Card | #fcf9f8snow | #080302black |
| Card foreground | #140805black | #faf6f5whitesmoke |
| Popover | #fcf9f8snow | #080302black |
| Popover foreground | #140805black | #faf6f5whitesmoke |
| Primary | #c8644cindianred | #c8644cindianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4cafc8mediumturquoise | #4cafc8mediumturquoise |
| Secondary foreground | #000000black | #000000black |
| Muted | #e8ecedlavender | #121617black |
| Muted foreground | #3d4e52darkslategray | #adbec2silver |
| Accent | #4cafc8mediumturquoise | #4cafc8mediumturquoise |
| Accent foreground | #000000black | #000000black |
| Destructive | #cc4405chocolate | #fa6b29tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8644cindianred | #c8644cindianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 3.89:1 | AA Large |
| Secondary button | 8.26:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 4.77:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 3.89:1 | AA Large |
| Secondary button | 8.26:1 | AAA |
| Muted text | 9.47:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 7.18:1 | AAA |
Paste this into your globals.css to use University in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 34.311);
--foreground: oklch(0.153 0.023 37.97);
--muted: oklch(0.941 0.005 214.33);
--muted-foreground: oklch(0.41 0.023 214.654);
--popover: oklch(0.984 0.003 34.311);
--popover-foreground: oklch(0.153 0.023 37.97);
--card: oklch(0.984 0.003 34.311);
--card-foreground: oklch(0.153 0.023 37.97);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.618 0.133 35.137);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.705 0.098 216.977);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.705 0.098 216.977);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.573 0.182 38.935);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.618 0.133 35.137);
--chart-1: oklch(0.618 0.133 35.137);
--chart-2: oklch(0.705 0.098 216.977);
--chart-3: oklch(0.705 0.098 216.977);
--chart-4: oklch(0.723 0.094 216.475);
--chart-5: oklch(0.619 0.14 35.174);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.014 41.364);
--foreground: oklch(0.976 0.004 34.31);
--muted: oklch(0.196 0.007 214.474);
--muted-foreground: oklch(0.79 0.02 214.411);
--popover: oklch(0.11 0.014 41.364);
--popover-foreground: oklch(0.976 0.004 34.31);
--card: oklch(0.11 0.014 41.364);
--card-foreground: oklch(0.976 0.004 34.31);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.618 0.133 35.137);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.705 0.098 216.977);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.705 0.098 216.977);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.696 0.19 42.121);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.618 0.133 35.137);
--chart-1: oklch(0.618 0.133 35.137);
--chart-2: oklch(0.705 0.098 216.977);
--chart-3: oklch(0.705 0.098 216.977);
--chart-4: oklch(0.723 0.094 216.475);
--chart-5: oklch(0.619 0.14 35.174);
}