Subtle is a shadcn/ui theme built around a deep orange primary color (#4d2c1f) with deep yellow accents (#4d431f). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep orange primary (#4d2c1f) on an orange-tinted background (#100805).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #100805black |
| Foreground | #040201black | #fcf9f8snow |
| Card | #fefcfbsnow | #100805black |
| Card foreground | #040201black | #fcf9f8snow |
| Popover | #fefcfbsnow | #100805black |
| Popover foreground | #040201black | #fcf9f8snow |
| Primary | #4d2c1fdarkolivegreen | #4d2c1fdarkolivegreen |
| Primary foreground | #e3c6bawheat | #e3c6bawheat |
| Secondary | #4d1f29darkslategray | #4d1f29darkslategray |
| Secondary foreground | #e3bac3thistle | #e3bac3thistle |
| Muted | #e9d8dcgainsboro | #27161ablack |
| Muted foreground | #615c5ddimgray | #a39e9fdarkgray |
| Accent | #4d431fdarkolivegreen | #4d431fdarkolivegreen |
| Accent foreground | #e3dabawheat | #e3dabawheat |
| Destructive | #701c00maroon | #ff571forangered |
| Destructive foreground | #ffbaa3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d2c1fdarkolivegreen | #4d2c1fdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 4.79:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 6.52:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.62:1 | AA |
Paste this into your globals.css to use Subtle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 43.113);
--foreground: oklch(0.089 0.013 52.951);
--muted: oklch(0.897 0.019 2.638);
--muted-foreground: oklch(0.479 0.008 2.496);
--popover: oklch(0.992 0.002 43.113);
--popover-foreground: oklch(0.089 0.013 52.951);
--card: oklch(0.992 0.002 43.113);
--card-foreground: oklch(0.089 0.013 52.951);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.33 0.054 42.159);
--primary-foreground: oklch(0.847 0.038 42.793);
--secondary: oklch(0.308 0.07 8.608);
--secondary-foreground: oklch(0.827 0.049 3.663);
--accent: oklch(0.383 0.055 94.192);
--accent-foreground: oklch(0.888 0.044 94.32);
--destructive: oklch(0.364 0.123 36.703);
--destructive-foreground: oklch(0.847 0.086 39.215);
--ring: oklch(0.33 0.054 42.159);
--chart-1: oklch(0.33 0.054 42.159);
--chart-2: oklch(0.308 0.07 8.608);
--chart-3: oklch(0.383 0.055 94.192);
--chart-4: oklch(0.335 0.079 8.816);
--chart-5: oklch(0.331 0.058 42.071);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.017 48.195);
--foreground: oklch(0.984 0.003 43.104);
--muted: oklch(0.225 0.027 5.333);
--muted-foreground: oklch(0.704 0.007 2.332);
--popover: oklch(0.144 0.017 48.195);
--popover-foreground: oklch(0.984 0.003 43.104);
--card: oklch(0.144 0.017 48.195);
--card-foreground: oklch(0.984 0.003 43.104);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.33 0.054 42.159);
--primary-foreground: oklch(0.847 0.038 42.793);
--secondary: oklch(0.308 0.07 8.608);
--secondary-foreground: oklch(0.827 0.049 3.663);
--accent: oklch(0.383 0.055 94.192);
--accent-foreground: oklch(0.888 0.044 94.32);
--destructive: oklch(0.679 0.213 36.896);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.33 0.054 42.159);
--chart-1: oklch(0.33 0.054 42.159);
--chart-2: oklch(0.308 0.07 8.608);
--chart-3: oklch(0.383 0.055 94.192);
--chart-4: oklch(0.335 0.079 8.816);
--chart-5: oklch(0.331 0.058 42.071);
}