Pungent for shadcn/ui

Pungent is a shadcn/ui theme built around a muted deep teal primary color (#121717) with muted deep blue accents (#121417). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the muted deep teal primary (#121717) on a neutral background (#030808).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#030808black
Foreground
#000000black
#f6f8f8whitesmoke
Card
#f3fbfbmintcream
#040b0bblack
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#f7fcfdghostwhite
#030808black
Popover foreground
#000000black
#f6f8f8whitesmoke
Primary
#121717black
#121717black
Primary foreground
#a4b7b7darkgray
#a4b7b7darkgray
Secondary
#121714black
#121714black
Secondary foreground
#a4b7aedarkgray
#a4b7aedarkgray
Muted
#daece3gainsboro
#13251cblack
Muted foreground
#5b625edimgray
#9da4a1darkgray
Accent
#121417black
#121417black
Accent foreground
#a4adb7darkgray
#a4adb7darkgray
Destructive
#bc1515firebrick
#cf1717firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#121717black
#121717black

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.04:1AAA
Primary button8.66:1AAA
Secondary button8.60:1AAA
Muted text5.10:1AA
Accent8.10:1AAA
Destructive6.44:1AA
Dark mode
Text on background18.95:1AAA
Text on card19.08:1AAA
Primary button8.66:1AAA
Secondary button8.60:1AAA
Muted text6.29:1AA
Accent8.10:1AAA
Destructive5.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 198.278);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.927 0.023 165.34);
  --muted-foreground: oklch(0.489 0.011 165.403);
  --popover: oklch(0.989 0.006 198.278);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.008 198.236);
  --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.199 0.007 197.829);
  --primary-foreground: oklch(0.764 0.021 197.957);
  --secondary: oklch(0.198 0.009 164.762);
  --secondary-foreground: oklch(0.762 0.025 165.096);
  --accent: oklch(0.191 0.006 249.946);
  --accent-foreground: oklch(0.744 0.018 249.87);
  --destructive: oklch(0.507 0.197 28.118);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.199 0.007 197.829);
  --chart-1: oklch(0.199 0.007 197.829);
  --chart-2: oklch(0.198 0.009 164.762);
  --chart-3: oklch(0.191 0.006 249.946);
  --chart-4: oklch(0.233 0.012 164.605);
  --chart-5: oklch(0.2 0.009 197.716);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.012 196.769);
  --foreground: oklch(0.979 0.002 198.33);
  --muted: oklch(0.246 0.03 162.135);
  --muted-foreground: oklch(0.713 0.01 165.636);
  --popover: oklch(0.124 0.012 196.769);
  --popover-foreground: oklch(0.979 0.002 198.33);
  --card: oklch(0.142 0.014 196.84);
  --card-foreground: oklch(0.986 0.001 198.341);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.199 0.007 197.829);
  --primary-foreground: oklch(0.764 0.021 197.957);
  --secondary: oklch(0.198 0.009 164.762);
  --secondary-foreground: oklch(0.762 0.025 165.096);
  --accent: oklch(0.191 0.006 249.946);
  --accent-foreground: oklch(0.744 0.018 249.87);
  --destructive: oklch(0.543 0.212 28.19);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.199 0.007 197.829);
  --chart-1: oklch(0.199 0.007 197.829);
  --chart-2: oklch(0.198 0.009 164.762);
  --chart-3: oklch(0.191 0.006 249.946);
  --chart-4: oklch(0.233 0.012 164.605);
  --chart-5: oklch(0.2 0.009 197.716);
}