Understated is a shadcn/ui theme built around an indigo primary color (#20269d) with yellow accents (#9d9620). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#20269d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #20269dmidnightblue | #20269dmidnightblue |
| Primary foreground | #f2f3fcaliceblue | #f2f3fcaliceblue |
| Secondary | #9d9620darkgoldenrod | #9d9620darkgoldenrod |
| Secondary foreground | #000000black | #000000black |
| Muted | #e0dfdcgainsboro | #23231fblack |
| Muted foreground | #6d6c5fdimgray | #a09f92darkgray |
| Accent | #9d9620darkgoldenrod | #9d9620darkgoldenrod |
| Accent foreground | #000000black | #000000black |
| Destructive | #8a240fsaddlebrown | #dc3918orangered |
| Destructive foreground | #fad8d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #20269dmidnightblue | #20269dmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 10.39:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 3.98:1 | AA Large |
| Accent | 6.83:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 10.39:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 5.92:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 4.51:1 | AA |
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 0 0);
--muted: oklch(0.904 0.004 104.052);
--muted-foreground: oklch(0.529 0.021 104.617);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.363 0.185 270.432);
--primary-foreground: oklch(0.966 0.013 283.74);
--secondary: oklch(0.659 0.131 106.311);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.659 0.131 106.311);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.421 0.141 33.035);
--destructive-foreground: oklch(0.908 0.039 31.187);
--ring: oklch(0.363 0.185 270.432);
--chart-1: oklch(0.363 0.185 270.432);
--chart-2: oklch(0.659 0.131 106.311);
--chart-3: oklch(0.659 0.131 106.311);
--chart-4: oklch(0.698 0.139 106.307);
--chart-5: oklch(0.361 0.192 269.657);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 283.94);
--muted: oklch(0.254 0.006 104.356);
--muted-foreground: oklch(0.701 0.019 104.434);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 283.94);
--card: oklch(0.092 0 180);
--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.363 0.185 270.432);
--primary-foreground: oklch(0.966 0.013 283.74);
--secondary: oklch(0.659 0.131 106.311);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.659 0.131 106.311);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.591 0.204 32.853);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.363 0.185 270.432);
--chart-1: oklch(0.363 0.185 270.432);
--chart-2: oklch(0.659 0.131 106.311);
--chart-3: oklch(0.659 0.131 106.311);
--chart-4: oklch(0.698 0.139 106.307);
--chart-5: oklch(0.361 0.192 269.657);
}