Porcupine for shadcn/ui

Porcupine is a shadcn/ui theme built around a light red primary color (#f7dfde) with muted light red accents (#e9e2e2). The light mode uses a neutral background (#fbf8f8). Dark mode keeps the light red primary (#f7dfde) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8f8snow
#000000black
Foreground
#170303black
#fdfcfcsnow
Card
#fbf8f8snow
#000000black
Card foreground
#170303black
#fdfcfcsnow
Popover
#fbf8f8snow
#000000black
Popover foreground
#170303black
#fdfcfcsnow
Primary
#f7dfdemistyrose
#f7dfdemistyrose
Primary foreground
#832221brown
#832221brown
Secondary
#e9e2e2gainsboro
#251d1dblack
Secondary foreground
#584141darkslategray
#c2b2b2silver
Muted
#f0e5e5linen
#1a0f0fblack
Muted foreground
#6c5756dimgray
#a99493rosybrown
Accent
#e9e2e2gainsboro
#251d1dblack
Accent foreground
#584141darkslategray
#c2b2b2silver
Destructive
#d04a11chocolate
#f07642coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7dfdemistyrose
#f7dfdemistyrose

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button7.46:1AAA
Secondary button7.30:1AAA
Muted text5.44:1AA
Accent7.30:1AAA
Destructive4.50:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.46:1AAA
Secondary button8.07:1AAA
Muted text6.56:1AA
Accent8.07:1AAA
Destructive7.38:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 18.412);
  --foreground: oklch(0.141 0.041 25.744);
  --muted: oklch(0.931 0.012 18.557);
  --muted-foreground: oklch(0.476 0.028 19.314);
  --popover: oklch(0.983 0.003 18.412);
  --popover-foreground: oklch(0.141 0.041 25.744);
  --card: oklch(0.983 0.003 18.412);
  --card-foreground: oklch(0.141 0.041 25.744);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.922 0.027 18.815);
  --primary-foreground: oklch(0.408 0.131 25.966);
  --secondary: oklch(0.918 0.008 18.499);
  --secondary-foreground: oklch(0.401 0.032 19.678);
  --accent: oklch(0.918 0.008 18.499);
  --accent-foreground: oklch(0.401 0.032 19.678);
  --destructive: oklch(0.587 0.179 39.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.027 18.815);
  --chart-1: oklch(0.922 0.027 18.815);
  --chart-2: oklch(0.918 0.008 18.499);
  --chart-3: oklch(0.918 0.008 18.499);
  --chart-4: oklch(0.943 0.006 18.454);
  --chart-5: oklch(0.922 0.028 18.84);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 18.371);
  --muted: oklch(0.184 0.019 20.105);
  --muted-foreground: oklch(0.684 0.025 18.944);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 18.371);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 18.371);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.922 0.027 18.815);
  --primary-foreground: oklch(0.408 0.131 25.966);
  --secondary: oklch(0.241 0.012 19.183);
  --secondary-foreground: oklch(0.778 0.019 18.737);
  --accent: oklch(0.241 0.012 19.183);
  --accent-foreground: oklch(0.778 0.019 18.737);
  --destructive: oklch(0.7 0.164 42.499);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.922 0.027 18.815);
  --chart-1: oklch(0.922 0.027 18.815);
  --chart-2: oklch(0.241 0.012 19.183);
  --chart-3: oklch(0.241 0.012 19.183);
  --chart-4: oklch(0.272 0.015 19.238);
  --chart-5: oklch(0.922 0.028 18.84);
}