YaleApps is a shadcn/ui theme built around a vivid deep blue primary color (#00356b) with green accents (#5f712d). The light mode uses a neutral background (#ffffff). Dark mode switches to a muted deep cyan primary (#305155) on a cyan-tinted background (#050e10).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050e10black |
| Foreground | #222222black | #ffffffwhite |
| Card | #ffffffwhite | #050e10black |
| Card foreground | #222222black | #ffffffwhite |
| Popover | #ffffffwhite | #050e10black |
| Popover foreground | #222222black | #ffffffwhite |
| Primary | #00356bmidnightblue | #305155darkslategray |
| Primary foreground | #ffffffwhite | #d1e3e5gainsboro |
| Secondary | #eeeeeewhitesmoke | #553051darkslategray |
| Secondary foreground | #00356bmidnightblue | #e5d1e3gainsboro |
| Muted | #eeeeeewhitesmoke | #2e1a2bdarkslategray |
| Muted foreground | #4a4a4adarkslategray | #b9a7b7darkgray |
| Accent | #5f712ddarkolivegreen | #515530darkolivegreen |
| Accent foreground | #ffffffwhite | #e3e5d1gainsboro |
| Destructive | #e13c1forangered | #e3380dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #d1d9e6gainsboro | #202222black |
| Input | #d1d9e6gainsboro | #202222black |
| Ring | #80a7ffcornflowerblue | #305155darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.90:1 | AAA |
| Text on card | 15.90:1 | AAA |
| Primary button | 12.19:1 | AAA |
| Secondary button | 10.51:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 5.40:1 | AA |
| Destructive | 4.31:1 | AA Large |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 6.11:1 | AA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use YaleApps in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.252 0 180);
--muted: oklch(0.949 0 180);
--muted-foreground: oklch(0.409 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.252 0 180);
--card: oklch(1 0 180);
--card-foreground: oklch(0.252 0 180);
--border: oklch(0.883 0.02 260.164);
--input: oklch(0.883 0.02 260.164);
--primary: oklch(0.332 0.107 254.364);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.949 0 180);
--secondary-foreground: oklch(0.332 0.107 254.364);
--accent: oklch(0.518 0.096 122.219);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.602 0.206 32.286);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.737 0.135 265.107);
--chart-1: oklch(0.332 0.107 254.364);
--chart-2: oklch(0.949 0 180);
--chart-3: oklch(0.518 0.096 122.219);
--chart-4: oklch(0.972 0 188.13);
--chart-5: oklch(0.333 0.11 254.505);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.016 205.367);
--foreground: oklch(1 0 180);
--muted: oklch(0.251 0.044 331.006);
--muted-foreground: oklch(0.749 0.029 329.58);
--popover: oklch(0.156 0.016 205.367);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.016 205.367);
--card-foreground: oklch(1 0 180);
--border: oklch(0.25 0.004 206.362);
--input: oklch(0.25 0.004 206.362);
--primary: oklch(0.41 0.039 206.422);
--primary-foreground: oklch(0.903 0.019 206.329);
--secondary: oklch(0.368 0.073 331.26);
--secondary-foreground: oklch(0.883 0.032 329.551);
--accent: oklch(0.435 0.056 114.202);
--accent-foreground: oklch(0.916 0.027 112.324);
--destructive: oklch(0.6 0.212 33.591);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.41 0.039 206.422);
--chart-1: oklch(0.41 0.039 206.422);
--chart-2: oklch(0.368 0.073 331.26);
--chart-3: oklch(0.435 0.056 114.202);
--chart-4: oklch(0.395 0.08 331.295);
--chart-5: oklch(0.414 0.042 206.499);
}