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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 5.57:1 | AA |
| Accent | 6.86:1 | AA |
| Destructive | 6.61:1 | AA |
| Text on background | 18.63:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 8.14:1 | AAA |
| Accent | 6.75:1 | AA |
| Destructive | 3.99:1 | AA Large |
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);
}