UM 2 is a shadcn/ui theme built around a vivid red primary color (#ff3333) with vivid red accents (#ff3333). The light mode uses a neutral background (#fafafa). Dark mode switches to a red primary (#d22121) on a neutral background (#101010).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #101010black |
| Foreground | #333333darkslategray | #f2f2f2whitesmoke |
| Card | #ffffffwhite | #292929darkslategray |
| Card foreground | #333333darkslategray | #f2f2f2whitesmoke |
| Popover | #ffffffwhite | #121212black |
| Popover foreground | #333333darkslategray | #f2f2f2whitesmoke |
| Primary | #ff3333crimson | #d22121crimson |
| Primary foreground | #ffffffwhite | #f2f2f2whitesmoke |
| Secondary | #4480bbsteelblue | #ffc033goldenrod |
| Secondary foreground | #ffffffwhite | #131313black |
| Muted | #f2f2f2whitesmoke | #333333darkslategray |
| Muted foreground | #333333darkslategray | #f2f2f2whitesmoke |
| Accent | #ff3333crimson | #161db9mediumblue |
| Accent foreground | #ffffffwhite | #f1f1f1whitesmoke |
| Destructive | #ff0000red | #d6d6d6lightgrey |
| Destructive foreground | #ffffffwhite | #0a0a0ablack |
| Border | #e6e6e6gainsboro | #4d4d4ddarkslategray |
| Input | #ffffffwhite | #333333darkslategray |
| Ring | #ff3333crimson | #c2c2c2silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.09:1 | AAA |
| Text on card | 12.63:1 | AAA |
| Primary button | 3.63:1 | AA Large |
| Secondary button | 4.17:1 | AA Large |
| Muted text | 11.31:1 | AAA |
| Accent | 3.63:1 | AA Large |
| Destructive | 3.99:1 | AA Large |
| Text on background | 17.03:1 | AAA |
| Text on card | 13.03:1 | AAA |
| Primary button | 4.71:1 | AA |
| Secondary button | 11.35:1 | AAA |
| Muted text | 11.28:1 | AAA |
| Accent | 9.72:1 | AAA |
| Destructive | 13.64:1 | AAA |
Paste this into your globals.css to use UM 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.321 0 180);
--muted: oklch(0.962 0 180);
--muted-foreground: oklch(0.321 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.321 0 180);
--card: oklch(1 0 180);
--card-foreground: oklch(0.321 0 180);
--border: oklch(0.923 0 153.435);
--input: oklch(1 0 180);
--primary: oklch(0.649 0.237 26.973);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.585 0.112 250.29);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.649 0.237 26.973);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.628 0.258 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.649 0.237 26.973);
--chart-1: oklch(0.649 0.237 26.973);
--chart-2: oklch(0.585 0.112 250.29);
--chart-3: oklch(0.649 0.237 26.973);
--chart-4: oklch(0.61 0.105 249.912);
--chart-5: oklch(0.652 0.242 27.228);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.172 0 169.695);
--foreground: oklch(0.962 0 180);
--muted: oklch(0.321 0 180);
--muted-foreground: oklch(0.962 0 180);
--popover: oklch(0.181 0 195.945);
--popover-foreground: oklch(0.962 0 180);
--card: oklch(0.28 0 180);
--card-foreground: oklch(0.962 0 180);
--border: oklch(0.418 0 173.29);
--input: oklch(0.321 0 180);
--primary: oklch(0.555 0.209 27.527);
--primary-foreground: oklch(0.961 0 180);
--secondary: oklch(0.844 0.16 82.286);
--secondary-foreground: oklch(0.187 0 170.538);
--accent: oklch(0.381 0.229 267.276);
--accent-foreground: oklch(0.959 0 170.538);
--destructive: oklch(0.877 0 180);
--destructive-foreground: oklch(0.144 0 180);
--ring: oklch(0.815 0 201.801);
--chart-1: oklch(0.555 0.209 27.527);
--chart-2: oklch(0.844 0.16 82.286);
--chart-3: oklch(0.381 0.229 267.276);
--chart-4: oklch(0.854 0.154 83.422);
--chart-5: oklch(0.56 0.215 27.843);
}