Subsidy is a shadcn/ui theme built around a vivid purple primary color (#c40dd9) with muted light purple accents (#ece3ed). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid purple primary (#c40dd9) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #040104black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fdfbfewhite | #040104black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #040104black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #c40dd9darkviolet | #c40dd9darkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ece3edlavender | #2b212cdarkslategray |
| Secondary foreground | #5c3f5fdimgray | #c6b6c8silver |
| Muted | #f5eef6whitesmoke | #100911black |
| Muted foreground | #645d65dimgray | #a19aa2darkgray |
| Accent | #ece3edlavender | #2b212cdarkslategray |
| Accent foreground | #5c3f5fdimgray | #c6b6c8silver |
| Destructive | #d44108orangered | #f64c09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c40dd9darkviolet | #c40dd9darkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 4.75:1 | AA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 5.61:1 | AA |
| Accent | 7.21:1 | AAA |
| Destructive | 4.60:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 4.75:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Subsidy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 322.641);
--foreground: oklch(0 0 0);
--muted: oklch(0.958 0.013 322.681);
--muted-foreground: oklch(0.488 0.015 322.749);
--popover: oklch(0.991 0.004 322.641);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.004 322.641);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.592 0.275 322.976);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.926 0.015 322.692);
--secondary-foreground: oklch(0.413 0.063 323.185);
--accent: oklch(0.926 0.015 322.692);
--accent-foreground: oklch(0.413 0.063 323.185);
--destructive: oklch(0.584 0.191 37.178);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.592 0.275 322.976);
--chart-1: oklch(0.592 0.275 322.976);
--chart-2: oklch(0.926 0.015 322.692);
--chart-3: oklch(0.926 0.015 322.692);
--chart-4: oklch(0.951 0.01 322.669);
--chart-5: oklch(0.598 0.279 322.898);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.021 324.505);
--foreground: oklch(0.992 0.002 322.636);
--muted: oklch(0.153 0.02 323.143);
--muted-foreground: oklch(0.695 0.014 322.706);
--popover: oklch(0.085 0.021 324.505);
--popover-foreground: oklch(0.992 0.002 322.636);
--card: oklch(0.085 0.021 324.505);
--card-foreground: oklch(0.992 0.002 322.636);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.592 0.275 322.976);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.263 0.024 322.978);
--secondary-foreground: oklch(0.796 0.031 322.779);
--accent: oklch(0.263 0.024 322.978);
--accent-foreground: oklch(0.796 0.031 322.779);
--destructive: oklch(0.652 0.215 36.944);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.592 0.275 322.976);
--chart-1: oklch(0.592 0.275 322.976);
--chart-2: oklch(0.263 0.024 322.978);
--chart-3: oklch(0.263 0.024 322.978);
--chart-4: oklch(0.293 0.028 322.994);
--chart-5: oklch(0.598 0.279 322.898);
}