Pence for shadcn/ui

Pence is a shadcn/ui theme built around a deep pink primary color (#2a0915) with deep blue accents (#09152a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#2a0915) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080204black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#040102black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#080204black
#ffffffwhite
Primary
#2a0915black
#2a0915black
Primary foreground
#e481a5palevioletred
#e481a5palevioletred
Secondary
#152a09black
#152a09black
Secondary foreground
#69d22dyellowgreen
#69d22dyellowgreen
Muted
#e3e4e2gainsboro
#1c1d1bblack
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#09152ablack
#09152ablack
Accent foreground
#81a5e4cornflowerblue
#81a5e4cornflowerblue
Destructive
#e01c06red
#f9230borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a0915black
#2a0915black

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.33:1AAA
Primary button6.95:1AA
Secondary button7.93:1AAA
Muted text7.29:1AAA
Accent7.31:1AAA
Destructive4.85:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.95:1AA
Secondary button7.93:1AAA
Muted text8.50:1AAA
Accent7.31:1AAA
Destructive3.98: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.105 0.021 352.149);
  --muted: oklch(0.918 0.004 133.634);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.021 352.149);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.083 0.017 352.149);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.202 0.057 0.831);
  --primary-foreground: oklch(0.721 0.129 357.433);
  --secondary: oklch(0.259 0.061 135.88);
  --secondary-foreground: oklch(0.772 0.217 137.019);
  --accent: oklch(0.198 0.046 260.577);
  --accent-foreground: oklch(0.721 0.101 261.023);
  --destructive: oklch(0.577 0.226 30.347);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.202 0.057 0.831);
  --chart-1: oklch(0.202 0.057 0.831);
  --chart-2: oklch(0.259 0.061 135.88);
  --chart-3: oklch(0.198 0.046 260.577);
  --chart-4: oklch(0.303 0.076 136.138);
  --chart-5: oklch(0.203 0.059 1.218);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.006 133.769);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.202 0.057 0.831);
  --primary-foreground: oklch(0.721 0.129 357.433);
  --secondary: oklch(0.259 0.061 135.88);
  --secondary-foreground: oklch(0.772 0.217 137.019);
  --accent: oklch(0.198 0.046 260.577);
  --accent-foreground: oklch(0.721 0.101 261.023);
  --destructive: oklch(0.626 0.243 30.381);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.202 0.057 0.831);
  --chart-1: oklch(0.202 0.057 0.831);
  --chart-2: oklch(0.259 0.061 135.88);
  --chart-3: oklch(0.198 0.046 260.577);
  --chart-4: oklch(0.303 0.076 136.138);
  --chart-5: oklch(0.203 0.059 1.218);
}