Supportive is a shadcn/ui theme built around a near-black primary color (#040604) with neutral gray accents (#b9c1b8). The light mode uses a neutral background (#fbfefb). Dark mode keeps the near-black primary (#040604) on a green-tinted background (#061005).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #061005black |
| Foreground | #051004black | #fcfdfcwhite |
| Card | #fbfefbwhite | #061005black |
| Card foreground | #051004black | #fcfdfcwhite |
| Popover | #fbfefbwhite | #061005black |
| Popover foreground | #051004black | #fcfdfcwhite |
| Primary | #040604black | #040604black |
| Primary foreground | #88b785darkseagreen | #88b785darkseagreen |
| Secondary | #d3d5d3lightgrey | #171c17black |
| Secondary foreground | #3a3c39darkslategray | #abbbaadarkgray |
| Muted | #dde4dcgainsboro | #1b231bblack |
| Muted foreground | #4e604ddarkolivegreen | #a0b29fdarkgray |
| Accent | #b9c1b8silver | #263725darkslategray |
| Accent foreground | #222621black | #bed2bcsilver |
| Destructive | #991b0bdarkred | #ef371forangered |
| Destructive foreground | #fcddd9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040604black | #040604black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 8.55:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Supportive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.006 143.605);
--foreground: oklch(0.158 0.033 141.917);
--muted: oklch(0.912 0.013 143.559);
--muted-foreground: oklch(0.469 0.037 143.207);
--popover: oklch(0.994 0.006 143.605);
--popover-foreground: oklch(0.158 0.033 141.917);
--card: oklch(0.994 0.006 143.605);
--card-foreground: oklch(0.158 0.033 141.917);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.119 0.011 142.852);
--primary-foreground: oklch(0.733 0.087 142.988);
--secondary: oklch(0.87 0.003 143.618);
--secondary-foreground: oklch(0.353 0.005 143.561);
--accent: oklch(0.803 0.016 143.53);
--accent-foreground: oklch(0.263 0.011 143.405);
--destructive: oklch(0.442 0.163 31.002);
--destructive-foreground: oklch(0.922 0.035 26.741);
--ring: oklch(0.119 0.011 142.852);
--chart-1: oklch(0.119 0.011 142.852);
--chart-2: oklch(0.87 0.003 143.618);
--chart-3: oklch(0.803 0.016 143.53);
--chart-4: oklch(0.893 0.002 143.621);
--chart-5: oklch(0.119 0.012 142.761);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.029 142.122);
--foreground: oklch(0.993 0.002 143.626);
--muted: oklch(0.244 0.018 143.231);
--muted-foreground: oklch(0.744 0.033 143.396);
--popover: oklch(0.156 0.029 142.122);
--popover-foreground: oklch(0.993 0.002 143.626);
--card: oklch(0.156 0.029 142.122);
--card-foreground: oklch(0.993 0.002 143.626);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.119 0.011 142.852);
--primary-foreground: oklch(0.733 0.087 142.988);
--secondary: oklch(0.22 0.013 143.312);
--secondary-foreground: oklch(0.775 0.029 143.435);
--accent: oklch(0.315 0.037 142.992);
--accent-foreground: oklch(0.841 0.036 143.406);
--destructive: oklch(0.623 0.223 31.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.119 0.011 142.852);
--chart-1: oklch(0.119 0.011 142.852);
--chart-2: oklch(0.22 0.013 143.312);
--chart-3: oklch(0.315 0.037 142.992);
--chart-4: oklch(0.254 0.017 143.284);
--chart-5: oklch(0.119 0.012 142.761);
}