Doll for shadcn/ui

Doll is a shadcn/ui theme built around a muted pink primary color (#c9b5c0) with neutral gray accents (#d2d1d1). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted pink primary (#c9b5c0) on a pink-tinted background (#0b0408).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0b0408black
Foreground
#16040eblack
#ffffffwhite
Card
#fefbfdsnow
#0b0408black
Card foreground
#16040eblack
#ffffffwhite
Popover
#fefbfdsnow
#0b0408black
Popover foreground
#16040eblack
#ffffffwhite
Primary
#c9b5c0silver
#c9b5c0silver
Primary foreground
#2c2027darkslategray
#2c2027darkslategray
Secondary
#d2d1d1lightgrey
#2a2227darkslategray
Secondary foreground
#393838darkslategray
#c6b8c0silver
Muted
#edd9e4gainsboro
#26121dblack
Muted foreground
#594a52dimgray
#b5a6aedarkgray
Accent
#d2d1d1lightgrey
#2a2227darkslategray
Accent foreground
#393838darkslategray
#c6b8c0silver
Destructive
#c21e05firebrick
#fa4e33tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9b5c0silver
#c9b5c0silver

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button8.09:1AAA
Secondary button7.64:1AAA
Muted text6.18:1AA
Accent7.64:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button8.09:1AAA
Secondary button8.11:1AAA
Muted text7.61:1AAA
Accent8.11:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 342.691);
  --foreground: oklch(0.146 0.039 346.674);
  --muted: oklch(0.904 0.027 343.344);
  --muted-foreground: oklch(0.428 0.023 343.91);
  --popover: oklch(0.991 0.003 342.691);
  --popover-foreground: oklch(0.146 0.039 346.674);
  --card: oklch(0.991 0.003 342.691);
  --card-foreground: oklch(0.146 0.039 346.674);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.794 0.028 343.455);
  --primary-foreground: oklch(0.261 0.022 344.583);
  --secondary: oklch(0.86 0.001 342.653);
  --secondary-foreground: oklch(0.34 0.002 342.753);
  --accent: oklch(0.86 0.001 342.653);
  --accent-foreground: oklch(0.34 0.002 342.753);
  --destructive: oklch(0.522 0.199 31.198);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.028 343.455);
  --chart-1: oklch(0.794 0.028 343.455);
  --chart-2: oklch(0.86 0.001 342.653);
  --chart-3: oklch(0.86 0.001 342.653);
  --chart-4: oklch(0.884 0.001 342.646);
  --chart-5: oklch(0.792 0.033 343.611);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.017 342.666);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.215 0.039 346.74);
  --muted-foreground: oklch(0.74 0.02 343.279);
  --popover: oklch(0.125 0.017 342.666);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.017 342.666);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.794 0.028 343.455);
  --primary-foreground: oklch(0.261 0.022 344.583);
  --secondary: oklch(0.264 0.015 343.971);
  --secondary-foreground: oklch(0.797 0.019 343.194);
  --accent: oklch(0.264 0.015 343.971);
  --accent-foreground: oklch(0.797 0.019 343.194);
  --destructive: oklch(0.662 0.213 31.602);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.028 343.455);
  --chart-1: oklch(0.794 0.028 343.455);
  --chart-2: oklch(0.264 0.015 343.971);
  --chart-3: oklch(0.264 0.015 343.971);
  --chart-4: oklch(0.294 0.018 344.035);
  --chart-5: oklch(0.792 0.033 343.611);
}