Violet Raccoon is a shadcn/ui theme built around a vivid violet primary color (#9500e6) with neutral gray accents (#e1dfe2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#9500e6) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060307black |
| Foreground | #0c0410black | #ffffffwhite |
| Card | #ffffffwhite | #060307black |
| Card foreground | #0c0410black | #ffffffwhite |
| Popover | #ffffffwhite | #060307black |
| Popover foreground | #0c0410black | #ffffffwhite |
| Primary | #9500e6darkviolet | #9500e6darkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e1dfe2gainsboro | #221f23black |
| Secondary foreground | #48454adarkslategray | #bbb6besilver |
| Muted | #dfdbe1gainsboro | #221e24black |
| Muted foreground | #413a45darkslategray | #c1bac5silver |
| Accent | #e1dfe2gainsboro | #221f23black |
| Accent foreground | #48454adarkslategray | #bbb6besilver |
| Destructive | #7c2a03saddlebrown | #f45106orangered |
| Destructive foreground | #fdcbb4peachpuff | #ffffffwhite |
| Border | #e6e4e7gainsboro | #262328darkslategray |
| Input | #e6e4e7gainsboro | #262328darkslategray |
| Ring | #9500e6darkviolet | #9500e6darkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 8.66:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Violet Raccoon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.033 314.494);
--muted: oklch(0.896 0.009 314.164);
--muted-foreground: oklch(0.361 0.022 313.887);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.033 314.494);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.033 314.494);
--border: oklch(0.921 0.005 314.187);
--input: oklch(0.921 0.005 314.187);
--primary: oklch(0.532 0.275 305.927);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.906 0.004 314.197);
--secondary-foreground: oklch(0.394 0.011 314.071);
--accent: oklch(0.906 0.004 314.197);
--accent-foreground: oklch(0.394 0.011 314.071);
--destructive: oklch(0.403 0.123 40.324);
--destructive-foreground: oklch(0.881 0.065 46.163);
--ring: oklch(0.532 0.275 305.927);
--chart-1: oklch(0.532 0.275 305.927);
--chart-2: oklch(0.906 0.004 314.197);
--chart-3: oklch(0.906 0.004 314.197);
--chart-4: oklch(0.93 0.003 314.203);
--chart-5: oklch(0.536 0.279 305.574);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.017 315.639);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.013 313.936);
--muted-foreground: oklch(0.797 0.018 314.096);
--popover: oklch(0.107 0.017 315.639);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.017 315.639);
--card-foreground: oklch(1 0 180);
--border: oklch(0.262 0.01 312.07);
--input: oklch(0.262 0.011 313.981);
--primary: oklch(0.532 0.275 305.927);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.244 0.008 314.032);
--secondary-foreground: oklch(0.783 0.013 314.128);
--accent: oklch(0.244 0.008 314.032);
--accent-foreground: oklch(0.783 0.013 314.128);
--destructive: oklch(0.654 0.209 38.586);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.532 0.275 305.927);
--chart-1: oklch(0.532 0.275 305.927);
--chart-2: oklch(0.244 0.008 314.032);
--chart-3: oklch(0.244 0.008 314.032);
--chart-4: oklch(0.275 0.01 314.021);
--chart-5: oklch(0.536 0.279 305.574);
}