Pungent for shadcn/ui

Pungent is a shadcn/ui theme built around a muted deep yellow primary color (#323229) with muted deep green accents (#2e3229). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted deep yellow primary (#323229) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#fefefbwhite
#070703black
Foreground
#090901black
#fdfdfbsnow
Card
#fdfcf7snow
#0b0a05black
Card foreground
#050401black
#ffffffwhite
Popover
#fdfcf7snow
#0b0a05black
Popover foreground
#050401black
#ffffffwhite
Primary
#323229darkslategray
#323229darkslategray
Primary foreground
#cdccc1silver
#cdccc1silver
Secondary
#322e29darkslategray
#322e29darkslategray
Secondary foreground
#cdc7c1silver
#cdc7c1silver
Muted
#e1dbd6gainsboro
#29231eblack
Muted foreground
#59544fdimgray
#b0aba6darkgray
Accent
#2e3229darkslategray
#2e3229darkslategray
Accent foreground
#c7cdc1silver
#c7cdc1silver
Destructive
#8c290dsaddlebrown
#db3f14orangered
Destructive foreground
#fbdad0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#323229darkslategray
#323229darkslategray

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.99:1AAA
Primary button7.97:1AAA
Secondary button8.06:1AAA
Muted text5.45:1AA
Accent8.01:1AAA
Destructive6.59:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.79:1AAA
Primary button7.97:1AAA
Secondary button8.06:1AAA
Muted text6.78:1AA
Accent8.01:1AAA
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.003 104.868);
  --foreground: oklch(0.135 0.024 108.001);
  --muted: oklch(0.895 0.01 63.949);
  --muted-foreground: oklch(0.449 0.01 63.792);
  --popover: oklch(0.991 0.007 104.929);
  --popover-foreground: oklch(0.107 0.019 108.001);
  --card: oklch(0.991 0.007 104.929);
  --card-foreground: oklch(0.107 0.019 108.001);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.315 0.015 105.622);
  --primary-foreground: oklch(0.843 0.015 105.112);
  --secondary: oklch(0.303 0.01 63.639);
  --secondary-foreground: oklch(0.832 0.01 63.939);
  --accent: oklch(0.312 0.017 127.8);
  --accent-foreground: oklch(0.84 0.016 127.353);
  --destructive: oklch(0.431 0.139 35.253);
  --destructive-foreground: oklch(0.912 0.039 35.944);
  --ring: oklch(0.315 0.015 105.622);
  --chart-1: oklch(0.315 0.015 105.622);
  --chart-2: oklch(0.303 0.01 63.639);
  --chart-3: oklch(0.312 0.017 127.8);
  --chart-4: oklch(0.334 0.012 63.623);
  --chart-5: oklch(0.32 0.02 105.828);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.012 106.695);
  --foreground: oklch(0.995 0.003 104.854);
  --muted: oklch(0.262 0.013 63.394);
  --muted-foreground: oklch(0.743 0.009 63.933);
  --popover: oklch(0.145 0.014 106.656);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.145 0.014 106.656);
  --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.315 0.015 105.622);
  --primary-foreground: oklch(0.843 0.015 105.112);
  --secondary: oklch(0.303 0.01 63.639);
  --secondary-foreground: oklch(0.832 0.01 63.939);
  --accent: oklch(0.312 0.017 127.8);
  --accent-foreground: oklch(0.84 0.016 127.353);
  --destructive: oklch(0.595 0.199 34.861);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.315 0.015 105.622);
  --chart-1: oklch(0.315 0.015 105.622);
  --chart-2: oklch(0.303 0.01 63.639);
  --chart-3: oklch(0.312 0.017 127.8);
  --chart-4: oklch(0.334 0.012 63.623);
  --chart-5: oklch(0.32 0.02 105.828);
}