Subtle is a shadcn/ui theme built around a deep orange primary color (#4d230f) with muted light orange accents (#d6ccc7). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#4d230f) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070503black |
| Foreground | #150a04black | #fdfcfcsnow |
| Card | #ffffffwhite | #070503black |
| Card foreground | #150a04black | #fdfcfcsnow |
| Popover | #ffffffwhite | #070503black |
| Popover foreground | #150a04black | #fdfcfcsnow |
| Primary | #4d230fmaroon | #4d230fmaroon |
| Primary foreground | #edbaa1burlywood | #edbaa1burlywood |
| Secondary | #d6ccc7lightgrey | #1a1919black |
| Secondary foreground | #3e332edarkslategray | #b3b2b2darkgray |
| Muted | #e9d7cegainsboro | #311f16black |
| Muted foreground | #574942darkolivegreen | #bdafa8darkgray |
| Accent | #d6ccc7lightgrey | #1a1919black |
| Accent foreground | #3e332edarkslategray | #b3b2b2darkgray |
| Destructive | #640c07maroon | #e81c11red |
| Destructive foreground | #f8a9a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d230fmaroon | #4d230fmaroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.54:1 | AA |
Paste this into your globals.css to use Subtle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.159 0.024 52.215);
--muted: oklch(0.891 0.023 48.45);
--muted-foreground: oklch(0.417 0.023 48.154);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.159 0.024 52.215);
--card: oklch(1 0 180);
--card-foreground: oklch(0.159 0.024 52.215);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.312 0.07 45.316);
--primary-foreground: oklch(0.829 0.069 47.874);
--secondary: oklch(0.852 0.013 48.571);
--secondary-foreground: oklch(0.33 0.018 48.152);
--accent: oklch(0.852 0.013 48.571);
--accent-foreground: oklch(0.33 0.018 48.152);
--destructive: oklch(0.324 0.121 29.073);
--destructive-foreground: oklch(0.81 0.094 22.685);
--ring: oklch(0.312 0.07 45.316);
--chart-1: oklch(0.312 0.07 45.316);
--chart-2: oklch(0.852 0.013 48.571);
--chart-3: oklch(0.852 0.013 48.571);
--chart-4: oklch(0.876 0.011 48.604);
--chart-5: oklch(0.313 0.073 45.027);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.007 53.249);
--foreground: oklch(0.992 0.001 48.739);
--muted: oklch(0.26 0.032 47.446);
--muted-foreground: oklch(0.764 0.019 48.455);
--popover: oklch(0.115 0.007 53.249);
--popover-foreground: oklch(0.992 0.001 48.739);
--card: oklch(0.115 0.007 53.249);
--card-foreground: oklch(0.992 0.001 48.739);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.312 0.07 45.316);
--primary-foreground: oklch(0.829 0.069 47.874);
--secondary: oklch(0.216 0.001 48.715);
--secondary-foreground: oklch(0.765 0.001 48.729);
--accent: oklch(0.216 0.001 48.715);
--accent-foreground: oklch(0.765 0.001 48.729);
--destructive: oklch(0.594 0.232 29.414);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.312 0.07 45.316);
--chart-1: oklch(0.312 0.07 45.316);
--chart-2: oklch(0.216 0.001 48.715);
--chart-3: oklch(0.216 0.001 48.715);
--chart-4: oklch(0.248 0.001 48.712);
--chart-5: oklch(0.313 0.073 45.027);
}