Lilac Spring Amphibian for shadcn/ui

Lilac Spring Amphibian is a shadcn/ui theme built around a violet primary color (#8e26c9) with teal accents (#26c98e). The light mode uses a neutral background (#fbf6fd). Dark mode keeps the violet primary (#8e26c9) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fbf6fdghostwhite
#030104black
Foreground
#060208black
#faf9fbghostwhite
Card
#f9f2fdghostwhite
#060307black
Card foreground
#030104black
#fdfcfdwhite
Popover
#f9f2fdghostwhite
#060307black
Popover foreground
#030104black
#fdfcfdwhite
Primary
#8e26c9darkorchid
#8e26c9darkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c98e26peru
#c98e26peru
Secondary foreground
#1e1506black
#1e1506black
Muted
#e6e4e0gainsboro
#1f1d19black
Muted foreground
#43413ddarkslategray
#c2c0bcsilver
Accent
#26c98elightseagreen
#26c98elightseagreen
Accent foreground
#061e15black
#061e15black
Destructive
#621609maroon
#ea3d1forangered
Destructive foreground
#f7b2a6lightpink
#ffffffwhite
Border
#e6e5e6gainsboro
#1f1e1fblack
Input
#e6e5e6gainsboro
#1f1e1fblack
Ring
#8e26c9darkorchid
#8e26c9darkorchid

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card18.96:1AAA
Primary button6.41:1AA
Secondary button6.32:1AA
Muted text8.00:1AAA
Accent8.18:1AAA
Destructive7.23:1AAA
Dark mode
Text on background19.78:1AAA
Text on card20.05:1AAA
Primary button6.41:1AA
Secondary button6.32:1AA
Muted text9.26:1AAA
Accent8.18:1AAA
Destructive4.03:1AA Large

CSS variables

Paste this into your globals.css to use Lilac Spring Amphibian in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.01 313.541);
  --foreground: oklch(0.104 0.023 315.538);
  --muted: oklch(0.919 0.006 81.512);
  --muted-foreground: oklch(0.375 0.007 81.496);
  --popover: oklch(0.97 0.015 313.508);
  --popover-foreground: oklch(0.082 0.019 315.538);
  --card: oklch(0.97 0.015 313.508);
  --card-foreground: oklch(0.082 0.019 315.538);
  --border: oklch(0.923 0.002 313.596);
  --input: oklch(0.923 0.002 313.596);
  --primary: oklch(0.515 0.233 308.711);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.688 0.133 75.693);
  --secondary-foreground: oklch(0.203 0.031 80.339);
  --accent: oklch(0.744 0.155 162.105);
  --accent-foreground: oklch(0.212 0.036 166.259);
  --destructive: oklch(0.33 0.11 32.364);
  --destructive-foreground: oklch(0.826 0.082 30.152);
  --ring: oklch(0.515 0.233 308.711);
  --chart-1: oklch(0.515 0.233 308.711);
  --chart-2: oklch(0.688 0.133 75.693);
  --chart-3: oklch(0.744 0.155 162.105);
  --chart-4: oklch(0.72 0.139 75.615);
  --chart-5: oklch(0.516 0.239 308.36);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.014 315.047);
  --foreground: oklch(0.983 0.004 313.582);
  --muted: oklch(0.231 0.008 81.453);
  --muted-foreground: oklch(0.809 0.006 81.512);
  --popover: oklch(0.107 0.018 315.047);
  --popover-foreground: oklch(0.991 0.002 313.594);
  --card: oklch(0.107 0.018 315.047);
  --card-foreground: oklch(0.991 0.002 313.594);
  --border: oklch(0.236 0.003 313.538);
  --input: oklch(0.236 0.003 313.538);
  --primary: oklch(0.515 0.233 308.711);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.688 0.133 75.693);
  --secondary-foreground: oklch(0.203 0.031 80.339);
  --accent: oklch(0.744 0.155 162.105);
  --accent-foreground: oklch(0.212 0.036 166.259);
  --destructive: oklch(0.619 0.213 32.28);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.515 0.233 308.711);
  --chart-1: oklch(0.515 0.233 308.711);
  --chart-2: oklch(0.688 0.133 75.693);
  --chart-3: oklch(0.744 0.155 162.105);
  --chart-4: oklch(0.72 0.139 75.615);
  --chart-5: oklch(0.516 0.239 308.36);
}