Pink for shadcn/ui

Pink is a shadcn/ui theme built around a muted cyan primary color (#93b5be) with muted red accents (#be9b93). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#93b5be) on a cyan-tinted background (#040a0c).

Color palette

TokenLightDark
Background
#fbfdfewhite
#040a0cblack
Foreground
#030e11black
#fcfdfdwhite
Card
#fbfdfewhite
#040a0cblack
Card foreground
#030e11black
#fcfdfdwhite
Popover
#fbfdfewhite
#040a0cblack
Popover foreground
#030e11black
#fcfdfdwhite
Primary
#93b5bedarkgray
#93b5bedarkgray
Primary foreground
#0b1213black
#0b1213black
Secondary
#be9b93rosybrown
#be9b93rosybrown
Secondary foreground
#130d0bblack
#130d0bblack
Muted
#e9d3cdgainsboro
#321b16black
Muted foreground
#544440darkslategray
#bfafabdarkgray
Accent
#be9b93rosybrown
#be9b93rosybrown
Accent foreground
#130d0bblack
#130d0bblack
Destructive
#aa2c09firebrick
#f34212orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ebefefwhitesmoke
#1d2425black
Input
#ebefefwhitesmoke
#1d2425black
Ring
#93b5bedarkgray
#93b5bedarkgray

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button8.65:1AAA
Secondary button7.62:1AAA
Muted text6.44:1AA
Accent7.62:1AAA
Destructive6.86:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button8.65:1AAA
Secondary button7.62:1AAA
Muted text7.61:1AAA
Accent7.62:1AAA
Destructive3.75: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.993 0.003 214.324);
  --foreground: oklch(0.155 0.02 213.092);
  --muted: oklch(0.883 0.026 34.301);
  --muted-foreground: oklch(0.402 0.022 34.348);
  --popover: oklch(0.993 0.003 214.324);
  --popover-foreground: oklch(0.155 0.02 213.092);
  --card: oklch(0.993 0.003 214.324);
  --card-foreground: oklch(0.155 0.02 213.092);
  --border: oklch(0.948 0.004 214.328);
  --input: oklch(0.948 0.004 214.328);
  --primary: oklch(0.751 0.04 214.626);
  --primary-foreground: oklch(0.175 0.01 214.676);
  --secondary: oklch(0.72 0.043 34.362);
  --secondary-foreground: oklch(0.167 0.011 34.382);
  --accent: oklch(0.72 0.043 34.362);
  --accent-foreground: oklch(0.167 0.011 34.382);
  --destructive: oklch(0.488 0.167 34.502);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.04 214.626);
  --chart-1: oklch(0.751 0.04 214.626);
  --chart-2: oklch(0.72 0.043 34.362);
  --chart-3: oklch(0.72 0.043 34.362);
  --chart-4: oklch(0.745 0.039 34.34);
  --chart-5: oklch(0.754 0.044 214.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.013 211.146);
  --foreground: oklch(0.993 0.001 214.32);
  --muted: oklch(0.252 0.037 34.787);
  --muted-foreground: oklch(0.767 0.019 34.298);
  --popover: oklch(0.137 0.013 211.146);
  --popover-foreground: oklch(0.993 0.001 214.32);
  --card: oklch(0.137 0.013 211.146);
  --card-foreground: oklch(0.993 0.001 214.32);
  --border: oklch(0.253 0.01 214.52);
  --input: oklch(0.253 0.01 214.52);
  --primary: oklch(0.751 0.04 214.626);
  --primary-foreground: oklch(0.175 0.01 214.676);
  --secondary: oklch(0.72 0.043 34.362);
  --secondary-foreground: oklch(0.167 0.011 34.382);
  --accent: oklch(0.72 0.043 34.362);
  --accent-foreground: oklch(0.167 0.011 34.382);
  --destructive: oklch(0.637 0.219 34.467);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.04 214.626);
  --chart-1: oklch(0.751 0.04 214.626);
  --chart-2: oklch(0.72 0.043 34.362);
  --chart-3: oklch(0.72 0.043 34.362);
  --chart-4: oklch(0.745 0.039 34.34);
  --chart-5: oklch(0.754 0.044 214.689);
}