Fatal is a shadcn/ui theme built around a muted green primary color (#a7b389) with muted purple accents (#b389a7). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted green primary (#a7b389) on a green-tinted background (#090c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #090c04black |
| Foreground | #101405black | #fafbf9snow |
| Card | #fbfcf8snow | #0c0f05black |
| Card foreground | #0d1004black | #fdfdfcwhite |
| Popover | #fbfcf8snow | #0c0f05black |
| Popover foreground | #0d1004black | #fdfdfcwhite |
| Primary | #a7b389darkseagreen | #a7b389darkseagreen |
| Primary foreground | #060604black | #060604black |
| Secondary | #89a7b3darkgray | #89a7b3darkgray |
| Secondary foreground | #040606black | #040606black |
| Muted | #eef1f2whitesmoke | #0d1011black |
| Muted foreground | #595d5fdimgray | #a0a4a6darkgray |
| Accent | #b389a7rosybrown | #b389a7rosybrown |
| Accent foreground | #060406black | #060406black |
| Destructive | #6b2b0bsaddlebrown | #ea6d2echocolate |
| Destructive foreground | #f7c8b0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7b389darkseagreen | #a7b389darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.39:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.01:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.73:1 | AA |
Paste this into your globals.css to use Fatal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 120.086);
--foreground: oklch(0.182 0.029 122.4);
--muted: oklch(0.955 0.004 225.025);
--muted-foreground: oklch(0.475 0.006 225.117);
--popover: oklch(0.989 0.006 120.134);
--popover-foreground: oklch(0.165 0.025 121.574);
--card: oklch(0.989 0.006 120.134);
--card-foreground: oklch(0.165 0.025 121.574);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.747 0.061 121.434);
--primary-foreground: oklch(0.121 0.008 119.98);
--secondary: oklch(0.709 0.038 225.746);
--secondary-foreground: oklch(0.117 0.005 222.58);
--accent: oklch(0.679 0.066 337.597);
--accent-foreground: oklch(0.113 0.008 336.068);
--destructive: oklch(0.374 0.101 43.263);
--destructive-foreground: oklch(0.868 0.063 47.974);
--ring: oklch(0.747 0.061 121.434);
--chart-1: oklch(0.747 0.061 121.434);
--chart-2: oklch(0.709 0.038 225.746);
--chart-3: oklch(0.679 0.066 337.597);
--chart-4: oklch(0.733 0.035 225.638);
--chart-5: oklch(0.754 0.068 121.61);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.02 120.139);
--foreground: oklch(0.987 0.004 120.099);
--muted: oklch(0.171 0.006 225.393);
--muted-foreground: oklch(0.717 0.005 225.061);
--popover: oklch(0.163 0.023 121.447);
--popover-foreground: oklch(0.994 0.002 120.068);
--card: oklch(0.163 0.023 121.447);
--card-foreground: oklch(0.994 0.002 120.068);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.747 0.061 121.434);
--primary-foreground: oklch(0.121 0.008 119.98);
--secondary: oklch(0.709 0.038 225.746);
--secondary-foreground: oklch(0.117 0.005 222.58);
--accent: oklch(0.679 0.066 337.597);
--accent-foreground: oklch(0.113 0.008 336.068);
--destructive: oklch(0.676 0.172 44.095);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.747 0.061 121.434);
--chart-1: oklch(0.747 0.061 121.434);
--chart-2: oklch(0.709 0.038 225.746);
--chart-3: oklch(0.679 0.066 337.597);
--chart-4: oklch(0.733 0.035 225.638);
--chart-5: oklch(0.754 0.068 121.61);
}