Wrong Lilac Spring for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button6.80:1AA
Secondary button6.74:1AA
Muted text4.70:1AA
Accent9.13:1AAA
Destructive5.92:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button6.80:1AA
Secondary button6.74:1AA
Muted text5.47:1AA
Accent9.13:1AAA
Destructive3.90:1AA Large

CSS variables

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);
}