Eyelid for shadcn/ui

Eyelid is a shadcn/ui theme built around a vivid purple primary color (#e334fe) with muted light purple accents (#d4c7d6). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid purple primary (#e334fe) on a purple-tinted background (#0b040c).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0b040cblack
Foreground
#0c020eblack
#f8f6f8whitesmoke
Card
#fcf7fdghostwhite
#0e0510black
Card foreground
#080109black
#faf9fbghostwhite
Popover
#fcf7fdghostwhite
#0e0510black
Popover foreground
#080109black
#faf9fbghostwhite
Primary
#e334femagenta
#e334femagenta
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#eae6ealavender
#271f28darkslategray
Secondary foreground
#554757darkslategray
#c3b4c5silver
Muted
#f2e7f3lavender
#160c18black
Muted foreground
#69506ddimgray
#ab92afdarkgray
Accent
#d4c7d6thistle
#442e47darkslategray
Accent foreground
#3c2d3edarkslategray
#dacbddthistle
Destructive
#8c0303darkred
#fa1414red
Destructive foreground
#fec3c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e334femagenta
#e334femagenta

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.50:1AAA
Primary button3.39:1AA Large
Secondary button6.99:1AA
Muted text5.88:1AA
Accent7.89:1AAA
Destructive6.48:1AA
Dark mode
Text on background18.87:1AAA
Text on card19.10:1AAA
Primary button3.39:1AA Large
Secondary button8.10:1AAA
Muted text6.78:1AA
Accent7.84:1AAA
Destructive4.05:1AA Large

CSS variables

Paste this into your globals.css to use Eyelid in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 321.605);
  --foreground: oklch(0.119 0.04 323.634);
  --muted: oklch(0.94 0.02 321.652);
  --muted-foreground: oklch(0.468 0.054 321.894);
  --popover: oklch(0.982 0.009 321.618);
  --popover-foreground: oklch(0.103 0.034 324.113);
  --card: oklch(0.982 0.009 321.618);
  --card-foreground: oklch(0.103 0.034 324.113);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.677 0.291 321.756);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.929 0.007 321.615);
  --secondary-foreground: oklch(0.418 0.031 321.794);
  --accent: oklch(0.845 0.026 321.677);
  --accent-foreground: oklch(0.321 0.036 321.886);
  --destructive: oklch(0.403 0.163 28.967);
  --destructive-foreground: oklch(0.87 0.068 18.537);
  --ring: oklch(0.677 0.291 321.756);
  --chart-1: oklch(0.677 0.291 321.756);
  --chart-2: oklch(0.929 0.007 321.615);
  --chart-3: oklch(0.845 0.026 321.677);
  --chart-4: oklch(0.953 0.005 321.607);
  --chart-5: oklch(0.68 0.296 321.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.026 323.052);
  --foreground: oklch(0.976 0.003 321.601);
  --muted: oklch(0.174 0.03 322.015);
  --muted-foreground: oklch(0.693 0.049 321.785);
  --popover: oklch(0.137 0.03 322.565);
  --popover-foreground: oklch(0.984 0.002 321.598);
  --card: oklch(0.137 0.03 322.565);
  --card-foreground: oklch(0.984 0.002 321.598);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.677 0.291 321.756);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.253 0.021 321.813);
  --secondary-foreground: oklch(0.788 0.029 321.694);
  --accent: oklch(0.338 0.051 321.969);
  --accent-foreground: oklch(0.859 0.03 321.689);
  --destructive: oklch(0.624 0.249 28.654);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.291 321.756);
  --chart-1: oklch(0.677 0.291 321.756);
  --chart-2: oklch(0.253 0.021 321.813);
  --chart-3: oklch(0.338 0.051 321.969);
  --chart-4: oklch(0.283 0.025 321.824);
  --chart-5: oklch(0.68 0.296 321.702);
}