Drunk Purple Ash for shadcn/ui

Drunk Purple Ash is a shadcn/ui theme built around a muted violet primary color (#918698) with muted teal accents (#869891). The light mode uses a neutral background (#fbf6fd). Dark mode keeps the muted violet primary (#918698) on a violet-tinted background (#0c0510).

Color palette

TokenLightDark
Background
#fbf6fdghostwhite
#0c0510black
Foreground
#060208black
#fdfcfdwhite
Card
#f9f2fcghostwhite
#0f0613black
Card foreground
#030104black
#ffffffwhite
Popover
#f9f2fcghostwhite
#0f0613black
Popover foreground
#030104black
#ffffffwhite
Primary
#918698lightslategray
#918698lightslategray
Primary foreground
#000000black
#000000black
Secondary
#989186gray
#989186gray
Secondary foreground
#000000black
#000000black
Muted
#ecebe9linen
#161513black
Muted foreground
#6e6659dimgray
#a69e91darkgray
Accent
#869891lightslategray
#869891lightslategray
Accent foreground
#000000black
#000000black
Destructive
#cb2601firebrick
#fe441borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e4e1e5gainsboro
#1a171cblack
Input
#e4e1e5gainsboro
#1a171cblack
Ring
#918698lightslategray
#918698lightslategray

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card18.96:1AAA
Primary button6.05:1AA
Secondary button6.73:1AA
Muted text4.75:1AA
Accent6.89:1AA
Destructive5.50:1AA
Dark mode
Text on background19.66:1AAA
Text on card19.89:1AAA
Primary button6.05:1AA
Secondary button6.73:1AA
Muted text6.89:1AA
Accent6.89:1AA
Destructive3.46:1AA Large

CSS variables

Paste this into your globals.css to use Drunk Purple Ash in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.01 313.542);
  --foreground: oklch(0.102 0.027 315.902);
  --muted: oklch(0.941 0.003 81.514);
  --muted-foreground: oklch(0.515 0.023 81.406);
  --popover: oklch(0.97 0.015 313.509);
  --popover-foreground: oklch(0.081 0.022 315.902);
  --card: oklch(0.97 0.015 313.509);
  --card-foreground: oklch(0.081 0.022 315.902);
  --border: oklch(0.912 0.007 313.56);
  --input: oklch(0.912 0.007 313.56);
  --primary: oklch(0.635 0.03 313.321);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.66 0.018 81.478);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.663 0.023 171.549);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.544 0.203 32.462);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.635 0.03 313.321);
  --chart-1: oklch(0.635 0.03 313.321);
  --chart-2: oklch(0.66 0.018 81.478);
  --chart-3: oklch(0.663 0.023 171.549);
  --chart-4: oklch(0.684 0.017 81.486);
  --chart-5: oklch(0.63 0.041 313.211);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.028 313.74);
  --foreground: oklch(0.991 0.002 313.59);
  --muted: oklch(0.196 0.004 81.49);
  --muted-foreground: oklch(0.704 0.022 81.468);
  --popover: oklch(0.144 0.032 312.81);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.032 312.81);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.211 0.009 313.349);
  --input: oklch(0.211 0.009 313.349);
  --primary: oklch(0.635 0.03 313.321);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.66 0.018 81.478);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.663 0.023 171.549);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.658 0.227 33.427);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.635 0.03 313.321);
  --chart-1: oklch(0.635 0.03 313.321);
  --chart-2: oklch(0.66 0.018 81.478);
  --chart-3: oklch(0.663 0.023 171.549);
  --chart-4: oklch(0.684 0.017 81.486);
  --chart-5: oklch(0.63 0.041 313.211);
}