Fantastic is a shadcn/ui theme built around a muted red primary color (#af9a97) with muted orange accents (#afa697). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#af9a97) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #150704black | #ffffffwhite |
| Card | #fdf8f7snow | #030303black |
| Card foreground | #110503black | #ffffffwhite |
| Popover | #fdf8f7snow | #030303black |
| Popover foreground | #110503black | #ffffffwhite |
| Primary | #af9a97rosybrown | #af9a97rosybrown |
| Primary foreground | #0c0909black | #0c0909black |
| Secondary | #af97a0darkgray | #af97a0darkgray |
| Secondary foreground | #0c090ablack | #0c090ablack |
| Muted | #eee2e6mistyrose | #1d1115black |
| Muted foreground | #64545adimgray | #ab9ba1darkgray |
| Accent | #afa697darkgray | #afa697darkgray |
| Accent foreground | #0c0b09black | #0c0b09black |
| Destructive | #b84305firebrick | #e05206orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #af9a97rosybrown | #af9a97rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 5.44:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 6.95:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Fantastic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 27.946);
--foreground: oklch(0.149 0.028 33.198);
--muted: oklch(0.923 0.015 353.046);
--muted-foreground: oklch(0.463 0.024 353.993);
--popover: oklch(0.982 0.005 27.959);
--popover-foreground: oklch(0.137 0.024 34.102);
--card: oklch(0.982 0.005 27.959);
--card-foreground: oklch(0.137 0.024 34.102);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.705 0.025 28.153);
--primary-foreground: oklch(0.144 0.004 28.649);
--secondary: oklch(0.701 0.031 353.796);
--secondary-foreground: oklch(0.143 0.005 353.014);
--accent: oklch(0.729 0.024 81.463);
--accent-foreground: oklch(0.148 0.004 81.977);
--destructive: oklch(0.54 0.163 41.384);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.705 0.025 28.153);
--chart-1: oklch(0.705 0.025 28.153);
--chart-2: oklch(0.701 0.031 353.796);
--chart-3: oklch(0.729 0.024 81.463);
--chart-4: oklch(0.727 0.028 353.647);
--chart-5: oklch(0.703 0.031 28.221);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.023 355.782);
--muted-foreground: oklch(0.705 0.021 353.418);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.705 0.025 28.153);
--primary-foreground: oklch(0.144 0.004 28.649);
--secondary: oklch(0.701 0.031 353.796);
--secondary-foreground: oklch(0.143 0.005 353.014);
--accent: oklch(0.729 0.024 81.463);
--accent-foreground: oklch(0.148 0.004 81.977);
--destructive: oklch(0.622 0.19 40.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.705 0.025 28.153);
--chart-1: oklch(0.705 0.025 28.153);
--chart-2: oklch(0.701 0.031 353.796);
--chart-3: oklch(0.729 0.024 81.463);
--chart-4: oklch(0.727 0.028 353.647);
--chart-5: oklch(0.703 0.031 28.221);
}