Soulful for shadcn/ui

Soulful is a shadcn/ui theme built around a light purple primary color (#e4b4da) with muted light purple accents (#d5b9cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#e4b4da) on a purple-tinted background (#0a0509).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0509black
Foreground
#090107black
#fdfcfdwhite
Card
#ffffffwhite
#0a0509black
Card foreground
#090107black
#fdfcfdwhite
Popover
#ffffffwhite
#0a0509black
Popover foreground
#090107black
#fdfcfdwhite
Primary
#e4b4dathistle
#e4b4dathistle
Primary foreground
#4b1b41darkslategray
#4b1b41darkslategray
Secondary
#e4d7e2gainsboro
#332430darkslategray
Secondary foreground
#53374ddarkslategray
#cebacathistle
Muted
#efe1eclavender
#1e101bblack
Muted foreground
#423d41darkslategray
#c2bdc1silver
Accent
#d5b9cfthistle
#512f4adarkslategray
Accent foreground
#392234darkslategray
#e3cedfgainsboro
Destructive
#6a2106maroon
#f25d26chocolate
Destructive foreground
#fabea8lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4b4dathistle
#e4b4dathistle

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button7.72:1AAA
Secondary button7.49:1AAA
Muted text8.43:1AAA
Accent8.02:1AAA
Destructive7.09:1AAA
Dark mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button7.72:1AAA
Secondary button8.02:1AAA
Muted text9.90:1AAA
Accent7.66:1AAA
Destructive6.36:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.105 0.031 333.758);
  --muted: oklch(0.924 0.021 332.96);
  --muted-foreground: oklch(0.367 0.01 333.018);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.031 333.758);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.105 0.031 333.758);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.824 0.074 333.945);
  --primary-foreground: oklch(0.31 0.089 336.764);
  --secondary: oklch(0.893 0.02 332.961);
  --secondary-foreground: oklch(0.377 0.051 334.598);
  --accent: oklch(0.816 0.043 333.419);
  --accent-foreground: oklch(0.29 0.046 334.885);
  --destructive: oklch(0.358 0.11 38.059);
  --destructive-foreground: oklch(0.85 0.076 40.878);
  --ring: oklch(0.824 0.074 333.945);
  --chart-1: oklch(0.824 0.074 333.945);
  --chart-2: oklch(0.893 0.02 332.961);
  --chart-3: oklch(0.816 0.043 333.419);
  --chart-4: oklch(0.918 0.015 332.874);
  --chart-5: oklch(0.823 0.079 334.028);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.016 333.124);
  --foreground: oklch(0.992 0.002 332.651);
  --muted: oklch(0.197 0.03 334.826);
  --muted-foreground: oklch(0.803 0.008 332.769);
  --popover: oklch(0.127 0.016 333.124);
  --popover-foreground: oklch(0.992 0.002 332.651);
  --card: oklch(0.127 0.016 333.124);
  --card-foreground: oklch(0.992 0.002 332.651);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.824 0.074 333.945);
  --primary-foreground: oklch(0.31 0.089 336.764);
  --secondary: oklch(0.282 0.03 334.162);
  --secondary-foreground: oklch(0.812 0.031 333.196);
  --accent: oklch(0.357 0.065 335.218);
  --accent-foreground: oklch(0.874 0.031 333.164);
  --destructive: oklch(0.666 0.195 38.533);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.824 0.074 333.945);
  --chart-1: oklch(0.824 0.074 333.945);
  --chart-2: oklch(0.282 0.03 334.162);
  --chart-3: oklch(0.357 0.065 335.218);
  --chart-4: oklch(0.312 0.034 334.219);
  --chart-5: oklch(0.823 0.079 334.028);
}