Subtle is a shadcn/ui theme built around a neutral gray primary color (#bebfc6) with neutral gray accents (#c1bec6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#bebfc6) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010104black |
| Foreground | #04050cblack | #fcfcfdwhite |
| Card | #ffffffwhite | #010104black |
| Card foreground | #04050cblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #010104black |
| Popover foreground | #04050cblack | #fcfcfdwhite |
| Primary | #bebfc6silver | #bebfc6silver |
| Primary foreground | #26272cdarkslategray | #26272cdarkslategray |
| Secondary | #bec3c6silver | #bec3c6silver |
| Secondary foreground | #26292cdarkslategray | #26292cdarkslategray |
| Muted | #dee7edlavender | #121b21black |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #c1bec6silver | #c1bec6silver |
| Accent foreground | #28262cdarkslategray | #28262cdarkslategray |
| Destructive | #6d1b09maroon | #ee4e2btomato |
| Destructive foreground | #f8bcaflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bebfc6silver | #bebfc6silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 9.46:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.64:1 | AA Large |
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.116 0.019 274.993);
--muted: oklch(0.923 0.012 234.702);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.019 274.993);
--card: oklch(1 0 180);
--card-foreground: oklch(0.116 0.019 274.993);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.805 0.011 280.122);
--primary-foreground: oklch(0.273 0.009 279.774);
--secondary: oklch(0.813 0.007 234.638);
--secondary-foreground: oklch(0.28 0.006 234.847);
--accent: oklch(0.805 0.012 303.411);
--accent-foreground: oklch(0.273 0.011 303.052);
--destructive: oklch(0.356 0.118 33.757);
--destructive-foreground: oklch(0.847 0.073 32.94);
--ring: oklch(0.805 0.011 280.122);
--chart-1: oklch(0.805 0.011 280.122);
--chart-2: oklch(0.813 0.007 234.638);
--chart-3: oklch(0.805 0.012 303.411);
--chart-4: oklch(0.837 0.006 234.617);
--chart-5: oklch(0.801 0.015 280.028);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.078 0.015 273.672);
--foreground: oklch(0.991 0.001 280.311);
--muted: oklch(0.217 0.017 235.912);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.078 0.015 273.672);
--popover-foreground: oklch(0.991 0.001 280.311);
--card: oklch(0.078 0.015 273.672);
--card-foreground: oklch(0.991 0.001 280.311);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.805 0.011 280.122);
--primary-foreground: oklch(0.273 0.009 279.774);
--secondary: oklch(0.813 0.007 234.638);
--secondary-foreground: oklch(0.28 0.006 234.847);
--accent: oklch(0.805 0.012 303.411);
--accent-foreground: oklch(0.273 0.011 303.052);
--destructive: oklch(0.643 0.202 33.984);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.805 0.011 280.122);
--chart-1: oklch(0.805 0.011 280.122);
--chart-2: oklch(0.813 0.007 234.638);
--chart-3: oklch(0.805 0.012 303.411);
--chart-4: oklch(0.837 0.006 234.617);
--chart-5: oklch(0.801 0.015 280.028);
}