UM Colors is a shadcn/ui theme built around a vivid indigo primary color (#1424d7) with vivid violet accents (#6514d7). The light mode uses a neutral background (#fbfbfe). Dark mode switches to a vivid red primary (#d71414) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #030407black |
| Foreground | #040516black | #fcfcfdwhite |
| Card | #f7f7fdghostwhite | #05050ablack |
| Card foreground | #030411black | #ffffffwhite |
| Popover | #f7f7fdghostwhite | #05050ablack |
| Popover foreground | #030411black | #ffffffwhite |
| Primary | #1424d7mediumblue | #d71414crimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1486d7dodgerblue | #f2c30agold |
| Secondary foreground | #ffffffwhite | #000000black |
| Muted | #cddee9gainsboro | #321616black |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #6514d7blueviolet | #2a23e8blue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d14715chocolate | #dbdbdbgainsboro |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #edeef2whitesmoke | #1e1f29black |
| Input | #edeef2whitesmoke | #1e1f29black |
| Ring | #1424d7mediumblue | #d71414crimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 9.28:1 | AAA |
| Secondary button | 3.89:1 | AA Large |
| Muted text | 4.83:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.55:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 5.26:1 | AA |
| Secondary button | 12.59:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 8.38:1 | AAA |
| Destructive | 15.09:1 | AAA |
Paste this into your globals.css to use UM Colors in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 282.153);
--foreground: oklch(0.128 0.038 273.855);
--muted: oklch(0.891 0.024 238.747);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.979 0.007 282.092);
--popover-foreground: oklch(0.117 0.033 273.865);
--card: oklch(0.979 0.007 282.092);
--card-foreground: oklch(0.117 0.033 273.865);
--border: oklch(0.949 0.006 282.113);
--input: oklch(0.949 0.006 282.113);
--primary: oklch(0.424 0.257 266.093);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.602 0.154 247.399);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.467 0.251 291.166);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.585 0.183 37.658);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.424 0.257 266.093);
--chart-1: oklch(0.424 0.257 266.093);
--chart-2: oklch(0.602 0.154 247.399);
--chart-3: oklch(0.467 0.251 291.166);
--chart-4: oklch(0.63 0.161 247.488);
--chart-5: oklch(0.424 0.263 265.655);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.011 279.184);
--foreground: oklch(0.992 0.001 282.198);
--muted: oklch(0.24 0.045 20.979);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.12 0.013 279.185);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.013 279.185);
--card-foreground: oklch(1 0 180);
--border: oklch(0.244 0.019 280.836);
--input: oklch(0.244 0.019 280.836);
--primary: oklch(0.557 0.22 28.437);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.835 0.169 91.014);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.451 0.272 269.395);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.89 0 180);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.558 0.221 28.437);
--chart-1: oklch(0.557 0.22 28.437);
--chart-2: oklch(0.835 0.169 91.014);
--chart-3: oklch(0.451 0.272 269.395);
--chart-4: oklch(0.849 0.171 91.891);
--chart-5: oklch(0.563 0.225 28.634);
}