Pollution is a shadcn/ui theme built around a vivid deep green primary color (#466407) with vivid deep green accents (#186407). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#466407) on a green-tinted background (#0c0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0e06black |
| Foreground | #070901black | #fdfdfcwhite |
| Card | #ffffffwhite | #0c0e06black |
| Card foreground | #070901black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0c0e06black |
| Popover foreground | #070901black | #fdfdfcwhite |
| Primary | #466407darkolivegreen | #466407darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #645307saddlebrown | #645307saddlebrown |
| Secondary foreground | #f8e9a5palegoldenrod | #f8e9a5palegoldenrod |
| Muted | #e7e5dagainsboro | #252318black |
| Muted foreground | #666560dimgray | #9f9d99darkgray |
| Accent | #186407darkgreen | #186407darkgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a13e0csaddlebrown | #ef6b2achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #466407darkolivegreen | #466407darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 6.20:1 | AA |
| Muted text | 4.61:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 6.20:1 | AA |
| Muted text | 5.82:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 6.81:1 | AA |
Paste this into your globals.css to use Pollution in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.026 120.453);
--muted: oklch(0.92 0.015 96.365);
--muted-foreground: oklch(0.507 0.008 96.352);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.026 120.453);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.026 120.453);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.462 0.116 127.278);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.445 0.088 94.682);
--secondary-foreground: oklch(0.93 0.088 97.016);
--accent: oklch(0.439 0.139 140.917);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.495 0.143 41.858);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.462 0.116 127.278);
--chart-1: oklch(0.462 0.116 127.278);
--chart-2: oklch(0.445 0.088 94.682);
--chart-3: oklch(0.439 0.139 140.917);
--chart-4: oklch(0.489 0.097 94.493);
--chart-5: oklch(0.466 0.118 127.469);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.017 121.825);
--foreground: oklch(0.994 0.002 120.795);
--muted: oklch(0.255 0.02 96.935);
--muted-foreground: oklch(0.697 0.007 96.293);
--popover: oklch(0.158 0.017 121.825);
--popover-foreground: oklch(0.994 0.002 120.795);
--card: oklch(0.158 0.017 121.825);
--card-foreground: oklch(0.994 0.002 120.795);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.462 0.116 127.278);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.445 0.088 94.682);
--secondary-foreground: oklch(0.93 0.088 97.016);
--accent: oklch(0.439 0.139 140.917);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.68 0.179 43.628);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.462 0.116 127.278);
--chart-1: oklch(0.462 0.116 127.278);
--chart-2: oklch(0.445 0.088 94.682);
--chart-3: oklch(0.439 0.139 140.917);
--chart-4: oklch(0.489 0.097 94.493);
--chart-5: oklch(0.466 0.118 127.469);
}