Lusty Lavender Bassd for shadcn/ui

Lusty Lavender Bassd is a shadcn/ui theme built around a violet primary color (#875cbc) with muted light violet accents (#cecad3). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#875cbc) on a violet-tinted background (#0a060e).

Color palette

TokenLightDark
Background
#fcfbfewhite
#0a060eblack
Foreground
#000000black
#fcfcfdwhite
Card
#faf8fcghostwhite
#0c0712black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfbfewhite
#0a060eblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#875cbcslateblue
#875cbcslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e0dfe1gainsboro
#1c191fblack
Secondary foreground
#47454adarkslategray
#b4adbdsilver
Muted
#efeaf5lavender
#0f0a15black
Muted foreground
#3f3749darkslategray
#beb6c8silver
Accent
#cecad3lightgrey
#282130darkslategray
Accent foreground
#35313adarkslategray
#c1b7cdsilver
Destructive
#c64a15chocolate
#e9672fchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e5e6gainsboro
#1c1b1dblack
Input
#e5e5e6gainsboro
#1c1b1dblack
Ring
#875cbcslateblue
#875cbcslateblue

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card19.85:1AAA
Primary button4.88:1AA
Secondary button7.15:1AAA
Muted text9.58:1AAA
Accent7.89:1AAA
Destructive4.76:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.87:1AAA
Primary button4.88:1AA
Secondary button7.99:1AAA
Muted text9.99:1AAA
Accent8.05:1AAA
Destructive6.45:1AA

CSS variables

Paste this into your globals.css to use Lusty Lavender Bassd in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 306.39);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.016 306.212);
  --muted-foreground: oklch(0.352 0.032 305.254);
  --popover: oklch(0.991 0.003 306.39);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 306.35);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.923 0.001 306.408);
  --input: oklch(0.923 0.001 306.408);
  --primary: oklch(0.564 0.148 302.704);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.906 0.003 306.391);
  --secondary-foreground: oklch(0.395 0.008 306.185);
  --accent: oklch(0.845 0.013 306.237);
  --accent-foreground: oklch(0.32 0.018 305.717);
  --destructive: oklch(0.572 0.17 39.929);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.564 0.148 302.704);
  --chart-1: oklch(0.564 0.148 302.704);
  --chart-2: oklch(0.906 0.003 306.391);
  --chart-3: oklch(0.845 0.013 306.237);
  --chart-4: oklch(0.93 0.002 306.402);
  --chart-5: oklch(0.56 0.158 302.359);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.021 306.099);
  --foreground: oklch(0.991 0.002 306.408);
  --muted: oklch(0.156 0.025 304.345);
  --muted-foreground: oklch(0.789 0.026 306.002);
  --popover: oklch(0.133 0.021 306.099);
  --popover-foreground: oklch(0.991 0.002 306.408);
  --card: oklch(0.144 0.024 304.733);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.225 0.002 306.3);
  --input: oklch(0.225 0.002 306.3);
  --primary: oklch(0.564 0.148 302.704);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.219 0.013 305.696);
  --secondary-foreground: oklch(0.758 0.024 306.019);
  --accent: oklch(0.264 0.028 305.04);
  --accent-foreground: oklch(0.794 0.033 305.905);
  --destructive: oklch(0.666 0.175 41.58);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.564 0.148 302.704);
  --chart-1: oklch(0.564 0.148 302.704);
  --chart-2: oklch(0.219 0.013 305.696);
  --chart-3: oklch(0.264 0.028 305.04);
  --chart-4: oklch(0.25 0.015 305.638);
  --chart-5: oklch(0.56 0.158 302.359);
}