Pigpen for shadcn/ui

Pigpen is a shadcn/ui theme built around a muted pink primary color (#5a3f51) with muted light pink accents (#e0d6dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#5a3f51) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0508black
Foreground
#000000black
#fbf9fasnow
Card
#ffffffwhite
#0a0508black
Card foreground
#000000black
#fbf9fasnow
Popover
#ffffffwhite
#0a0508black
Popover foreground
#000000black
#fbf9fasnow
Primary
#5a3f51darkslategray
#5a3f51darkslategray
Primary foreground
#eae1e7gainsboro
#eae1e7gainsboro
Secondary
#e0d6ddgainsboro
#201d1fblack
Secondary foreground
#4c3945darkslategray
#bbb4b9silver
Muted
#f2e3edlinen
#1c0d17black
Muted foreground
#4d3d48darkslategray
#c2b2bdsilver
Accent
#e0d6ddgainsboro
#201d1fblack
Accent foreground
#4c3945darkslategray
#bbb4b9silver
Destructive
#9f3b09saddlebrown
#e7560dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5a3f51darkslategray
#5a3f51darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.23:1AAA
Secondary button7.51:1AAA
Muted text8.18:1AAA
Accent7.51:1AAA
Destructive6.75:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.27:1AAA
Primary button7.23:1AAA
Secondary button8.21:1AAA
Muted text9.29:1AAA
Accent8.21:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.931 0.021 337.716);
  --muted-foreground: oklch(0.38 0.029 338.732);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.405 0.045 339.366);
  --primary-foreground: oklch(0.919 0.012 337.53);
  --secondary: oklch(0.887 0.014 337.583);
  --secondary-foreground: oklch(0.37 0.033 338.962);
  --accent: oklch(0.887 0.014 337.583);
  --accent-foreground: oklch(0.37 0.033 338.962);
  --destructive: oklch(0.487 0.143 41.428);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.405 0.045 339.366);
  --chart-1: oklch(0.405 0.045 339.366);
  --chart-2: oklch(0.887 0.014 337.583);
  --chart-3: oklch(0.887 0.014 337.583);
  --chart-4: oklch(0.911 0.011 337.507);
  --chart-5: oklch(0.403 0.053 339.728);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.013 337.478);
  --foreground: oklch(0.984 0.002 337.314);
  --muted: oklch(0.185 0.031 340.436);
  --muted-foreground: oklch(0.78 0.024 337.877);
  --popover: oklch(0.127 0.013 337.478);
  --popover-foreground: oklch(0.984 0.002 337.314);
  --card: oklch(0.127 0.013 337.478);
  --card-foreground: oklch(0.984 0.002 337.314);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.405 0.045 339.366);
  --primary-foreground: oklch(0.919 0.012 337.53);
  --secondary: oklch(0.235 0.006 337.774);
  --secondary-foreground: oklch(0.777 0.01 337.533);
  --accent: oklch(0.235 0.006 337.774);
  --accent-foreground: oklch(0.777 0.01 337.533);
  --destructive: oklch(0.64 0.193 40.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.405 0.045 339.366);
  --chart-1: oklch(0.405 0.045 339.366);
  --chart-2: oklch(0.235 0.006 337.774);
  --chart-3: oklch(0.235 0.006 337.774);
  --chart-4: oklch(0.267 0.007 337.808);
  --chart-5: oklch(0.403 0.053 339.728);
}