Bodacious Raven for shadcn/ui

Bodacious Raven is a shadcn/ui theme built around a purple primary color (#b15da3) with muted purple accents (#c9b0c5). The light mode uses a neutral background (#fefbfd). Dark mode keeps the purple primary (#b15da3) on a neutral background (#080307).

Color palette

TokenLightDark
Background
#fefbfdsnow
#080307black
Foreground
#050104black
#faf5f9whitesmoke
Card
#fdf7fcsnow
#0b040ablack
Card foreground
#000000black
#fcf8fbsnow
Popover
#fdf7fcsnow
#0b040ablack
Popover foreground
#000000black
#fcf8fbsnow
Primary
#b15da3palevioletred
#b15da3palevioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5cdd4lightgrey
#3a2c37darkslategray
Secondary foreground
#3d333bdarkslategray
#d3c5d0thistle
Muted
#eee2eclavender
#1d111bblack
Muted foreground
#514d51darkslategray
#b2aeb2darkgray
Accent
#c9b0c5silver
#54364fdarkslategray
Accent foreground
#2a1d28darkslategray
#e5d7e3gainsboro
Destructive
#610f0amaroon
#d01f16firebrick
Destructive foreground
#f6aba7lightpink
#ffffffwhite
Border
#ece9eclavender
#1c171bblack
Input
#ece9eclavender
#1c171bblack
Ring
#b15da3palevioletred
#b15da3palevioletred

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card19.88:1AAA
Primary button4.22:1AA Large
Secondary button7.78:1AAA
Muted text6.61:1AA
Accent8.06:1AAA
Destructive7.16:1AAA
Dark mode
Text on background19.03:1AAA
Text on card19.26:1AAA
Primary button4.22:1AA Large
Secondary button7.91:1AAA
Muted text8.35:1AAA
Accent7.53:1AAA
Destructive5.41:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 330.878);
  --foreground: oklch(0.083 0.027 332.26);
  --muted: oklch(0.925 0.018 331.089);
  --muted-foreground: oklch(0.425 0.009 331.102);
  --popover: oklch(0.982 0.008 330.936);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 330.936);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.937 0.005 330.893);
  --input: oklch(0.937 0.005 330.893);
  --primary: oklch(0.601 0.14 333.714);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.857 0.013 331.026);
  --secondary-foreground: oklch(0.335 0.02 331.61);
  --accent: oklch(0.786 0.041 331.503);
  --accent-foreground: oklch(0.252 0.029 332.293);
  --destructive: oklch(0.321 0.116 28.705);
  --destructive-foreground: oklch(0.812 0.089 22.553);
  --ring: oklch(0.601 0.14 333.714);
  --chart-1: oklch(0.601 0.14 333.714);
  --chart-2: oklch(0.857 0.013 331.026);
  --chart-3: oklch(0.786 0.041 331.503);
  --chart-4: oklch(0.881 0.011 330.986);
  --chart-5: oklch(0.602 0.151 333.933);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.021 331.74);
  --foreground: oklch(0.974 0.008 330.937);
  --muted: oklch(0.198 0.027 332.55);
  --muted-foreground: oklch(0.755 0.008 330.959);
  --popover: oklch(0.125 0.024 331.948);
  --popover-foreground: oklch(0.983 0.006 330.898);
  --card: oklch(0.125 0.024 331.948);
  --card-foreground: oklch(0.983 0.006 330.898);
  --border: oklch(0.213 0.009 331.389);
  --input: oklch(0.213 0.009 331.389);
  --primary: oklch(0.601 0.14 333.714);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.314 0.027 331.931);
  --secondary-foreground: oklch(0.839 0.021 331.157);
  --accent: oklch(0.377 0.058 332.766);
  --accent-foreground: oklch(0.893 0.023 331.162);
  --destructive: oklch(0.549 0.21 29.226);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.601 0.14 333.714);
  --chart-1: oklch(0.601 0.14 333.714);
  --chart-2: oklch(0.314 0.027 331.931);
  --chart-3: oklch(0.377 0.058 332.766);
  --chart-4: oklch(0.343 0.03 331.962);
  --chart-5: oklch(0.602 0.151 333.933);
}