Pink for shadcn/ui

Pink is a shadcn/ui theme built around a vivid light green primary color (#ccfac7) with muted light green accents (#e7efe7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#ccfac7) on a green-tinted background (#070e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e07black
Foreground
#061004black
#ffffffwhite
Card
#ffffffwhite
#070e07black
Card foreground
#061004black
#ffffffwhite
Popover
#ffffffwhite
#070e07black
Popover foreground
#061004black
#ffffffwhite
Primary
#ccfac7gainsboro
#ccfac7gainsboro
Primary foreground
#072603black
#072603black
Secondary
#e7efe7beige
#293a27darkslategray
Secondary foreground
#1a2518black
#c1d4bfsilver
Muted
#d8e5d6gainsboro
#1b291ablack
Muted foreground
#3c453bdarkslategray
#bbc4basilver
Accent
#e7efe7beige
#293a27darkslategray
Accent foreground
#1a2518black
#c1d4bfsilver
Destructive
#a51d09firebrick
#f5563dtomato
Destructive foreground
#fde6e2mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccfac7gainsboro
#ccfac7gainsboro

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button14.03:1AAA
Secondary button13.51:1AAA
Muted text7.66:1AAA
Accent13.51:1AAA
Destructive6.33:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button14.03:1AAA
Secondary button7.76:1AAA
Muted text8.52:1AAA
Accent7.76:1AAA
Destructive6.26: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.158 0.031 141.069);
  --muted: oklch(0.909 0.025 142.514);
  --muted-foreground: oklch(0.378 0.021 142.401);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.031 141.069);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.158 0.031 141.069);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.94 0.083 142.262);
  --primary-foreground: oklch(0.235 0.07 141.107);
  --secondary: oklch(0.943 0.013 142.569);
  --secondary-foreground: oklch(0.249 0.028 142.172);
  --accent: oklch(0.943 0.013 142.569);
  --accent-foreground: oklch(0.249 0.028 142.172);
  --destructive: oklch(0.467 0.173 31.418);
  --destructive-foreground: oklch(0.942 0.027 28.101);
  --ring: oklch(0.94 0.083 142.262);
  --chart-1: oklch(0.94 0.083 142.262);
  --chart-2: oklch(0.943 0.013 142.569);
  --chart-3: oklch(0.943 0.013 142.569);
  --chart-4: oklch(0.965 0.008 142.592);
  --chart-5: oklch(0.941 0.086 142.25);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.018 141.713);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.034 142.101);
  --muted-foreground: oklch(0.811 0.017 142.54);
  --popover: oklch(0.152 0.018 141.713);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.018 141.713);
  --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.94 0.083 142.262);
  --primary-foreground: oklch(0.235 0.07 141.107);
  --secondary: oklch(0.328 0.04 142.119);
  --secondary-foreground: oklch(0.85 0.036 142.454);
  --accent: oklch(0.328 0.04 142.119);
  --accent-foreground: oklch(0.85 0.036 142.454);
  --destructive: oklch(0.664 0.199 31.431);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.94 0.083 142.262);
  --chart-1: oklch(0.94 0.083 142.262);
  --chart-2: oklch(0.328 0.04 142.119);
  --chart-3: oklch(0.328 0.04 142.119);
  --chart-4: oklch(0.36 0.046 142.105);
  --chart-5: oklch(0.941 0.086 142.25);
}