Pink for shadcn/ui

Pink is a shadcn/ui theme built around a muted deep green primary color (#394530) with muted deep pink accents (#453039). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#394530) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#ffffffwhite
#050802black
Foreground
#091103black
#f7f9f6whitesmoke
Card
#fcfcfcsnow
#070c04black
Card foreground
#070d02black
#fafbf9snow
Popover
#fcfcfcsnow
#070c04black
Popover foreground
#070d02black
#fafbf9snow
Primary
#394530darkslategray
#394530darkslategray
Primary foreground
#d2dbcclightgrey
#d2dbcclightgrey
Secondary
#303945darkslategray
#303945darkslategray
Secondary foreground
#ccd2dblightgrey
#ccd2dblightgrey
Muted
#edeff2whitesmoke
#0d0f12black
Muted foreground
#3b3f44darkslategray
#bbbec4silver
Accent
#453039darkslategray
#453039darkslategray
Accent foreground
#dbccd2lightgrey
#dbccd2lightgrey
Destructive
#af4912sienna
#d95b17chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#394530darkslategray
#394530darkslategray

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.24:1AAA
Primary button7.12:1AAA
Secondary button7.71:1AAA
Muted text9.21:1AAA
Accent7.81:1AAA
Destructive5.52:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button7.12:1AAA
Secondary button7.71:1AAA
Muted text10.32:1AAA
Accent7.81:1AAA
Destructive3.85:1AA Large

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.165 0.034 131.944);
  --muted: oklch(0.952 0.005 258.325);
  --muted-foreground: oklch(0.366 0.01 258.364);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.147 0.029 130.919);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.147 0.029 130.919);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.373 0.039 133.202);
  --primary-foreground: oklch(0.881 0.023 132.56);
  --secondary: oklch(0.34 0.025 258.362);
  --secondary-foreground: oklch(0.862 0.015 258.35);
  --accent: oklch(0.337 0.033 353.278);
  --accent-foreground: oklch(0.859 0.019 351.248);
  --destructive: oklch(0.534 0.147 43.736);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.373 0.039 133.202);
  --chart-1: oklch(0.373 0.039 133.202);
  --chart-2: oklch(0.34 0.025 258.362);
  --chart-3: oklch(0.337 0.033 353.278);
  --chart-4: oklch(0.368 0.028 258.36);
  --chart-5: oklch(0.377 0.045 133.346);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.02 130.962);
  --foreground: oklch(0.98 0.004 132.392);
  --muted: oklch(0.167 0.007 258.372);
  --muted-foreground: oklch(0.801 0.009 258.338);
  --popover: oklch(0.144 0.023 131.106);
  --popover-foreground: oklch(0.986 0.003 132.381);
  --card: oklch(0.144 0.023 131.106);
  --card-foreground: oklch(0.986 0.003 132.381);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.373 0.039 133.202);
  --primary-foreground: oklch(0.881 0.023 132.56);
  --secondary: oklch(0.34 0.025 258.362);
  --secondary-foreground: oklch(0.862 0.015 258.35);
  --accent: oklch(0.337 0.033 353.278);
  --accent-foreground: oklch(0.859 0.019 351.248);
  --destructive: oklch(0.623 0.174 43.394);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.373 0.039 133.202);
  --chart-1: oklch(0.373 0.039 133.202);
  --chart-2: oklch(0.34 0.025 258.362);
  --chart-3: oklch(0.337 0.033 353.278);
  --chart-4: oklch(0.368 0.028 258.36);
  --chart-5: oklch(0.377 0.045 133.346);
}