Fantastic is a shadcn/ui theme built around a light violet primary color (#cca0e3) with light purple accents (#e3a0d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#cca0e3) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #0f0614black | #faf8fcghostwhite |
| Card | #fcfcfcsnow | #060208black |
| Card foreground | #0c0510black | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #060208black |
| Popover foreground | #0c0510black | #fdfcfdwhite |
| Primary | #cca0e3plum | #cca0e3plum |
| Primary foreground | #30123fmidnightblue | #30123fmidnightblue |
| Secondary | #aaa0e3lightsteelblue | #aaa0e3lightsteelblue |
| Secondary foreground | #19123fmidnightblue | #19123fmidnightblue |
| Muted | #d3cfe8gainsboro | #1b1730black |
| Muted foreground | #3e3d42darkslategray | #bdbdc2silver |
| Accent | #e3a0d9plum | #e3a0d9plum |
| Accent foreground | #3f1239darkslategray | #3f1239darkslategray |
| Destructive | #991c06darkred | #f62c09orangered |
| Destructive foreground | #fdd9d3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cca0e3plum | #cca0e3plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.69:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 9.24:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Fantastic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.033 313.531);
--muted: oklch(0.865 0.034 292.549);
--muted-foreground: oklch(0.363 0.009 292.853);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.133 0.029 314.417);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.133 0.029 314.417);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.769 0.105 313.456);
--primary-foreground: oklch(0.253 0.085 311.786);
--secondary: oklch(0.74 0.097 290.713);
--secondary-foreground: oklch(0.224 0.082 284.487);
--accent: oklch(0.789 0.109 331.914);
--accent-foreground: oklch(0.273 0.088 334.068);
--destructive: oklch(0.442 0.163 31.948);
--destructive-foreground: oklch(0.914 0.042 29.696);
--ring: oklch(0.769 0.105 313.456);
--chart-1: oklch(0.769 0.105 313.456);
--chart-2: oklch(0.74 0.097 290.713);
--chart-3: oklch(0.789 0.109 331.914);
--chart-4: oklch(0.773 0.084 291.182);
--chart-5: oklch(0.767 0.11 313.409);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.018 316.129);
--foreground: oklch(0.982 0.005 314.192);
--muted: oklch(0.224 0.048 288.825);
--muted-foreground: oklch(0.8 0.007 293.138);
--popover: oklch(0.104 0.023 316.129);
--popover-foreground: oklch(0.991 0.002 314.206);
--card: oklch(0.104 0.023 316.129);
--card-foreground: oklch(0.991 0.002 314.206);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.769 0.105 313.456);
--primary-foreground: oklch(0.253 0.085 311.786);
--secondary: oklch(0.74 0.097 290.713);
--secondary-foreground: oklch(0.224 0.082 284.487);
--accent: oklch(0.789 0.109 331.914);
--accent-foreground: oklch(0.273 0.088 334.068);
--destructive: oklch(0.627 0.236 31.543);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.769 0.105 313.456);
--chart-1: oklch(0.769 0.105 313.456);
--chart-2: oklch(0.74 0.097 290.713);
--chart-3: oklch(0.789 0.109 331.914);
--chart-4: oklch(0.773 0.084 291.182);
--chart-5: oklch(0.767 0.11 313.409);
}