Pigpen for shadcn/ui

Pigpen is a shadcn/ui theme built around a violet primary color (#b08eeb) with green accents (#c9eb8e). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the violet primary (#b08eeb) on a neutral background (#040208).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#040208black
Foreground
#040109black
#fcfcfdwhite
Card
#f9f7fdghostwhite
#040208black
Card foreground
#040109black
#fcfcfdwhite
Popover
#f9f7fdghostwhite
#040208black
Popover foreground
#040109black
#fcfcfdwhite
Primary
#b08eebmediumpurple
#b08eebmediumpurple
Primary foreground
#1d0b3dmidnightblue
#1d0b3dmidnightblue
Secondary
#c9eb8ekhaki
#c9eb8ekhaki
Secondary foreground
#2a3d0bdarkgreen
#2a3d0bdarkgreen
Muted
#dce4cdgainsboro
#29321bdarkslategray
Muted foreground
#666e59dimgray
#9ea691darkgray
Accent
#c9eb8ekhaki
#c9eb8ekhaki
Accent foreground
#2a3d0bdarkgreen
#2a3d0bdarkgreen
Destructive
#d01b06firebrick
#df1c07red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b08eebmediumpurple
#b08eebmediumpurple

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button6.80:1AA
Secondary button8.90:1AAA
Muted text4.07:1AA Large
Accent8.90:1AAA
Destructive5.48:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button6.80:1AA
Secondary button8.90:1AAA
Muted text5.32:1AA
Accent8.90:1AAA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 302.798);
  --foreground: oklch(0.095 0.029 304.098);
  --muted: oklch(0.907 0.032 123.471);
  --muted-foreground: oklch(0.526 0.035 123.956);
  --popover: oklch(0.979 0.008 302.798);
  --popover-foreground: oklch(0.095 0.029 304.098);
  --card: oklch(0.979 0.008 302.798);
  --card-foreground: oklch(0.095 0.029 304.098);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.715 0.136 299.875);
  --primary-foreground: oklch(0.213 0.089 294.234);
  --secondary: oklch(0.895 0.124 125.249);
  --secondary-foreground: oklch(0.331 0.076 127.772);
  --accent: oklch(0.895 0.124 125.249);
  --accent-foreground: oklch(0.331 0.076 127.772);
  --destructive: oklch(0.547 0.213 30.391);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.136 299.875);
  --chart-1: oklch(0.715 0.136 299.875);
  --chart-2: oklch(0.895 0.124 125.249);
  --chart-3: oklch(0.895 0.124 125.249);
  --chart-4: oklch(0.906 0.111 124.928);
  --chart-5: oklch(0.712 0.141 299.716);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.02 303.691);
  --foreground: oklch(0.991 0.003 302.89);
  --muted: oklch(0.301 0.04 125.16);
  --muted-foreground: oklch(0.714 0.032 123.627);
  --popover: oklch(0.101 0.02 303.691);
  --popover-foreground: oklch(0.991 0.003 302.89);
  --card: oklch(0.101 0.02 303.691);
  --card-foreground: oklch(0.991 0.003 302.89);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.715 0.136 299.875);
  --primary-foreground: oklch(0.213 0.089 294.234);
  --secondary: oklch(0.895 0.124 125.249);
  --secondary-foreground: oklch(0.331 0.076 127.772);
  --accent: oklch(0.895 0.124 125.249);
  --accent-foreground: oklch(0.331 0.076 127.772);
  --destructive: oklch(0.575 0.224 30.359);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.136 299.875);
  --chart-1: oklch(0.715 0.136 299.875);
  --chart-2: oklch(0.895 0.124 125.249);
  --chart-3: oklch(0.895 0.124 125.249);
  --chart-4: oklch(0.906 0.111 124.928);
  --chart-5: oklch(0.712 0.141 299.716);
}