NuclearGreenTheme is a shadcn/ui theme built around a vivid green primary color (#00bd00) with vivid deep green accents (#005c00). The light mode uses a neutral background (#000f00). Dark mode keeps the vivid green primary (#00bd00) on a neutral background (#000f00).
| Token | Light | Dark |
|---|---|---|
| Background | #000f00black | #000f00black |
| Foreground | #00bd00green | #4cbd00limegreen |
| Card | #000500black | #000500black |
| Card foreground | #00d600lime | #00d600lime |
| Popover | #000000black | #000000black |
| Popover foreground | #00f000lime | #00f000lime |
| Primary | #00bd00green | #00bd00green |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #acd2acsilver | #acd2acsilver |
| Secondary foreground | #1b321bdarkslategray | #1b321bdarkslategray |
| Muted | #222b22darkslategray | #222b22darkslategray |
| Muted foreground | #9bb09bdarkseagreen | #9bb09bdarkseagreen |
| Accent | #005c00darkgreen | #005c00darkgreen |
| Accent foreground | #8fff8fpalegreen | #8fff8fpalegreen |
| Destructive | #f93310orangered | #f93310orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #022702black | #000000black |
| Input | #033503darkgreen | #000000black |
| Ring | #00bd00green | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.74:1 | AAA |
| Text on card | 10.39:1 | AAA |
| Primary button | 2.53:1 | Fail |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 3.81:1 | AA Large |
| Text on background | 8.03:1 | AAA |
| Text on card | 10.39:1 | AAA |
| Primary button | 2.53:1 | Fail |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use NuclearGreenTheme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.146 0.05 142.495);
--foreground: oklch(0.692 0.235 142.495);
--muted: oklch(0.277 0.021 144.993);
--muted-foreground: oklch(0.735 0.038 145.177);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.828 0.282 142.495);
--card: oklch(0.1 0.034 142.495);
--card-foreground: oklch(0.759 0.258 142.495);
--border: oklch(0.238 0.076 142.695);
--input: oklch(0.286 0.093 142.667);
--primary: oklch(0.692 0.235 142.495);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.826 0.066 144.946);
--secondary-foreground: oklch(0.291 0.05 144.148);
--accent: oklch(0.411 0.14 142.495);
--accent-foreground: oklch(0.907 0.181 143.901);
--destructive: oklch(0.636 0.235 31.826);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.235 142.495);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0 0 0);
--chart-3: oklch(0 0 0);
--chart-4: oklch(0 0 0);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.05 142.495);
--foreground: oklch(0.705 0.219 138.203);
--muted: oklch(0.277 0.021 144.993);
--muted-foreground: oklch(0.735 0.038 145.177);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.828 0.282 142.495);
--card: oklch(0.1 0.034 142.495);
--card-foreground: oklch(0.759 0.258 142.495);
--border: oklch(0 0 0);
--input: oklch(0 0 0);
--primary: oklch(0.692 0.235 142.495);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.826 0.066 144.946);
--secondary-foreground: oklch(0.291 0.05 144.148);
--accent: oklch(0.411 0.14 142.495);
--accent-foreground: oklch(0.907 0.181 143.901);
--destructive: oklch(0.636 0.235 31.826);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0 0 0);
--chart-3: oklch(0 0 0);
--chart-4: oklch(0 0 0);
--chart-5: oklch(0 0 0);
}