Pink for shadcn/ui

Pink is a shadcn/ui theme built around a purple primary color (#d198d2) with muted light purple accents (#cfc4cf). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the purple primary (#d198d2) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#030203black
Foreground
#000000black
#ffffffwhite
Card
#fcf7fdghostwhite
#030203black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf7fdghostwhite
#030203black
Popover foreground
#000000black
#ffffffwhite
Primary
#d198d2plum
#d198d2plum
Primary foreground
#271127black
#271127black
Secondary
#e1e0e1gainsboro
#2d2a2ddarkslategray
Secondary foreground
#494649darkslategray
#c7c2c7silver
Muted
#efe6eflavender
#191019black
Muted foreground
#634a64dimgray
#b59bb5darkgray
Accent
#cfc4cfthistle
#443645darkslategray
Accent foreground
#362b36darkslategray
#dbd1dbgainsboro
Destructive
#830d02maroon
#ec1704red
Destructive foreground
#febeb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d198d2plum
#d198d2plum

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button7.64:1AAA
Secondary button7.06:1AAA
Muted text6.39:1AA
Accent7.98:1AAA
Destructive6.58:1AA
Dark mode
Text on background20.72:1AAA
Text on card20.72:1AAA
Primary button7.64:1AAA
Secondary button8.11:1AAA
Muted text7.37:1AAA
Accent7.61:1AAA
Destructive4.47: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.009 325.162);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.935 0.016 325.218);
  --muted-foreground: oklch(0.445 0.053 325.879);
  --popover: oklch(0.982 0.009 325.162);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.009 325.162);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.753 0.102 325.984);
  --primary-foreground: oklch(0.22 0.051 326.544);
  --secondary: oklch(0.907 0.002 325.116);
  --secondary-foreground: oklch(0.398 0.006 325.205);
  --accent: oklch(0.832 0.021 325.271);
  --accent-foreground: oklch(0.305 0.024 325.624);
  --destructive: oklch(0.388 0.151 30.509);
  --destructive-foreground: oklch(0.859 0.074 24.633);
  --ring: oklch(0.753 0.102 325.984);
  --chart-1: oklch(0.753 0.102 325.984);
  --chart-2: oklch(0.907 0.002 325.116);
  --chart-3: oklch(0.832 0.021 325.271);
  --chart-4: oklch(0.931 0.002 325.112);
  --chart-5: oklch(0.753 0.11 326.047);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.012 326.043);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.024 325.92);
  --muted-foreground: oklch(0.721 0.047 325.54);
  --popover: oklch(0.089 0.012 326.043);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.089 0.012 326.043);
  --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.753 0.102 325.984);
  --primary-foreground: oklch(0.22 0.051 326.544);
  --secondary: oklch(0.288 0.008 325.289);
  --secondary-foreground: oklch(0.819 0.008 325.17);
  --accent: oklch(0.354 0.032 325.697);
  --accent-foreground: oklch(0.872 0.017 325.234);
  --destructive: oklch(0.598 0.238 30.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.753 0.102 325.984);
  --chart-1: oklch(0.753 0.102 325.984);
  --chart-2: oklch(0.288 0.008 325.289);
  --chart-3: oklch(0.354 0.032 325.697);
  --chart-4: oklch(0.319 0.009 325.296);
  --chart-5: oklch(0.753 0.11 326.047);
}