Ill-fated is a shadcn/ui theme built around a vivid purple primary color (#f28dee) with muted light purple accents (#dbc2da). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the vivid purple primary (#f28dee) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #0a050ablack |
| Foreground | #100410black | #ffffffwhite |
| Card | #fcf8fcsnow | #0a050ablack |
| Card foreground | #100410black | #ffffffwhite |
| Popover | #fcf8fcsnow | #0a050ablack |
| Popover foreground | #100410black | #ffffffwhite |
| Primary | #f28deeviolet | #f28deeviolet |
| Primary foreground | #440842indigo | #440842indigo |
| Secondary | #e4d8e3gainsboro | #291f28darkslategray |
| Secondary foreground | #513850darkslategray | #c6b3c5silver |
| Muted | #f0eaf0whitesmoke | #150f15black |
| Muted foreground | #5e5a5edimgray | #a5a1a5darkgray |
| Accent | #dbc2dathistle | #462b45darkslategray |
| Accent foreground | #432842darkslategray | #dcc6dbthistle |
| Destructive | #7e2502maroon | #fc6e36tomato |
| Destructive foreground | #fec9b4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f28deeviolet | #f28deeviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.42:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 7.42:1 | AAA |
Paste this into your globals.css to use Ill-fated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 326.602);
--foreground: oklch(0.138 0.036 328.422);
--muted: oklch(0.944 0.01 326.628);
--muted-foreground: oklch(0.472 0.007 326.674);
--popover: oklch(0.983 0.007 326.602);
--popover-foreground: oklch(0.138 0.036 328.422);
--card: oklch(0.983 0.007 326.602);
--card-foreground: oklch(0.138 0.036 328.422);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.782 0.171 328.255);
--primary-foreground: oklch(0.278 0.114 329.64);
--secondary: oklch(0.895 0.02 326.735);
--secondary-foreground: oklch(0.38 0.051 327.641);
--accent: oklch(0.843 0.042 326.958);
--accent-foreground: oklch(0.322 0.057 327.964);
--destructive: oklch(0.4 0.129 38.119);
--destructive-foreground: oklch(0.876 0.067 42.622);
--ring: oklch(0.782 0.171 328.255);
--chart-1: oklch(0.782 0.171 328.255);
--chart-2: oklch(0.895 0.02 326.735);
--chart-3: oklch(0.843 0.042 326.958);
--chart-4: oklch(0.919 0.015 326.685);
--chart-5: oklch(0.782 0.177 328.31);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 327.329);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.014 327.216);
--muted-foreground: oklch(0.714 0.007 326.62);
--popover: oklch(0.128 0.015 327.329);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.015 327.329);
--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.782 0.171 328.255);
--primary-foreground: oklch(0.278 0.114 329.64);
--secondary: oklch(0.254 0.023 327.295);
--secondary-foreground: oklch(0.789 0.032 326.89);
--accent: oklch(0.331 0.057 327.924);
--accent-foreground: oklch(0.851 0.038 326.917);
--destructive: oklch(0.704 0.187 40.459);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.782 0.171 328.255);
--chart-1: oklch(0.782 0.171 328.255);
--chart-2: oklch(0.254 0.023 327.295);
--chart-3: oklch(0.331 0.057 327.924);
--chart-4: oklch(0.285 0.027 327.333);
--chart-5: oklch(0.782 0.177 328.31);
}