Understated is a shadcn/ui theme built around a vivid deep teal primary color (#001913) with vivid deep cyan accents (#001319). The light mode uses a neutral background (#f7fcfb). Dark mode keeps the vivid deep teal primary (#001913) on a neutral background (#020806).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfbmintcream | #020806black |
| Foreground | #031711black | #f8fcfbmintcream |
| Card | #f7fcfbmintcream | #020806black |
| Card foreground | #031711black | #f8fcfbmintcream |
| Popover | #f7fcfbmintcream | #020806black |
| Popover foreground | #031711black | #f8fcfbmintcream |
| Primary | #001913black | #001913black |
| Primary foreground | #03e2a7mediumspringgreen | #03e2a7mediumspringgreen |
| Secondary | #001906black | #001906black |
| Secondary foreground | #03e237limegreen | #03e237limegreen |
| Muted | #e2eee5gainsboro | #111d14black |
| Muted foreground | #535554dimgray | #aaacaadarkgray |
| Accent | #001319black | #001319black |
| Accent foreground | #03aee2deepskyblue | #03aee2deepskyblue |
| Destructive | #89240bsaddlebrown | #ec3e13orangered |
| Destructive foreground | #fbd5cbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #001913black | #001913black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.92:1 | AAA |
| Text on card | 17.92:1 | AAA |
| Primary button | 10.82:1 | AAA |
| Secondary button | 10.44:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 10.82:1 | AAA |
| Secondary button | 10.44:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Understated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 178.625);
--foreground: oklch(0.183 0.03 174.105);
--muted: oklch(0.938 0.018 152.92);
--muted-foreground: oklch(0.448 0.003 153.132);
--popover: oklch(0.988 0.005 178.625);
--popover-foreground: oklch(0.183 0.03 174.105);
--card: oklch(0.988 0.005 178.625);
--card-foreground: oklch(0.183 0.03 174.105);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.191 0.036 173.252);
--primary-foreground: oklch(0.809 0.168 165.661);
--secondary: oklch(0.187 0.051 149.703);
--secondary-foreground: oklch(0.793 0.254 144.349);
--accent: oklch(0.174 0.031 218.013);
--accent-foreground: oklch(0.702 0.137 228.511);
--destructive: oklch(0.42 0.14 34.329);
--destructive-foreground: oklch(0.902 0.045 34.334);
--ring: oklch(0.191 0.036 173.252);
--chart-1: oklch(0.191 0.036 173.252);
--chart-2: oklch(0.187 0.051 149.703);
--chart-3: oklch(0.174 0.031 218.013);
--chart-4: oklch(0.242 0.07 147.644);
--chart-5: oklch(0.192 0.037 173.128);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 178.878);
--foreground: oklch(0.987 0.004 178.664);
--muted: oklch(0.216 0.026 151.099);
--muted-foreground: oklch(0.742 0.003 153.183);
--popover: oklch(0.124 0.014 178.878);
--popover-foreground: oklch(0.987 0.004 178.664);
--card: oklch(0.124 0.014 178.878);
--card-foreground: oklch(0.987 0.004 178.664);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.191 0.036 173.252);
--primary-foreground: oklch(0.809 0.168 165.661);
--secondary: oklch(0.187 0.051 149.703);
--secondary-foreground: oklch(0.793 0.254 144.349);
--accent: oklch(0.174 0.031 218.013);
--accent-foreground: oklch(0.702 0.137 228.511);
--destructive: oklch(0.622 0.215 33.89);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.191 0.036 173.252);
--chart-1: oklch(0.191 0.036 173.252);
--chart-2: oklch(0.187 0.051 149.703);
--chart-3: oklch(0.174 0.031 218.013);
--chart-4: oklch(0.242 0.07 147.644);
--chart-5: oklch(0.192 0.037 173.128);
}