Dark Low Contrast Nature is a shadcn/ui theme built around a neutral gray primary color (#d1d6d1) with muted deep green accents (#424d42). The light mode uses a green-tinted background (#1e241e). Dark mode keeps the neutral gray primary (#d1d6d1) on a green-tinted background (#1e241e).
| Token | Light | Dark |
|---|---|---|
| Background | #1e241eblack | #1e241eblack |
| Foreground | #b0b5b0darkgray | #b0b5b0darkgray |
| Card | #1a1e1ablack | #1a1e1ablack |
| Card foreground | #bdc1bdsilver | #bdc1bdsilver |
| Popover | #171c17black | #171c17black |
| Popover foreground | #cacecalightgrey | #cacecalightgrey |
| Primary | #d1d6d1lightgrey | #d1d6d1lightgrey |
| Primary foreground | #373e37darkslategray | #373e37darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #263126darkslategray | #263126darkslategray |
| Muted foreground | #a1b5a1darkgray | #a1b5a1darkgray |
| Accent | #424d42darkslategray | #424d42darkslategray |
| Accent foreground | #dee3degainsboro | #dee3degainsboro |
| Destructive | #ef1206red | #ef1206red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Input | #363636darkslategray | #363636darkslategray |
| Ring | #d1d6d1lightgrey | #d1d6d1lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.60:1 | AAA |
| Text on card | 9.24:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 4.42:1 | AA Large |
| Text on background | 7.60:1 | AAA |
| Text on card | 9.24:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use Dark Low Contrast Nature in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.252 0.012 145.193);
--foreground: oklch(0.767 0.008 145.495);
--muted: oklch(0.298 0.023 144.96);
--muted-foreground: oklch(0.752 0.036 145.204);
--popover: oklch(0.219 0.01 145.224);
--popover-foreground: oklch(0.847 0.005 145.528);
--card: oklch(0.23 0.011 145.212);
--card-foreground: oklch(0.807 0.007 145.513);
--border: oklch(0.301 0 189.462);
--input: oklch(0.331 0 180);
--primary: oklch(0.871 0.009 145.498);
--primary-foreground: oklch(0.356 0.015 145.246);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.407 0.024 145.121);
--accent-foreground: oklch(0.91 0.008 145.506);
--destructive: oklch(0.601 0.241 29.536);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.009 145.498);
--chart-1: oklch(0.871 0.009 145.498);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.407 0.024 145.121);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.873 0.014 145.458);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.252 0.012 145.193);
--foreground: oklch(0.767 0.008 145.495);
--muted: oklch(0.298 0.023 144.96);
--muted-foreground: oklch(0.752 0.036 145.204);
--popover: oklch(0.219 0.01 145.224);
--popover-foreground: oklch(0.847 0.005 145.528);
--card: oklch(0.23 0.011 145.212);
--card-foreground: oklch(0.807 0.007 145.513);
--border: oklch(0.301 0 189.462);
--input: oklch(0.331 0 180);
--primary: oklch(0.871 0.009 145.498);
--primary-foreground: oklch(0.356 0.015 145.246);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.407 0.024 145.121);
--accent-foreground: oklch(0.91 0.008 145.506);
--destructive: oklch(0.601 0.241 29.536);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.009 145.498);
--chart-1: oklch(0.871 0.009 145.498);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.407 0.024 145.121);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.873 0.014 145.458);
}