voilet is a shadcn/ui theme built around a vivid purple primary color (#a602ac) with muted light red accents (#ccc2c2). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the vivid purple primary (#a602ac) on a neutral background (#070308).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fdsnow | #070308black |
| Foreground | #0f0510black | #fdfcfdwhite |
| Card | #fbf3fcghostwhite | #0b040bblack |
| Card foreground | #0b040cblack | #ffffffwhite |
| Popover | #fdf7fdsnow | #070308black |
| Popover foreground | #0f0510black | #fdfcfdwhite |
| Primary | #a602acdarkmagenta | #a602acdarkmagenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dededegainsboro | #2b272bdarkslategray |
| Secondary foreground | #454545darkslategray | #c5bfc5silver |
| Muted | #ede8e8linen | #171217black |
| Muted foreground | #6d5a5adimgray | #a592a5darkgray |
| Accent | #ccc2c2silver | #473748darkslategray |
| Accent foreground | #322a2adarkslategray | #ddd4degainsboro |
| Destructive | #6e260csaddlebrown | #d34a17chocolate |
| Destructive foreground | #f7c7b6peachpuff | #ffffffwhite |
| Border | #ebe5eblavender | #1f191fblack |
| Input | #ebe5eblavender | #1f191fblack |
| Ring | #a602acdarkmagenta | #a602acdarkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.95:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 7.06:1 | AAA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 7.57:1 | AAA |
| Destructive | 4.41:1 | AA Large |
Paste this into your globals.css to use voilet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 324.679);
--foreground: oklch(0.139 0.031 325.99);
--muted: oklch(0.935 0.005 17.252);
--muted-foreground: oklch(0.486 0.026 18.09);
--popover: oklch(0.982 0.009 324.679);
--popover-foreground: oklch(0.139 0.031 325.99);
--card: oklch(0.973 0.014 324.71);
--card-foreground: oklch(0.125 0.027 326.067);
--border: oklch(0.929 0.009 324.682);
--input: oklch(0.929 0.009 324.682);
--primary: oklch(0.513 0.237 326.575);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.9 0 188.746);
--secondary-foreground: oklch(0.39 0 165.964);
--accent: oklch(0.822 0.011 17.388);
--accent-foreground: oklch(0.293 0.012 17.872);
--destructive: oklch(0.374 0.108 38.662);
--destructive-foreground: oklch(0.867 0.06 40.937);
--ring: oklch(0.513 0.237 326.575);
--chart-1: oklch(0.513 0.237 326.575);
--chart-2: oklch(0.9 0 188.746);
--chart-3: oklch(0.822 0.011 17.388);
--chart-4: oklch(0.923 0 153.435);
--chart-5: oklch(0.518 0.241 326.562);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.022 326.043);
--foreground: oklch(0.992 0.002 324.633);
--muted: oklch(0.19 0.012 325.019);
--muted-foreground: oklch(0.682 0.036 324.95);
--popover: oklch(0.109 0.022 326.043);
--popover-foreground: oklch(0.992 0.002 324.633);
--card: oklch(0.125 0.025 325.987);
--card-foreground: oklch(1 0 180);
--border: oklch(0.223 0.016 325.068);
--input: oklch(0.223 0.016 325.068);
--primary: oklch(0.513 0.237 326.575);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.278 0.009 324.83);
--secondary-foreground: oklch(0.81 0.011 324.702);
--accent: oklch(0.362 0.035 325.211);
--accent-foreground: oklch(0.88 0.017 324.741);
--destructive: oklch(0.592 0.182 37.875);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.513 0.237 326.575);
--chart-1: oklch(0.513 0.237 326.575);
--chart-2: oklch(0.278 0.009 324.83);
--chart-3: oklch(0.362 0.035 325.211);
--chart-4: oklch(0.308 0.011 324.838);
--chart-5: oklch(0.518 0.241 326.562);
}