Mild for shadcn/ui

Mild is a shadcn/ui theme built around a pink primary color (#a84880) with muted light pink accents (#eee7eb). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the pink primary (#a84880) on a neutral background (#080206).

Color palette

TokenLightDark
Background
#fcf7fasnow
#080206black
Foreground
#10040bblack
#fdfcfcsnow
Card
#fcf7fasnow
#080206black
Card foreground
#10040bblack
#fdfcfcsnow
Popover
#fcf7fasnow
#080206black
Popover foreground
#10040bblack
#fdfcfcsnow
Primary
#a84880indianred
#a84880indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#eee7eblinen
#3d2935darkslategray
Secondary foreground
#604354dimgray
#d6c2cethistle
Muted
#ebd6e2gainsboro
#291420black
Muted foreground
#55444edarkslategray
#bbaab4darkgray
Accent
#eee7eblinen
#3d2935darkslategray
Accent foreground
#604354dimgray
#d6c2cethistle
Destructive
#ad3100firebrick
#ff6529tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a84880indianred
#a84880indianred

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button5.39:1AA
Secondary button7.11:1AAA
Muted text6.56:1AA
Accent7.11:1AAA
Destructive6.50:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button5.39:1AA
Secondary button7.96:1AAA
Muted text7.82:1AAA
Accent7.96:1AAA
Destructive7.16:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 341.171);
  --foreground: oklch(0.136 0.029 343.224);
  --muted: oklch(0.897 0.028 341.726);
  --muted-foreground: oklch(0.408 0.028 342.526);
  --popover: oklch(0.982 0.007 341.171);
  --popover-foreground: oklch(0.136 0.029 343.224);
  --card: oklch(0.982 0.007 341.171);
  --card-foreground: oklch(0.136 0.029 343.224);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.544 0.142 346.764);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.935 0.01 341.255);
  --secondary-foreground: oklch(0.421 0.048 343.502);
  --accent: oklch(0.935 0.01 341.255);
  --accent-foreground: oklch(0.421 0.048 343.502);
  --destructive: oklch(0.5 0.168 36.907);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.142 346.764);
  --chart-1: oklch(0.544 0.142 346.764);
  --chart-2: oklch(0.935 0.01 341.255);
  --chart-3: oklch(0.935 0.01 341.255);
  --chart-4: oklch(0.959 0.006 341.16);
  --chart-5: oklch(0.544 0.151 347.195);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.021 341.094);
  --foreground: oklch(0.992 0.001 341.028);
  --muted: oklch(0.226 0.039 344.772);
  --muted-foreground: oklch(0.756 0.024 341.727);
  --popover: oklch(0.107 0.021 341.094);
  --popover-foreground: oklch(0.992 0.001 341.028);
  --card: oklch(0.107 0.021 341.094);
  --card-foreground: oklch(0.992 0.001 341.028);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.544 0.142 346.764);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.309 0.036 343.554);
  --secondary-foreground: oklch(0.834 0.028 341.777);
  --accent: oklch(0.309 0.036 343.554);
  --accent-foreground: oklch(0.834 0.028 341.777);
  --destructive: oklch(0.697 0.2 39.636);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.544 0.142 346.764);
  --chart-1: oklch(0.544 0.142 346.764);
  --chart-2: oklch(0.309 0.036 343.554);
  --chart-3: oklch(0.309 0.036 343.554);
  --chart-4: oklch(0.338 0.04 343.627);
  --chart-5: oklch(0.544 0.151 347.195);
}