Pungent for shadcn/ui

Pungent is a shadcn/ui theme built around a neutral gray primary color (#746d70) with neutral gray accents (#6d7074). The light mode uses a neutral background (#fefbfc). Dark mode keeps the neutral gray primary (#746d70) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fefbfcsnow
#040102black
Foreground
#000000black
#fdfcfcsnow
Card
#fefbfcsnow
#040102black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fefbfcsnow
#040102black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#746d70dimgray
#746d70dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#70746ddimgray
#70746ddimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8ebe6linen
#171914black
Muted foreground
#5e605cdimgray
#a0a39fdarkgray
Accent
#6d7074dimgray
#6d7074dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9a2a0ebrown
#ea481forangered
Destructive foreground
#fce4demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#746d70dimgray
#746d70dimgray

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.44:1AAA
Primary button5.05:1AA
Secondary button4.78:1AA
Muted text5.26:1AA
Accent4.98:1AA
Destructive6.36:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button5.05:1AA
Secondary button4.78:1AA
Muted text6.92:1AA
Accent4.98:1AA
Destructive3.85: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.991 0.003 347.888);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.935 0.007 130.512);
  --muted-foreground: oklch(0.487 0.006 130.563);
  --popover: oklch(0.991 0.003 347.888);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 347.888);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.541 0.01 348.289);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.552 0.011 130.629);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.007 253.303);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.458 0.152 34.353);
  --destructive-foreground: oklch(0.937 0.027 34.301);
  --ring: oklch(0.541 0.01 348.289);
  --chart-1: oklch(0.541 0.01 348.289);
  --chart-2: oklch(0.552 0.011 130.629);
  --chart-3: oklch(0.543 0.007 253.303);
  --chart-4: oklch(0.579 0.012 130.63);
  --chart-5: oklch(0.537 0.019 348.766);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.014 347.537);
  --foreground: oklch(0.992 0.002 347.858);
  --muted: oklch(0.211 0.011 130.922);
  --muted-foreground: oklch(0.711 0.006 130.516);
  --popover: oklch(0.085 0.014 347.537);
  --popover-foreground: oklch(0.992 0.002 347.858);
  --card: oklch(0.085 0.014 347.537);
  --card-foreground: oklch(0.992 0.002 347.858);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.541 0.01 348.289);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.552 0.011 130.629);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.007 253.303);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.629 0.205 34.491);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.541 0.01 348.289);
  --chart-1: oklch(0.541 0.01 348.289);
  --chart-2: oklch(0.552 0.011 130.629);
  --chart-3: oklch(0.543 0.007 253.303);
  --chart-4: oklch(0.579 0.012 130.63);
  --chart-5: oklch(0.537 0.019 348.766);
}