Fatal is a shadcn/ui theme built around a vivid deep green primary color (#132e05) with vivid deep green accents (#052e0b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#132e05) on a green-tinted background (#090e06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #090e06black |
| Foreground | #060c03black | #ffffffwhite |
| Card | #ffffffwhite | #090e06black |
| Card foreground | #060c03black | #ffffffwhite |
| Popover | #ffffffwhite | #090e06black |
| Popover foreground | #060c03black | #ffffffwhite |
| Primary | #132e05black | #132e05black |
| Primary foreground | #60e817lawngreen | #60e817lawngreen |
| Secondary | #282e05black | #282e05black |
| Secondary foreground | #c9e817greenyellow | #c9e817greenyellow |
| Muted | #eef0e0beige | #1d1f0fblack |
| Muted foreground | #56584bdarkolivegreen | #b2b4a7darkgray |
| Accent | #052e0bblack | #052e0bblack |
| Accent foreground | #17e836limegreen | #17e836limegreen |
| Destructive | #b91c04firebrick | #f52505orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #132e05black | #132e05black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 9.14:1 | AAA |
| Secondary button | 10.09:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 8.97:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 9.14:1 | AAA |
| Secondary button | 10.09:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 8.97:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Fatal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.025 132.772);
--muted: oklch(0.949 0.021 113.726);
--muted-foreground: oklch(0.455 0.021 114.154);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.025 132.772);
--card: oklch(1 0 180);
--card-foreground: oklch(0.144 0.025 132.772);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.271 0.074 136.742);
--primary-foreground: oklch(0.823 0.251 138.453);
--secondary: oklch(0.287 0.061 117.885);
--secondary-foreground: oklch(0.878 0.203 119.221);
--accent: oklch(0.266 0.076 145.472);
--accent-foreground: oklch(0.81 0.259 143.891);
--destructive: oklch(0.504 0.192 31.23);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.271 0.074 136.742);
--chart-1: oklch(0.271 0.074 136.742);
--chart-2: oklch(0.287 0.061 117.885);
--chart-3: oklch(0.266 0.076 145.472);
--chart-4: oklch(0.338 0.074 118.231);
--chart-5: oklch(0.273 0.076 136.795);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.019 133.829);
--foreground: oklch(1 0 180);
--muted: oklch(0.232 0.029 115.66);
--muted-foreground: oklch(0.764 0.018 113.753);
--popover: oklch(0.155 0.019 133.829);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.019 133.829);
--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.271 0.074 136.742);
--primary-foreground: oklch(0.823 0.251 138.453);
--secondary: oklch(0.287 0.061 117.885);
--secondary-foreground: oklch(0.878 0.203 119.221);
--accent: oklch(0.266 0.076 145.472);
--accent-foreground: oklch(0.81 0.259 143.891);
--destructive: oklch(0.62 0.239 30.987);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.271 0.074 136.742);
--chart-1: oklch(0.271 0.074 136.742);
--chart-2: oklch(0.287 0.061 117.885);
--chart-3: oklch(0.266 0.076 145.472);
--chart-4: oklch(0.338 0.074 118.231);
--chart-5: oklch(0.273 0.076 136.795);
}