Wrong Lilac Spring is a shadcn/ui theme built around a vivid violet primary color (#8c14cc) with vivid teal accents (#14cc8c). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid violet primary (#8c14cc) on a violet-tinted background (#09040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #09040cblack |
| Foreground | #030105black | #fdfcfdwhite |
| Card | #fdfbfewhite | #09040cblack |
| Card foreground | #030105black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #09040cblack |
| Popover foreground | #030105black | #fdfcfdwhite |
| Primary | #8c14ccdarkviolet | #8c14ccdarkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cc8c14darkgoldenrod | #cc8c14darkgoldenrod |
| Secondary foreground | #130d02black | #130d02black |
| Muted | #e6ddccgainsboro | #332a19darkslategray |
| Muted foreground | #615f5cdimgray | #a3a19edarkgray |
| Accent | #14cc8clightseagreen | #14cc8clightseagreen |
| Accent foreground | #02130dblack | #02130dblack |
| Destructive | #c81309firebrick | #f53329crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eeeceewhitesmoke | #272429darkslategray |
| Input | #eeeceewhitesmoke | #272429darkslategray |
| Ring | #8c14ccdarkviolet | #8c14ccdarkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 6.74:1 | AA |
| Muted text | 4.70:1 | AA |
| Accent | 9.13:1 | AAA |
| Destructive | 5.92:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 6.74:1 | AA |
| Muted text | 5.47:1 | AA |
| Accent | 9.13:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Wrong Lilac Spring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 314.2);
--foreground: oklch(0.079 0.026 317.003);
--muted: oklch(0.899 0.025 83.057);
--muted-foreground: oklch(0.487 0.006 83.065);
--popover: oklch(0.991 0.004 314.2);
--popover-foreground: oklch(0.079 0.026 317.003);
--card: oklch(0.991 0.004 314.2);
--card-foreground: oklch(0.079 0.026 317.003);
--border: oklch(0.945 0.004 314.198);
--input: oklch(0.945 0.004 314.198);
--primary: oklch(0.504 0.247 308.176);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.687 0.14 75.089);
--secondary-foreground: oklch(0.161 0.027 87.15);
--accent: oklch(0.749 0.163 161.352);
--accent-foreground: oklch(0.166 0.029 170.129);
--destructive: oklch(0.528 0.209 29.474);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.504 0.247 308.176);
--chart-1: oklch(0.504 0.247 308.176);
--chart-2: oklch(0.687 0.14 75.089);
--chart-3: oklch(0.749 0.163 161.352);
--chart-4: oklch(0.721 0.148 74.971);
--chart-5: oklch(0.507 0.251 307.811);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.025 315.803);
--foreground: oklch(0.992 0.002 314.21);
--muted: oklch(0.291 0.031 82.381);
--muted-foreground: oklch(0.711 0.006 83.062);
--popover: oklch(0.12 0.025 315.803);
--popover-foreground: oklch(0.992 0.002 314.21);
--card: oklch(0.12 0.025 315.803);
--card-foreground: oklch(0.992 0.002 314.21);
--border: oklch(0.265 0.011 313.991);
--input: oklch(0.265 0.011 313.991);
--primary: oklch(0.504 0.247 308.176);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.687 0.14 75.089);
--secondary-foreground: oklch(0.161 0.027 87.15);
--accent: oklch(0.749 0.163 161.352);
--accent-foreground: oklch(0.166 0.029 170.129);
--destructive: oklch(0.63 0.229 28.78);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.504 0.247 308.176);
--chart-1: oklch(0.504 0.247 308.176);
--chart-2: oklch(0.687 0.14 75.089);
--chart-3: oklch(0.749 0.163 161.352);
--chart-4: oklch(0.721 0.148 74.971);
--chart-5: oklch(0.507 0.251 307.811);
}