Muddy for shadcn/ui

Muddy is a shadcn/ui theme built around a vivid purple primary color (#df16ad) with neutral gray accents (#d6d1d5). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid purple primary (#df16ad) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#070306black
Foreground
#0c040ablack
#fcf8fbsnow
Card
#fcf8fbsnow
#070306black
Card foreground
#0c040ablack
#fcf8fbsnow
Popover
#fcf8fbsnow
#070306black
Popover foreground
#0c040ablack
#fcf8fbsnow
Primary
#df16addeeppink
#df16addeeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d6d1d5lightgrey
#2e292cdarkslategray
Secondary foreground
#3e383cdarkslategray
#c7c1c6silver
Muted
#eee2eblavender
#1d111ablack
Muted foreground
#444143darkslategray
#bebbbdsilver
Accent
#d6d1d5lightgrey
#2e292cdarkslategray
Accent foreground
#3e383cdarkslategray
#c7c1c6silver
Destructive
#bc3f01firebrick
#fe6a20tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#df16addeeppink
#df16addeeppink

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button4.33:1AA Large
Secondary button7.61:1AAA
Muted text8.03:1AAA
Accent7.61:1AAA
Destructive5.45:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button4.33:1AA Large
Secondary button8.07:1AAA
Muted text9.61:1AAA
Accent8.07:1AAA
Destructive7.28:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 333.978);
  --foreground: oklch(0.124 0.025 334.856);
  --muted: oklch(0.925 0.017 334.182);
  --muted-foreground: oklch(0.379 0.005 334.093);
  --popover: oklch(0.983 0.006 333.978);
  --popover-foreground: oklch(0.124 0.025 334.856);
  --card: oklch(0.983 0.006 333.978);
  --card-foreground: oklch(0.124 0.025 334.856);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.611 0.255 342.139);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.867 0.006 334.003);
  --secondary-foreground: oklch(0.347 0.011 334.403);
  --accent: oklch(0.867 0.006 334.003);
  --accent-foreground: oklch(0.347 0.011 334.403);
  --destructive: oklch(0.54 0.17 39.69);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.611 0.255 342.139);
  --chart-1: oklch(0.611 0.255 342.139);
  --chart-2: oklch(0.867 0.006 334.003);
  --chart-3: oklch(0.867 0.006 334.003);
  --chart-4: oklch(0.89 0.005 333.977);
  --chart-5: oklch(0.617 0.259 342.406);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.013 334.282);
  --foreground: oklch(0.983 0.005 333.958);
  --muted: oklch(0.198 0.025 335.855);
  --muted-foreground: oklch(0.796 0.004 333.963);
  --popover: oklch(0.111 0.013 334.282);
  --popover-foreground: oklch(0.983 0.005 333.958);
  --card: oklch(0.111 0.013 334.282);
  --card-foreground: oklch(0.983 0.005 333.958);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.611 0.255 342.139);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.288 0.009 334.369);
  --secondary-foreground: oklch(0.818 0.009 334.059);
  --accent: oklch(0.288 0.009 334.369);
  --accent-foreground: oklch(0.818 0.009 334.059);
  --destructive: oklch(0.7 0.197 42.449);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.611 0.255 342.139);
  --chart-1: oklch(0.611 0.255 342.139);
  --chart-2: oklch(0.288 0.009 334.369);
  --chart-3: oklch(0.288 0.009 334.369);
  --chart-4: oklch(0.318 0.01 334.388);
  --chart-5: oklch(0.617 0.259 342.406);
}