POPMAD3 for shadcn/ui

POPMAD3 is a shadcn/ui theme built around a muted green primary color (#b8c4b0) with neutral gray accents (#cdc6c6). The light mode uses an orange-tinted background (#f5e4d6). Dark mode switches to a vivid teal primary (#0ecdc4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f5e4d6antiquewhite
#000000black
Foreground
#281914black
#f6f9f9whitesmoke
Card
#fff8e6oldlace
#030303black
Card foreground
#281914black
#f9fbfbghostwhite
Popover
#f7fdfdmintcream
#030303black
Popover foreground
#4b3832darkslategray
#f9fbfbghostwhite
Primary
#b8c4b0silver
#0ecdc4darkturquoise
Primary foreground
#010e0eblack
#010e0eblack
Secondary
#dbdbdbgainsboro
#263130darkslategray
Secondary foreground
#424242darkslategray
#bdcbcbsilver
Muted
#d0cacalightgrey
#192928darkslategray
Muted foreground
#4c4242darkslategray
#b3bdbcsilver
Accent
#cdc6c6silver
#35504edarkslategray
Accent foreground
#342d2ddarkslategray
#d4e2e2gainsboro
Destructive
#681008maroon
#ed3726orangered
Destructive foreground
#f8b1aalightpink
#ffffffwhite
Border
#e5e6e6gainsboro
#252727darkslategray
Input
#e5e6e6gainsboro
#252727darkslategray
Ring
#b8c4b0silver
#0ecdc4darkturquoise

Contrast

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

Light mode
Text on background13.67:1AAA
Text on card15.99:1AAA
Primary button10.79:1AAA
Secondary button7.27:1AAA
Muted text5.99:1AA
Accent7.99:1AAA
Destructive7.11:1AAA
Dark mode
Text on background19.83:1AAA
Text on card19.91:1AAA
Primary button9.85:1AAA
Secondary button8.06:1AAA
Muted text7.84:1AAA
Accent6.58:1AA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.929 0.026 62.001);
  --foreground: oklch(0.231 0.026 39.208);
  --muted: oklch(0.844 0.007 17.289);
  --muted-foreground: oklch(0.391 0.014 17.755);
  --popover: oklch(0.989 0.006 193.478);
  --popover-foreground: oklch(0.36 0.029 38.247);
  --card: oklch(0.98 0.025 89.209);
  --card-foreground: oklch(0.231 0.026 39.208);
  --border: oklch(0.924 0.001 193.584);
  --input: oklch(0.924 0.001 193.584);
  --primary: oklch(0.805 0.031 132.649);
  --primary-foreground: oklch(0.149 0.023 194.97);
  --secondary: oklch(0.892 0 180);
  --secondary-foreground: oklch(0.38 0 180);
  --accent: oklch(0.832 0.008 17.325);
  --accent-foreground: oklch(0.305 0.01 17.708);
  --destructive: oklch(0.336 0.122 29.959);
  --destructive-foreground: oklch(0.825 0.085 24.882);
  --ring: oklch(0.805 0.031 132.649);
  --chart-1: oklch(0.805 0.031 132.649);
  --chart-2: oklch(0.892 0 180);
  --chart-3: oklch(0.832 0.008 17.325);
  --chart-4: oklch(0.916 0 180);
  --chart-5: oklch(0.805 0.031 132.649);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.004 193.532);
  --muted: oklch(0.267 0.021 192.007);
  --muted-foreground: oklch(0.789 0.011 193.329);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.986 0.002 193.557);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.002 193.557);
  --border: oklch(0.271 0.002 193.444);
  --input: oklch(0.271 0.002 193.444);
  --primary: oklch(0.766 0.131 188.821);
  --primary-foreground: oklch(0.15 0.023 191.461);
  --secondary: oklch(0.302 0.014 192.677);
  --secondary-foreground: oklch(0.832 0.015 193.242);
  --accent: oklch(0.408 0.032 192.036);
  --accent-foreground: oklch(0.903 0.015 193.273);
  --destructive: oklch(0.62 0.22 29.838);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.131 188.821);
  --chart-1: oklch(0.766 0.131 188.821);
  --chart-2: oklch(0.302 0.014 192.677);
  --chart-3: oklch(0.408 0.032 192.036);
  --chart-4: oklch(0.334 0.016 192.645);
  --chart-5: oklch(0.775 0.133 188.718);
}