Fatal is a shadcn/ui theme built around a neutral gray primary color (#7e6e6d) with neutral gray accents (#6d7d7e). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#7e6e6d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #090201black | #faf5f5whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040101black | #fbf9f8snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #090201black | #faf5f5whitesmoke |
| Primary | #7e6e6ddimgray | #7e6e6ddimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6d7d7eslategray | #6d7d7eslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #cae6e7gainsboro | #183335darkslategray |
| Muted foreground | #5e6464dimgray | #9ba1a1darkgray |
| Accent | #6d7d7eslategray | #6d7d7eslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d92b0dfirebrick | #e72e0dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e6e6ddimgray | #7e6e6ddimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 4.85:1 | AA |
| Secondary button | 4.31:1 | AA Large |
| Muted text | 4.58:1 | AA |
| Accent | 4.31:1 | AA Large |
| Destructive | 4.88:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 4.85:1 | AA |
| Secondary button | 4.31:1 | AA Large |
| Muted text | 5.10:1 | AA |
| Accent | 4.31:1 | AA Large |
| Destructive | 4.36: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.101 0.024 28.009);
--muted: oklch(0.905 0.029 200.52);
--muted-foreground: oklch(0.497 0.007 200.723);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.024 28.009);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.08 0.019 28.009);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.552 0.02 21.368);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.576 0.018 200.522);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.576 0.018 200.522);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.573 0.212 31.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.552 0.02 21.368);
--chart-1: oklch(0.552 0.02 21.368);
--chart-2: oklch(0.576 0.018 200.522);
--chart-3: oklch(0.576 0.018 200.522);
--chart-4: oklch(0.603 0.019 200.52);
--chart-5: oklch(0.548 0.029 21.609);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.005 20.948);
--muted: oklch(0.301 0.034 199.982);
--muted-foreground: oklch(0.704 0.006 200.78);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.005 20.948);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.003 20.928);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.552 0.02 21.368);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.576 0.018 200.522);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.576 0.018 200.522);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.601 0.223 31.8);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.552 0.02 21.368);
--chart-1: oklch(0.552 0.02 21.368);
--chart-2: oklch(0.576 0.018 200.522);
--chart-3: oklch(0.576 0.018 200.522);
--chart-4: oklch(0.603 0.019 200.52);
--chart-5: oklch(0.548 0.029 21.609);
}