Panpipe for shadcn/ui

Panpipe is a shadcn/ui theme built around a deep yellow primary color (#47411f) with neutral gray accents (#e5e4e1). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep yellow primary (#47411f) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fefefbwhite
#040401black
Foreground
#080702black
#fbfaf9snow
Card
#fdfcf7snow
#080702black
Card foreground
#040401black
#fdfdfcwhite
Popover
#fefefbwhite
#040401black
Popover foreground
#080702black
#fbfaf9snow
Primary
#47411fdarkolivegreen
#47411fdarkolivegreen
Primary foreground
#e0dab8wheat
#e0dab8wheat
Secondary
#e5e4e1gainsboro
#1f1e19black
Secondary foreground
#4e4d46darkslategray
#bebbacsilver
Muted
#efeeeclinen
#131310black
Muted foreground
#6b6857dimgray
#a8a594darkgray
Accent
#e5e4e1gainsboro
#1f1e19black
Accent foreground
#4e4d46darkslategray
#bebbacsilver
Destructive
#903004saddlebrown
#fa6b29tomato
Destructive foreground
#fed9c8bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#47411fdarkolivegreen
#47411fdarkolivegreen

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card20.00:1AAA
Primary button7.29:1AAA
Secondary button6.67:1AA
Muted text4.83:1AA
Accent6.67:1AA
Destructive6.10:1AA
Dark mode
Text on background19.73:1AAA
Text on card19.80:1AAA
Primary button7.29:1AAA
Secondary button8.62:1AAA
Muted text7.51:1AAA
Accent8.62:1AAA
Destructive7.18:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 98.369);
  --foreground: oklch(0.128 0.017 102.223);
  --muted: oklch(0.949 0.003 98.366);
  --muted-foreground: oklch(0.514 0.025 98.949);
  --popover: oklch(0.995 0.004 98.369);
  --popover-foreground: oklch(0.128 0.017 102.223);
  --card: oklch(0.991 0.007 98.421);
  --card-foreground: oklch(0.102 0.014 102.223);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.372 0.052 99.501);
  --primary-foreground: oklch(0.884 0.045 98.971);
  --secondary: oklch(0.919 0.004 98.377);
  --secondary-foreground: oklch(0.419 0.012 98.713);
  --accent: oklch(0.919 0.004 98.377);
  --accent-foreground: oklch(0.419 0.012 98.713);
  --destructive: oklch(0.447 0.138 39.829);
  --destructive-foreground: oklch(0.912 0.047 46.348);
  --ring: oklch(0.372 0.052 99.501);
  --chart-1: oklch(0.372 0.052 99.501);
  --chart-2: oklch(0.919 0.004 98.377);
  --chart-3: oklch(0.919 0.004 98.377);
  --chart-4: oklch(0.941 0.003 98.36);
  --chart-5: oklch(0.377 0.055 99.482);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.012 101.904);
  --foreground: oklch(0.986 0.002 98.344);
  --muted: oklch(0.186 0.005 98.673);
  --muted-foreground: oklch(0.719 0.023 98.753);
  --popover: oklch(0.101 0.012 101.904);
  --popover-foreground: oklch(0.986 0.002 98.344);
  --card: oklch(0.127 0.016 101.904);
  --card-foreground: oklch(0.993 0.001 98.331);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.372 0.052 99.501);
  --primary-foreground: oklch(0.884 0.045 98.971);
  --secondary: oklch(0.236 0.011 98.905);
  --secondary-foreground: oklch(0.791 0.021 98.678);
  --accent: oklch(0.236 0.011 98.905);
  --accent-foreground: oklch(0.791 0.021 98.678);
  --destructive: oklch(0.696 0.19 42.121);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.372 0.052 99.501);
  --chart-1: oklch(0.372 0.052 99.501);
  --chart-2: oklch(0.236 0.011 98.905);
  --chart-3: oklch(0.236 0.011 98.905);
  --chart-4: oklch(0.27 0.013 98.942);
  --chart-5: oklch(0.377 0.055 99.482);
}