pink for shadcn/ui

pink is a shadcn/ui theme built around a pink primary color (#df5893) with teal accents (#58dfa5). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#df5893) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#100409black
#ffffffwhite
Card
#ffffffwhite
#030202black
Card foreground
#100409black
#ffffffwhite
Popover
#ffffffwhite
#030202black
Popover foreground
#100409black
#ffffffwhite
Primary
#df5893palevioletred
#df5893palevioletred
Primary foreground
#000000black
#000000black
Secondary
#58dfa5mediumaquamarine
#58dfa5mediumaquamarine
Secondary foreground
#010403black
#010403black
Muted
#e7f4eehoneydew
#0b1813black
Muted foreground
#404f48darkslategray
#b0bfb9silver
Accent
#58dfa5mediumaquamarine
#58dfa5mediumaquamarine
Accent foreground
#010403black
#010403black
Destructive
#d84a03orangered
#fb6418orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#df5893palevioletred
#df5893palevioletred

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button5.95:1AA
Secondary button12.28:1AAA
Muted text7.61:1AAA
Accent12.28:1AAA
Destructive4.28:1AA Large
Dark mode
Text on background20.73:1AAA
Text on card20.73:1AAA
Primary button5.95:1AA
Secondary button12.28:1AAA
Muted text9.50:1AAA
Accent12.28:1AAA
Destructive6.94:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.029 350.51);
  --muted: oklch(0.955 0.015 168.274);
  --muted-foreground: oklch(0.413 0.023 167.085);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.029 350.51);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.134 0.029 350.51);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.651 0.178 356.247);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.815 0.146 161.665);
  --secondary-foreground: oklch(0.1 0.015 169.021);
  --accent: oklch(0.815 0.146 161.665);
  --accent-foreground: oklch(0.1 0.015 169.021);
  --destructive: oklch(0.6 0.189 39.586);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.651 0.178 356.247);
  --chart-1: oklch(0.651 0.178 356.247);
  --chart-2: oklch(0.815 0.146 161.665);
  --chart-3: oklch(0.815 0.146 161.665);
  --chart-4: oklch(0.826 0.137 162.47);
  --chart-5: oklch(0.652 0.184 356.612);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.01 348.531);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.022 165.126);
  --muted-foreground: oklch(0.792 0.02 168.021);
  --popover: oklch(0.087 0.01 348.531);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.01 348.531);
  --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.651 0.178 356.247);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.815 0.146 161.665);
  --secondary-foreground: oklch(0.1 0.015 169.021);
  --accent: oklch(0.815 0.146 161.665);
  --accent-foreground: oklch(0.1 0.015 169.021);
  --destructive: oklch(0.688 0.2 41.674);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.651 0.178 356.247);
  --chart-1: oklch(0.651 0.178 356.247);
  --chart-2: oklch(0.815 0.146 161.665);
  --chart-3: oklch(0.815 0.146 161.665);
  --chart-4: oklch(0.826 0.137 162.47);
  --chart-5: oklch(0.652 0.184 356.612);
}