Understated is a shadcn/ui theme built around a vivid deep teal primary color (#068447) with neutral gray accents (#d7dad9). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the vivid deep teal primary (#068447) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #010403black |
| Foreground | #03160dblack | #ffffffwhite |
| Card | #f3fcf7mintcream | #020805black |
| Card foreground | #03120ablack | #ffffffwhite |
| Popover | #f7fdfamintcream | #010403black |
| Popover foreground | #03160dblack | #ffffffwhite |
| Primary | #068447seagreen | #068447seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d7dad9gainsboro | #171717black |
| Secondary foreground | #3d4240darkslategray | #afb1b0darkgray |
| Muted | #e0f1e8lavender | #0e1f17black |
| Muted foreground | #4f635adimgray | #9cb0a6darkgray |
| Accent | #d7dad9gainsboro | #171717black |
| Accent foreground | #3d4240darkslategray | #afb1b0darkgray |
| Destructive | #b23a0afirebrick | #f14e0eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #068447seagreen | #068447seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.10:1 | AAA |
| Text on card | 18.31:1 | AAA |
| Primary button | 4.76:1 | AA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.46:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 5.98:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 4.76:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 3.59: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.007 165.823);
--foreground: oklch(0.181 0.032 161.517);
--muted: oklch(0.942 0.021 165.409);
--muted-foreground: oklch(0.481 0.028 164.339);
--popover: oklch(0.988 0.007 165.823);
--popover-foreground: oklch(0.181 0.032 161.517);
--card: oklch(0.983 0.011 165.723);
--card-foreground: oklch(0.163 0.028 163.302);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.539 0.136 153.503);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.886 0.004 165.901);
--secondary-foreground: oklch(0.375 0.008 165.439);
--accent: oklch(0.886 0.004 165.901);
--accent-foreground: oklch(0.375 0.008 165.439);
--destructive: oklch(0.519 0.164 37.979);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.539 0.136 153.503);
--chart-1: oklch(0.539 0.136 153.503);
--chart-2: oklch(0.886 0.004 165.901);
--chart-3: oklch(0.886 0.004 165.901);
--chart-4: oklch(0.909 0.003 165.927);
--chart-5: oklch(0.545 0.139 153.201);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.013 166.191);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.028 161.965);
--muted-foreground: oklch(0.738 0.026 165.054);
--popover: oklch(0.098 0.013 166.191);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.016 166.191);
--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.539 0.136 153.503);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.205 0.001 165.908);
--secondary-foreground: oklch(0.758 0.002 165.944);
--accent: oklch(0.205 0.001 165.908);
--accent-foreground: oklch(0.758 0.002 165.944);
--destructive: oklch(0.646 0.209 37.542);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.539 0.136 153.503);
--chart-1: oklch(0.539 0.136 153.503);
--chart-2: oklch(0.205 0.001 165.908);
--chart-3: oklch(0.205 0.001 165.908);
--chart-4: oklch(0.238 0.001 165.897);
--chart-5: oklch(0.545 0.139 153.201);
}