Ill-fated is a shadcn/ui theme built around a neutral gray primary color (#877978) with neutral gray accents (#e1e0df). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#877978) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0505black |
| Foreground | #160403black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0e0706black |
| Card foreground | #120302black | #ffffffwhite |
| Popover | #ffffffwhite | #0a0505black |
| Popover foreground | #160403black | #fdfcfcsnow |
| Primary | #877978gray | #877978gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e1e0dfgainsboro | #2c2221darkslategray |
| Secondary foreground | #4a4645darkslategray | #c8b8b6silver |
| Muted | #e7dbdagainsboro | #251918black |
| Muted foreground | #634c4bdimgray | #b49e9cdarkgray |
| Accent | #e1e0dfgainsboro | #2c2221darkslategray |
| Accent foreground | #4a4645darkslategray | #c8b8b6silver |
| Destructive | #ce3203firebrick | #e73904orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #877978gray | #877978gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 4.17:1 | AA Large |
| Secondary button | 7.05:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 5.13:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 4.17:1 | AA Large |
| Secondary button | 8.12:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Ill-fated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.036 29.091);
--muted: oklch(0.9 0.014 22.392);
--muted-foreground: oklch(0.44 0.031 23.131);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.036 29.091);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.131 0.031 29.36);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.588 0.018 22.574);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.907 0.002 22.238);
--secondary-foreground: oklch(0.396 0.005 22.371);
--accent: oklch(0.907 0.002 22.238);
--accent-foreground: oklch(0.396 0.005 22.371);
--destructive: oklch(0.559 0.197 34.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.588 0.018 22.574);
--chart-1: oklch(0.588 0.018 22.574);
--chart-2: oklch(0.907 0.002 22.238);
--chart-3: oklch(0.907 0.002 22.238);
--chart-4: oklch(0.93 0.001 22.231);
--chart-5: oklch(0.584 0.027 22.785);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.012 24.753);
--foreground: oklch(0.992 0.001 22.227);
--muted: oklch(0.228 0.02 23.428);
--muted-foreground: oklch(0.718 0.027 22.669);
--popover: oklch(0.125 0.012 24.753);
--popover-foreground: oklch(0.992 0.001 22.227);
--card: oklch(0.139 0.014 24.53);
--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.588 0.018 22.574);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.262 0.015 22.967);
--secondary-foreground: oklch(0.795 0.019 22.497);
--accent: oklch(0.262 0.015 22.967);
--accent-foreground: oklch(0.795 0.019 22.497);
--destructive: oklch(0.609 0.216 34.203);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.588 0.018 22.574);
--chart-1: oklch(0.588 0.018 22.574);
--chart-2: oklch(0.262 0.015 22.967);
--chart-3: oklch(0.262 0.015 22.967);
--chart-4: oklch(0.292 0.018 23.01);
--chart-5: oklch(0.584 0.027 22.785);
}