Fate is a shadcn/ui theme built around a muted light purple primary color (#dec4d7) with muted light red accents (#dec4ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#dec4d7) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070306black |
| Foreground | #10040dblack | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0a0509black |
| Card foreground | #0c030ablack | #ffffffwhite |
| Popover | #fcfcfcsnow | #0a0509black |
| Popover foreground | #0c030ablack | #ffffffwhite |
| Primary | #dec4d7thistle | #dec4d7thistle |
| Primary foreground | #48283fdarkslategray | #48283fdarkslategray |
| Secondary | #d9c4dethistle | #d9c4dethistle |
| Secondary foreground | #412848darkslategray | #412848darkslategray |
| Muted | #ded6e1gainsboro | #271e29darkslategray |
| Muted foreground | #535053darkslategray | #aeacafdarkgray |
| Accent | #dec4cathistle | #dec4cathistle |
| Accent foreground | #48282fdarkslategray | #48282fdarkslategray |
| Destructive | #cb2e06firebrick | #f9572ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dec4d7thistle | #dec4d7thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 5.61:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 5.35:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.43:1 | AA |
Paste this into your globals.css to use Fate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.137 0.029 337.422);
--muted: oklch(0.886 0.017 318.884);
--muted-foreground: oklch(0.435 0.006 318.885);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.123 0.026 336.106);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.026 336.106);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.848 0.039 336.01);
--primary-foreground: oklch(0.327 0.06 338.279);
--secondary: oklch(0.845 0.043 318.872);
--secondary-foreground: oklch(0.322 0.065 318.743);
--accent: oklch(0.844 0.031 3.06);
--accent-foreground: oklch(0.321 0.05 6.261);
--destructive: oklch(0.549 0.198 33.297);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.848 0.039 336.01);
--chart-1: oklch(0.848 0.039 336.01);
--chart-2: oklch(0.845 0.043 318.872);
--chart-3: oklch(0.844 0.031 3.06);
--chart-4: oklch(0.871 0.035 318.876);
--chart-5: oklch(0.846 0.043 336.094);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.014 335.565);
--foreground: oklch(0.992 0.002 335.232);
--muted: oklch(0.251 0.023 318.853);
--muted-foreground: oklch(0.747 0.005 318.888);
--popover: oklch(0.126 0.016 335.573);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.016 335.573);
--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.848 0.039 336.01);
--primary-foreground: oklch(0.327 0.06 338.279);
--secondary: oklch(0.845 0.043 318.872);
--secondary-foreground: oklch(0.322 0.065 318.743);
--accent: oklch(0.844 0.031 3.06);
--accent-foreground: oklch(0.321 0.05 6.261);
--destructive: oklch(0.67 0.204 34.909);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.848 0.039 336.01);
--chart-1: oklch(0.848 0.039 336.01);
--chart-2: oklch(0.845 0.043 318.872);
--chart-3: oklch(0.844 0.031 3.06);
--chart-4: oklch(0.871 0.035 318.876);
--chart-5: oklch(0.846 0.043 336.094);
}