Understated is a shadcn/ui theme built around a blue primary color (#2c41ce) with green accents (#41ce2c). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#2c41ce) on a blue-tinted background (#040610).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040610black |
| Foreground | #04050cblack | #ffffffwhite |
| Card | #ffffffwhite | #040610black |
| Card foreground | #04050cblack | #ffffffwhite |
| Popover | #ffffffwhite | #040610black |
| Popover foreground | #04050cblack | #ffffffwhite |
| Primary | #2c41ceroyalblue | #2c41ceroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ce2c41crimson | #ce2c41crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1e9ealinen | #160e0fblack |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #41ce2climegreen | #41ce2climegreen |
| Accent foreground | #0c2608black | #0c2608black |
| Destructive | #a03503saddlebrown | #fb6e2dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c41ceroyalblue | #2c41ceroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 5.16:1 | AA |
| Muted text | 7.80:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 5.16:1 | AA |
| Muted text | 9.59:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 7.36:1 | AAA |
Paste this into your globals.css to use Understated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.116 0.018 273.849);
--muted: oklch(0.941 0.008 7.962);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.018 273.849);
--card: oklch(1 0 180);
--card-foreground: oklch(0.116 0.018 273.849);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.462 0.216 268.709);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.559 0.197 19.837);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.748 0.228 141.326);
--accent-foreground: oklch(0.239 0.061 141.031);
--destructive: oklch(0.48 0.151 39.421);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.462 0.216 268.709);
--chart-1: oklch(0.462 0.216 268.709);
--chart-2: oklch(0.559 0.197 19.837);
--chart-3: oklch(0.748 0.228 141.326);
--chart-4: oklch(0.579 0.194 18.791);
--chart-5: oklch(0.46 0.224 268.139);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.025 272.935);
--foreground: oklch(1 0 180);
--muted: oklch(0.175 0.013 9.552);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.125 0.025 272.935);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.025 272.935);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.462 0.216 268.709);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.559 0.197 19.837);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.748 0.228 141.326);
--accent-foreground: oklch(0.239 0.061 141.031);
--destructive: oklch(0.702 0.188 42.403);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.462 0.216 268.709);
--chart-1: oklch(0.462 0.216 268.709);
--chart-2: oklch(0.559 0.197 19.837);
--chart-3: oklch(0.748 0.228 141.326);
--chart-4: oklch(0.579 0.194 18.791);
--chart-5: oklch(0.46 0.224 268.139);
}