Soulful for shadcn/ui

Soulful is a shadcn/ui theme built around a vivid purple primary color (#cb0bc8) with muted light purple accents (#ebe5eb). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the vivid purple primary (#cb0bc8) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#070307black
Foreground
#0c030cblack
#f9f6f9whitesmoke
Card
#fcf3fcghostwhite
#0a050ablack
Card foreground
#080208black
#fbf9fbsnow
Popover
#fcf3fcghostwhite
#0a050ablack
Popover foreground
#080208black
#fbf9fbsnow
Primary
#cb0bc8darkviolet
#cb0bc8darkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ebe5eblavender
#363036darkslategray
Secondary foreground
#594658dimgray
#cfc9cflightgrey
Muted
#f4f1f3whitesmoke
#0e0b0eblack
Muted foreground
#635a63dimgray
#a59ca5darkgray
Accent
#ebe5eblavender
#363036darkslategray
Accent foreground
#594658dimgray
#cfc9cflightgrey
Destructive
#771008maroon
#d71c0ffirebrick
Destructive foreground
#fabcb7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cb0bc8darkviolet
#cb0bc8darkviolet

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card18.88:1AAA
Primary button4.73:1AA
Secondary button6.94:1AA
Muted text5.89:1AA
Accent6.94:1AA
Destructive6.94:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.28:1AAA
Primary button4.73:1AA
Secondary button7.90:1AAA
Muted text7.34:1AAA
Accent7.90:1AAA
Destructive5.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.011 326.142);
  --foreground: oklch(0.125 0.028 327.59);
  --muted: oklch(0.961 0.004 326.09);
  --muted-foreground: oklch(0.478 0.019 326.367);
  --popover: oklch(0.973 0.016 326.187);
  --popover-foreground: oklch(0.109 0.025 327.542);
  --card: oklch(0.973 0.016 326.187);
  --card-foreground: oklch(0.109 0.025 327.542);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.592 0.267 329.193);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.929 0.009 326.135);
  --secondary-foreground: oklch(0.419 0.039 326.774);
  --accent: oklch(0.929 0.009 326.135);
  --accent-foreground: oklch(0.419 0.039 326.774);
  --destructive: oklch(0.367 0.138 29.61);
  --destructive-foreground: oklch(0.85 0.072 23.361);
  --ring: oklch(0.592 0.267 329.193);
  --chart-1: oklch(0.592 0.267 329.193);
  --chart-2: oklch(0.929 0.009 326.135);
  --chart-3: oklch(0.929 0.009 326.135);
  --chart-4: oklch(0.953 0.006 326.106);
  --chart-5: oklch(0.598 0.271 329.217);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.015 326.977);
  --foreground: oklch(0.976 0.005 326.096);
  --muted: oklch(0.156 0.007 326.396);
  --muted-foreground: oklch(0.703 0.017 326.249);
  --popover: oklch(0.128 0.017 326.977);
  --popover-foreground: oklch(0.984 0.003 326.082);
  --card: oklch(0.128 0.017 326.977);
  --card-foreground: oklch(0.984 0.003 326.082);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.592 0.267 329.193);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.318 0.014 326.392);
  --secondary-foreground: oklch(0.842 0.011 326.155);
  --accent: oklch(0.318 0.014 326.392);
  --accent-foreground: oklch(0.842 0.011 326.155);
  --destructive: oklch(0.56 0.217 29.737);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.592 0.267 329.193);
  --chart-1: oklch(0.592 0.267 329.193);
  --chart-2: oklch(0.318 0.014 326.392);
  --chart-3: oklch(0.318 0.014 326.392);
  --chart-4: oklch(0.347 0.015 326.401);
  --chart-5: oklch(0.598 0.271 329.217);
}