pink for shadcn/ui

pink is a shadcn/ui theme built around a purple primary color (#d3a6cc) with muted light purple accents (#d6ccd4). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the purple primary (#d3a6cc) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#040103black
Foreground
#0d030bblack
#ffffffwhite
Card
#fbf3falavenderblush
#070307black
Card foreground
#080207black
#ffffffwhite
Popover
#fbf3falavenderblush
#070307black
Popover foreground
#080207black
#ffffffwhite
Primary
#d3a6ccplum
#d3a6ccplum
Primary foreground
#30182cdarkslategray
#30182cdarkslategray
Secondary
#d6ccd4lightgrey
#332431darkslategray
Secondary foreground
#3e323cdarkslategray
#cfbacbthistle
Muted
#f3e3f0lavender
#1c0c1ablack
Muted foreground
#675664dimgray
#a998a6darkgray
Accent
#d6ccd4lightgrey
#332431darkslategray
Accent foreground
#3e323cdarkslategray
#cfbacbthistle
Destructive
#d53e0borangered
#e4420corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eae6e9lavender
#1c171bblack
Input
#eae6e9lavender
#1c171bblack
Ring
#d3a6ccplum
#d3a6ccplum

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card18.93:1AAA
Primary button7.82:1AAA
Secondary button7.79:1AAA
Muted text5.49:1AA
Accent7.79:1AAA
Destructive4.64:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.50:1AAA
Primary button7.82:1AAA
Secondary button8.05:1AAA
Muted text6.90:1AA
Accent8.05:1AAA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 330.934);
  --foreground: oklch(0.122 0.031 332.431);
  --muted: oklch(0.931 0.025 331.174);
  --muted-foreground: oklch(0.474 0.031 331.678);
  --popover: oklch(0.973 0.012 330.992);
  --popover-foreground: oklch(0.107 0.027 332.007);
  --card: oklch(0.973 0.012 330.992);
  --card-foreground: oklch(0.107 0.027 332.007);
  --border: oklch(0.929 0.006 330.914);
  --input: oklch(0.929 0.006 330.914);
  --primary: oklch(0.778 0.073 332.028);
  --primary-foreground: oklch(0.25 0.051 333.366);
  --secondary: oklch(0.856 0.016 331.071);
  --secondary-foreground: oklch(0.334 0.025 331.782);
  --accent: oklch(0.856 0.016 331.071);
  --accent-foreground: oklch(0.334 0.025 331.782);
  --destructive: oklch(0.582 0.195 35.796);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.778 0.073 332.028);
  --chart-1: oklch(0.778 0.073 332.028);
  --chart-2: oklch(0.856 0.016 331.071);
  --chart-3: oklch(0.856 0.016 331.071);
  --chart-4: oklch(0.88 0.013 331.022);
  --chart-5: oklch(0.777 0.079 332.132);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.016 331.684);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.036 333.242);
  --muted-foreground: oklch(0.699 0.028 331.356);
  --popover: oklch(0.109 0.02 331.684);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.02 331.684);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.213 0.01 331.459);
  --input: oklch(0.213 0.01 331.459);
  --primary: oklch(0.778 0.073 332.028);
  --primary-foreground: oklch(0.25 0.051 333.366);
  --secondary: oklch(0.282 0.032 332.288);
  --secondary-foreground: oklch(0.811 0.034 331.373);
  --accent: oklch(0.282 0.032 332.288);
  --accent-foreground: oklch(0.811 0.034 331.373);
  --destructive: oklch(0.611 0.206 35.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.778 0.073 332.028);
  --chart-1: oklch(0.778 0.073 332.028);
  --chart-2: oklch(0.282 0.032 332.288);
  --chart-3: oklch(0.282 0.032 332.288);
  --chart-4: oklch(0.312 0.037 332.342);
  --chart-5: oklch(0.777 0.079 332.132);
}