Mad for shadcn/ui

Mad is a shadcn/ui theme built around a muted light pink primary color (#f6eff2) with muted light blue accents (#eff2f6). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the muted light pink primary (#f6eff2) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fdf7f9snow
#070305black
Foreground
#14050bblack
#fdfcfcsnow
Card
#fdf7f9snow
#070305black
Card foreground
#14050bblack
#fdfcfcsnow
Popover
#fdf7f9snow
#070305black
Popover foreground
#14050bblack
#fdfcfcsnow
Primary
#f6eff2whitesmoke
#f6eff2whitesmoke
Primary foreground
#704255dimgray
#704255dimgray
Secondary
#f2f6efwhitesmoke
#f2f6efwhitesmoke
Secondary foreground
#24301cdarkslategray
#24301cdarkslategray
Muted
#eff5ebhoneydew
#0e140ablack
Muted foreground
#474b44darkslategray
#b7bbb4silver
Accent
#eff2f6whitesmoke
#eff2f6whitesmoke
Accent foreground
#425570darkslateblue
#425570darkslateblue
Destructive
#882b0csaddlebrown
#ed6335tomato
Destructive foreground
#fbd7cbbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6eff2whitesmoke
#f6eff2whitesmoke

Contrast

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

Light mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button7.12:1AAA
Secondary button12.63:1AAA
Muted text8.00:1AAA
Accent6.74:1AA
Destructive6.54:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.12:1AAA
Secondary button12.63:1AAA
Muted text9.58:1AAA
Accent6.74:1AA
Destructive6.46:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 350.818);
  --foreground: oklch(0.147 0.03 354.206);
  --muted: oklch(0.962 0.014 132.471);
  --muted-foreground: oklch(0.406 0.013 132.601);
  --popover: oklch(0.981 0.007 350.818);
  --popover-foreground: oklch(0.147 0.03 354.206);
  --card: oklch(0.981 0.007 350.818);
  --card-foreground: oklch(0.147 0.03 354.206);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.958 0.008 350.857);
  --primary-foreground: oklch(0.44 0.069 354.78);
  --secondary: oklch(0.967 0.01 132.434);
  --secondary-foreground: oklch(0.293 0.038 133.47);
  --accent: oklch(0.959 0.006 258.329);
  --accent-foreground: oklch(0.444 0.052 258.319);
  --destructive: oklch(0.426 0.133 37.007);
  --destructive-foreground: oklch(0.906 0.043 39.292);
  --ring: oklch(0.958 0.008 350.857);
  --chart-1: oklch(0.958 0.008 350.857);
  --chart-2: oklch(0.967 0.01 132.434);
  --chart-3: oklch(0.959 0.006 258.329);
  --chart-4: oklch(0.987 0.004 132.388);
  --chart-5: oklch(0.957 0.009 350.884);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.015 350.334);
  --foreground: oklch(0.991 0.002 350.68);
  --muted: oklch(0.182 0.021 133.331);
  --muted-foreground: oklch(0.787 0.011 132.464);
  --popover: oklch(0.108 0.015 350.334);
  --popover-foreground: oklch(0.991 0.002 350.68);
  --card: oklch(0.108 0.015 350.334);
  --card-foreground: oklch(0.991 0.002 350.68);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.958 0.008 350.857);
  --primary-foreground: oklch(0.44 0.069 354.78);
  --secondary: oklch(0.967 0.01 132.434);
  --secondary-foreground: oklch(0.293 0.038 133.47);
  --accent: oklch(0.959 0.006 258.329);
  --accent-foreground: oklch(0.444 0.052 258.319);
  --destructive: oklch(0.668 0.181 38.242);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.958 0.008 350.857);
  --chart-1: oklch(0.958 0.008 350.857);
  --chart-2: oklch(0.967 0.01 132.434);
  --chart-3: oklch(0.959 0.006 258.329);
  --chart-4: oklch(0.987 0.004 132.388);
  --chart-5: oklch(0.957 0.009 350.884);
}