Pence for shadcn/ui

Pence is a shadcn/ui theme built around a deep pink primary color (#2b0d16) with muted light pink accents (#e6e0e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#2b0d16) on a pink-tinted background (#0b0507).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0507black
Foreground
#14050ablack
#fcf8f9snow
Card
#fcfcfcsnow
#0e0609black
Card foreground
#100408black
#fdfcfcsnow
Popover
#fcfcfcsnow
#0e0609black
Popover foreground
#100408black
#fdfcfcsnow
Primary
#2b0d16black
#2b0d16black
Primary foreground
#dd8da6palevioletred
#dd8da6palevioletred
Secondary
#e6e0e2gainsboro
#292425darkslategray
Secondary foreground
#524247darkslategray
#c3bbbesilver
Muted
#f5eaeelinen
#150a0dblack
Muted foreground
#69545bdimgray
#ab969ddarkgray
Accent
#e6e0e2gainsboro
#292425darkslategray
Accent foreground
#524247darkslategray
#c3bbbesilver
Destructive
#6f0b02maroon
#fb2613orangered
Destructive foreground
#feaca5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b0d16black
#2b0d16black

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.70:1AAA
Primary button7.19:1AAA
Secondary button7.22:1AAA
Muted text5.93:1AA
Accent7.22:1AAA
Destructive6.78:1AA
Dark mode
Text on background19.22:1AAA
Text on card19.53:1AAA
Primary button7.19:1AAA
Secondary button8.14:1AAA
Muted text7.01:1AAA
Accent8.14:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.03 359.003);
  --muted: oklch(0.948 0.012 355.98);
  --muted-foreground: oklch(0.469 0.029 357.344);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.134 0.027 357.075);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.134 0.027 357.075);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.212 0.052 2.686);
  --primary-foreground: oklch(0.732 0.101 359.419);
  --secondary: oklch(0.912 0.007 355.843);
  --secondary-foreground: oklch(0.397 0.024 357.284);
  --accent: oklch(0.912 0.007 355.843);
  --accent-foreground: oklch(0.397 0.024 357.284);
  --destructive: oklch(0.346 0.133 30.752);
  --destructive-foreground: oklch(0.821 0.097 25.131);
  --ring: oklch(0.212 0.052 2.686);
  --chart-1: oklch(0.212 0.052 2.686);
  --chart-2: oklch(0.912 0.007 355.843);
  --chart-3: oklch(0.912 0.007 355.843);
  --chart-4: oklch(0.936 0.005 355.776);
  --chart-5: oklch(0.212 0.054 3.139);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 355.435);
  --foreground: oklch(0.983 0.004 355.736);
  --muted: oklch(0.162 0.019 358.894);
  --muted-foreground: oklch(0.694 0.026 356.68);
  --popover: oklch(0.138 0.017 356.629);
  --popover-foreground: oklch(0.991 0.002 355.675);
  --card: oklch(0.138 0.017 356.629);
  --card-foreground: oklch(0.991 0.002 355.675);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.212 0.052 2.686);
  --primary-foreground: oklch(0.732 0.101 359.419);
  --secondary: oklch(0.266 0.007 356.4);
  --secondary-foreground: oklch(0.8 0.009 355.947);
  --accent: oklch(0.266 0.007 356.4);
  --accent-foreground: oklch(0.8 0.009 355.947);
  --destructive: oklch(0.633 0.244 30.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.212 0.052 2.686);
  --chart-1: oklch(0.212 0.052 2.686);
  --chart-2: oklch(0.266 0.007 356.4);
  --chart-3: oklch(0.266 0.007 356.4);
  --chart-4: oklch(0.296 0.009 356.437);
  --chart-5: oklch(0.212 0.054 3.139);
}