Defiant Namaste for shadcn/ui

Defiant Namaste is a shadcn/ui theme built around a muted light green primary color (#bdd7bc) with muted light green accents (#d2e0d1). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted light green primary (#bdd7bc) on a green-tinted background (#050b04).

Color palette

TokenLightDark
Background
#fbfefbwhite
#050b04black
Foreground
#010401black
#f6f8f6whitesmoke
Card
#f8fdf7mintcream
#060f06black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#f8fdf7mintcream
#060f06black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#bdd7bcsilver
#bdd7bcsilver
Primary foreground
#263d24darkslategray
#263d24darkslategray
Secondary
#e5ebe5gainsboro
#303630darkslategray
Secondary foreground
#465945darkslategray
#c9cfc9lightgrey
Muted
#f0f5efwhitesmoke
#0a100ablack
Muted foreground
#526751dimgray
#9aae98darkseagreen
Accent
#d2e0d1lightgrey
#3d4e3cdarkslategray
Accent foreground
#354c34darkslategray
#dae2dagainsboro
Destructive
#860a03darkred
#f92115red
Destructive foreground
#fdc2belightpink
#ffffffwhite
Border
#e5ebe5gainsboro
#212c21darkslategray
Input
#e5ebe5gainsboro
#212c21darkslategray
Ring
#bdd7bcsilver
#bdd7bcsilver

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.31:1AAA
Primary button7.69:1AAA
Secondary button6.25:1AA
Muted text5.57:1AA
Accent6.86:1AA
Destructive6.61:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.75:1AAA
Primary button7.69:1AAA
Secondary button7.80:1AAA
Muted text8.14:1AAA
Accent6.75:1AA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 143.612);
  --foreground: oklch(0.098 0.021 141.712);
  --muted: oklch(0.965 0.01 143.58);
  --muted-foreground: oklch(0.49 0.043 143.166);
  --popover: oklch(0.988 0.009 143.589);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.009 143.589);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.935 0.011 143.571);
  --input: oklch(0.935 0.011 143.571);
  --primary: oklch(0.853 0.047 143.34);
  --primary-foreground: oklch(0.333 0.052 142.775);
  --secondary: oklch(0.934 0.01 143.58);
  --secondary-foreground: oklch(0.443 0.041 143.139);
  --accent: oklch(0.892 0.024 143.491);
  --accent-foreground: oklch(0.39 0.049 142.95);
  --destructive: oklch(0.395 0.155 29.724);
  --destructive-foreground: oklch(0.865 0.069 22.051);
  --ring: oklch(0.853 0.047 143.34);
  --chart-1: oklch(0.853 0.047 143.34);
  --chart-2: oklch(0.934 0.01 143.58);
  --chart-3: oklch(0.892 0.024 143.491);
  --chart-4: oklch(0.956 0.007 143.599);
  --chart-5: oklch(0.855 0.052 143.307);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.021 142.338);
  --foreground: oklch(0.978 0.004 143.615);
  --muted: oklch(0.164 0.016 143.109);
  --muted-foreground: oklch(0.729 0.039 143.351);
  --popover: oklch(0.154 0.024 142.416);
  --popover-foreground: oklch(0.986 0.003 143.622);
  --card: oklch(0.154 0.024 142.416);
  --card-foreground: oklch(0.986 0.003 143.622);
  --border: oklch(0.279 0.025 143.141);
  --input: oklch(0.279 0.025 143.141);
  --primary: oklch(0.853 0.047 143.34);
  --primary-foreground: oklch(0.333 0.052 142.775);
  --secondary: oklch(0.325 0.013 143.42);
  --secondary-foreground: oklch(0.849 0.01 143.571);
  --accent: oklch(0.403 0.036 143.149);
  --accent-foreground: oklch(0.905 0.014 143.551);
  --destructive: oklch(0.626 0.244 29.386);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.853 0.047 143.34);
  --chart-1: oklch(0.853 0.047 143.34);
  --chart-2: oklch(0.325 0.013 143.42);
  --chart-3: oklch(0.403 0.036 143.149);
  --chart-4: oklch(0.356 0.015 143.413);
  --chart-5: oklch(0.855 0.052 143.307);
}