Pinkie for shadcn/ui

Pinkie is a shadcn/ui theme built around a green primary color (#9cd8a0) with red accents (#d8a09c). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#9cd8a0) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#ffffffwhite
#010401black
Foreground
#030d03black
#fcfdfcwhite
Card
#fcfcfcsnow
#030803black
Card foreground
#020802black
#ffffffwhite
Popover
#ffffffwhite
#010401black
Popover foreground
#030d03black
#fcfdfcwhite
Primary
#9cd8a0lightgreen
#9cd8a0lightgreen
Primary foreground
#133015black
#133015black
Secondary
#a09cd8lightsteelblue
#a09cd8lightsteelblue
Secondary foreground
#151330black
#151330black
Muted
#e8e7f4lavender
#0c0b18black
Muted foreground
#464554darkslategray
#acabbadarkgray
Accent
#d8a09ctan
#d8a09ctan
Accent foreground
#301513black
#301513black
Destructive
#5d1509maroon
#ed563btomato
Destructive foreground
#f6aea2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9cd8a0lightgreen
#9cd8a0lightgreen

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.79:1AAA
Primary button8.74:1AAA
Secondary button7.05:1AAA
Muted text7.64:1AAA
Accent7.59:1AAA
Destructive7.26:1AAA
Dark mode
Text on background20.21:1AAA
Text on card20.23:1AAA
Primary button8.74:1AAA
Secondary button7.05:1AAA
Muted text8.60:1AAA
Accent7.59:1AAA
Destructive5.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.03 145.894);
  --muted: oklch(0.932 0.017 289.128);
  --muted-foreground: oklch(0.397 0.026 288.228);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.03 145.894);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.026 145.949);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.828 0.1 146.258);
  --primary-foreground: oklch(0.277 0.06 145.042);
  --secondary: oklch(0.718 0.087 287.027);
  --secondary-foreground: oklch(0.206 0.056 283.282);
  --accent: oklch(0.758 0.068 23.433);
  --accent-foreground: oklch(0.233 0.045 25.325);
  --destructive: oklch(0.32 0.106 32.387);
  --destructive-foreground: oklch(0.817 0.087 30.221);
  --ring: oklch(0.828 0.1 146.258);
  --chart-1: oklch(0.828 0.1 146.258);
  --chart-2: oklch(0.718 0.087 287.027);
  --chart-3: oklch(0.758 0.068 23.433);
  --chart-4: oklch(0.75 0.077 287.441);
  --chart-5: oklch(0.831 0.106 146.173);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.016 146.332);
  --foreground: oklch(0.993 0.001 147.534);
  --muted: oklch(0.16 0.027 285.981);
  --muted-foreground: oklch(0.746 0.022 288.924);
  --popover: oklch(0.096 0.016 146.332);
  --popover-foreground: oklch(0.993 0.001 147.534);
  --card: oklch(0.121 0.02 146.332);
  --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.828 0.1 146.258);
  --primary-foreground: oklch(0.277 0.06 145.042);
  --secondary: oklch(0.718 0.087 287.027);
  --secondary-foreground: oklch(0.206 0.056 283.282);
  --accent: oklch(0.758 0.068 23.433);
  --accent-foreground: oklch(0.233 0.045 25.325);
  --destructive: oklch(0.651 0.191 32.29);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.828 0.1 146.258);
  --chart-1: oklch(0.828 0.1 146.258);
  --chart-2: oklch(0.718 0.087 287.027);
  --chart-3: oklch(0.758 0.068 23.433);
  --chart-4: oklch(0.75 0.077 287.441);
  --chart-5: oklch(0.831 0.106 146.173);
}