Horrible Purple Protest is a shadcn/ui theme built around a violet primary color (#8921de) with green accents (#76de21). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the violet primary (#8921de) on a violet-tinted background (#0b0510).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #0b0510black |
| Foreground | #030104black | #faf8fcghostwhite |
| Card | #faf8fcghostwhite | #0d0613black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfbfdsnow | #0b0510black |
| Popover foreground | #030104black | #faf8fcghostwhite |
| Primary | #8921deblueviolet | #8921deblueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #76de21yellowgreen | #76de21yellowgreen |
| Secondary foreground | #182c07black | #182c07black |
| Muted | #dde8d4gainsboro | #202b17black |
| Muted foreground | #505d46darkolivegreen | #acb9a2darkgray |
| Accent | #76de21yellowgreen | #76de21yellowgreen |
| Accent foreground | #182c07black | #182c07black |
| Destructive | #9e2a10brown | #e94520orangered |
| Destructive foreground | #fce8e3mistyrose | #ffffffwhite |
| Border | #f0eef2whitesmoke | #1a161dblack |
| Input | #f0eef2whitesmoke | #1a161dblack |
| Ring | #8921deblueviolet | #8921deblueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 8.71:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 8.71:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 8.71:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Horrible Purple Protest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 310.41);
--foreground: oklch(0.078 0.024 312.818);
--muted: oklch(0.917 0.029 130.739);
--muted-foreground: oklch(0.461 0.039 131.28);
--popover: oklch(0.991 0.003 310.41);
--popover-foreground: oklch(0.078 0.024 312.818);
--card: oklch(0.982 0.006 310.382);
--card-foreground: oklch(0 0 0);
--border: oklch(0.951 0.005 310.386);
--input: oklch(0.951 0.005 310.386);
--primary: oklch(0.522 0.254 302.469);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.806 0.228 135.483);
--secondary-foreground: oklch(0.267 0.066 133.823);
--accent: oklch(0.806 0.228 135.483);
--accent-foreground: oklch(0.267 0.066 133.823);
--destructive: oklch(0.465 0.156 33.629);
--destructive-foreground: oklch(0.945 0.023 32.682);
--ring: oklch(0.522 0.254 302.469);
--chart-1: oklch(0.522 0.254 302.469);
--chart-2: oklch(0.806 0.228 135.483);
--chart-3: oklch(0.806 0.228 135.483);
--chart-4: oklch(0.815 0.221 134.891);
--chart-5: oklch(0.524 0.259 301.965);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.027 310.326);
--foreground: oklch(0.982 0.005 310.386);
--muted: oklch(0.273 0.038 131.923);
--muted-foreground: oklch(0.769 0.035 130.871);
--popover: oklch(0.131 0.027 310.326);
--popover-foreground: oklch(0.982 0.005 310.386);
--card: oklch(0.143 0.031 309.125);
--card-foreground: oklch(0.991 0.003 310.412);
--border: oklch(0.209 0.013 309.863);
--input: oklch(0.209 0.013 309.863);
--primary: oklch(0.522 0.254 302.469);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.806 0.228 135.483);
--secondary-foreground: oklch(0.267 0.066 133.823);
--accent: oklch(0.806 0.228 135.483);
--accent-foreground: oklch(0.267 0.066 133.823);
--destructive: oklch(0.624 0.206 33.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.254 302.469);
--chart-1: oklch(0.522 0.254 302.469);
--chart-2: oklch(0.806 0.228 135.483);
--chart-3: oklch(0.806 0.228 135.483);
--chart-4: oklch(0.815 0.221 134.891);
--chart-5: oklch(0.524 0.259 301.965);
}