Maniac is a shadcn/ui theme built around a vivid deep green primary color (#184404) with vivid deep green accents (#04440f). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid deep green primary (#184404) on a neutral background (#040802).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #040802black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfefbwhite | #040802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfefbwhite | #040802black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #184404darkgreen | #184404darkgreen |
| Primary foreground | #63f320lawngreen | #63f320lawngreen |
| Secondary | #384404darkgreen | #384404darkgreen |
| Secondary foreground | #cdf320greenyellow | #cdf320greenyellow |
| Muted | #f4f5efwhitesmoke | #0f100ablack |
| Muted foreground | #494b3fdarkslategray | #bec0b4silver |
| Accent | #04440fdarkgreen | #04440fdarkgreen |
| Accent foreground | #20f347limegreen | #20f347limegreen |
| Destructive | #cb4810chocolate | #de4f12chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #184404darkgreen | #184404darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 4.68:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 10.39:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Maniac in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 135.443);
--foreground: oklch(0 0 0);
--muted: oklch(0.968 0.007 114.967);
--muted-foreground: oklch(0.407 0.02 115.745);
--popover: oklch(0.994 0.003 135.443);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 135.443);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.342 0.102 138.329);
--primary-foreground: oklch(0.852 0.259 138.844);
--secondary: oklch(0.363 0.084 120.426);
--secondary-foreground: oklch(0.905 0.211 120.83);
--accent: oklch(0.337 0.102 145.145);
--accent-foreground: oklch(0.841 0.26 144.62);
--destructive: oklch(0.577 0.176 39.348);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.342 0.102 138.329);
--chart-1: oklch(0.342 0.102 138.329);
--chart-2: oklch(0.363 0.084 120.426);
--chart-3: oklch(0.337 0.102 145.145);
--chart-4: oklch(0.413 0.096 120.686);
--chart-5: oklch(0.345 0.105 138.399);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.019 133.925);
--foreground: oklch(1 0 180);
--muted: oklch(0.168 0.011 116.084);
--muted-foreground: oklch(0.804 0.017 115.221);
--popover: oklch(0.124 0.019 133.925);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.019 133.925);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.342 0.102 138.329);
--primary-foreground: oklch(0.852 0.259 138.844);
--secondary: oklch(0.363 0.084 120.426);
--secondary-foreground: oklch(0.905 0.211 120.83);
--accent: oklch(0.337 0.102 145.145);
--accent-foreground: oklch(0.841 0.26 144.62);
--destructive: oklch(0.616 0.189 39.225);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.342 0.102 138.329);
--chart-1: oklch(0.342 0.102 138.329);
--chart-2: oklch(0.363 0.084 120.426);
--chart-3: oklch(0.337 0.102 145.145);
--chart-4: oklch(0.413 0.096 120.686);
--chart-5: oklch(0.345 0.105 138.399);
}