Supportive is a shadcn/ui theme built around a violet primary color (#5f1e7b) with purple accents (#7b1e68). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#5f1e7b) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030104black |
| Foreground | #09030cblack | #faf8fbghostwhite |
| Card | #fbf7fcghostwhite | #060208black |
| Card foreground | #060208black | #fdfcfdwhite |
| Popover | #fbf7fcghostwhite | #060208black |
| Popover foreground | #060208black | #fdfcfdwhite |
| Primary | #5f1e7bindigo | #5f1e7bindigo |
| Primary foreground | #ecd6f5lavender | #ecd6f5lavender |
| Secondary | #311e7bmidnightblue | #311e7bmidnightblue |
| Secondary foreground | #dcd6f5lavender | #dcd6f5lavender |
| Muted | #e8e6eflavender | #121019black |
| Muted foreground | #57526bdimgray | #9994addarkgray |
| Accent | #7b1e68purple | #7b1e68purple |
| Accent foreground | #f5d6efmistyrose | #f5d6efmistyrose |
| Destructive | #a72a01firebrick | #fe632ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5f1e7bindigo | #5f1e7bindigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 9.36:1 | AAA |
| Muted text | 6.02:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 19.67:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 9.36:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 7.02:1 | AAA |
Paste this into your globals.css to use Supportive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 316.008);
--foreground: oklch(0.12 0.027 317.682);
--muted: oklch(0.93 0.012 295.348);
--muted-foreground: oklch(0.453 0.04 293.914);
--popover: oklch(0.981 0.007 315.995);
--popover-foreground: oklch(0.105 0.024 317.991);
--card: oklch(0.981 0.007 315.995);
--card-foreground: oklch(0.105 0.024 317.991);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.383 0.154 313.507);
--primary-foreground: oklch(0.903 0.048 315.833);
--secondary: oklch(0.326 0.148 283.751);
--secondary-foreground: oklch(0.89 0.043 294.686);
--accent: oklch(0.415 0.152 337.318);
--accent-foreground: oklch(0.909 0.047 332.759);
--destructive: oklch(0.482 0.167 35.426);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.383 0.154 313.507);
--chart-1: oklch(0.383 0.154 313.507);
--chart-2: oklch(0.326 0.148 283.751);
--chart-3: oklch(0.415 0.152 337.318);
--chart-4: oklch(0.347 0.159 283.496);
--chart-5: oklch(0.384 0.159 313.293);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.018 317.876);
--foreground: oklch(0.983 0.004 316.005);
--muted: oklch(0.18 0.018 293.726);
--muted-foreground: oklch(0.68 0.036 294.591);
--popover: oklch(0.105 0.022 317.876);
--popover-foreground: oklch(0.991 0.002 316.014);
--card: oklch(0.105 0.022 317.876);
--card-foreground: oklch(0.991 0.002 316.014);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.383 0.154 313.507);
--primary-foreground: oklch(0.903 0.048 315.833);
--secondary: oklch(0.326 0.148 283.751);
--secondary-foreground: oklch(0.89 0.043 294.686);
--accent: oklch(0.415 0.152 337.318);
--accent-foreground: oklch(0.909 0.047 332.759);
--destructive: oklch(0.692 0.2 37.813);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.383 0.154 313.507);
--chart-1: oklch(0.383 0.154 313.507);
--chart-2: oklch(0.326 0.148 283.751);
--chart-3: oklch(0.415 0.152 337.318);
--chart-4: oklch(0.347 0.159 283.496);
--chart-5: oklch(0.384 0.159 313.293);
}