Inner Purple Vanity for shadcn/ui

Inner Purple Vanity is a shadcn/ui theme built around a violet primary color (#a02cce) with muted light violet accents (#d8d1db). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#a02cce) on a violet-tinted background (#09040b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#09040bblack
Foreground
#000000black
#fdfcfdwhite
Card
#fbf7fdghostwhite
#0c050fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbf7fdghostwhite
#0c050fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#a02ccedarkorchid
#a02ccedarkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d8d1dblightgrey
#1c1b1dblack
Secondary foreground
#403645darkslategray
#b6b4b7silver
Muted
#efe9f2lavender
#140d16black
Muted foreground
#575558dimgray
#a9a7aadarkgray
Accent
#d8d1dblightgrey
#1c1b1dblack
Accent foreground
#403645darkslategray
#b6b4b7silver
Destructive
#af210efirebrick
#ef4a34tomato
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#f0eff1whitesmoke
#252126darkslategray
Input
#f0eff1whitesmoke
#252126darkslategray
Ring
#a02ccedarkorchid
#a02ccedarkorchid

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card19.83:1AAA
Primary button5.60:1AA
Secondary button7.70:1AAA
Muted text6.17:1AA
Accent7.70:1AAA
Destructive6.32:1AA
Dark mode
Text on background19.85:1AAA
Text on card20.08:1AAA
Primary button5.60:1AA
Secondary button8.30:1AAA
Muted text7.99:1AAA
Accent8.30:1AAA
Destructive3.69:1AA Large

CSS variables

Paste this into your globals.css to use Inner Purple Vanity in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 316.596);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.941 0.014 316.566);
  --muted-foreground: oklch(0.453 0.006 316.567);
  --popover: oklch(0.981 0.009 316.583);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.009 316.583);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.953 0.003 316.599);
  --input: oklch(0.953 0.003 316.599);
  --primary: oklch(0.547 0.237 313.844);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.87 0.015 316.557);
  --secondary-foreground: oklch(0.349 0.029 316.368);
  --accent: oklch(0.87 0.015 316.557);
  --accent-foreground: oklch(0.349 0.029 316.368);
  --destructive: oklch(0.488 0.179 31.006);
  --destructive-foreground: oklch(0.971 0.013 26.529);
  --ring: oklch(0.547 0.237 313.844);
  --chart-1: oklch(0.547 0.237 313.844);
  --chart-2: oklch(0.87 0.015 316.557);
  --chart-3: oklch(0.87 0.015 316.557);
  --chart-4: oklch(0.895 0.012 316.568);
  --chart-5: oklch(0.549 0.244 313.609);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.024 318.126);
  --foreground: oklch(0.992 0.001 316.605);
  --muted: oklch(0.174 0.021 316.252);
  --muted-foreground: oklch(0.73 0.006 316.586);
  --popover: oklch(0.135 0.027 316.995);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.027 316.995);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.255 0.011 316.487);
  --input: oklch(0.255 0.011 316.487);
  --primary: oklch(0.547 0.237 313.844);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.226 0.002 316.577);
  --secondary-foreground: oklch(0.771 0.005 316.591);
  --accent: oklch(0.226 0.002 316.577);
  --accent-foreground: oklch(0.771 0.005 316.591);
  --destructive: oklch(0.64 0.205 30.793);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.547 0.237 313.844);
  --chart-1: oklch(0.547 0.237 313.844);
  --chart-2: oklch(0.226 0.002 316.577);
  --chart-3: oklch(0.226 0.002 316.577);
  --chart-4: oklch(0.258 0.003 316.574);
  --chart-5: oklch(0.549 0.244 313.609);
}