Fabulous is a shadcn/ui theme built around a purple primary color (#be64b8) with muted light purple accents (#dfd8de). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#be64b8) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a050ablack |
| Foreground | #040104black | #faf5f9whitesmoke |
| Card | #fcfcfcsnow | #0e060dblack |
| Card foreground | #000000black | #fbf8fbsnow |
| Popover | #fcfcfcsnow | #0e060dblack |
| Popover foreground | #000000black | #fbf8fbsnow |
| Primary | #be64b8mediumorchid | #be64b8mediumorchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #dfd8degainsboro | #242424darkslategray |
| Secondary foreground | #483c47darkslategray | #bdbdbdsilver |
| Muted | #ebd1e9gainsboro | #2e1414black |
| Muted foreground | #564d56dimgray | #b2a9a9darkgray |
| Accent | #dfd8degainsboro | #242424darkslategray |
| Accent foreground | #483c47darkslategray | #bdbdbdsilver |
| Destructive | #c61b0cfirebrick | #f33c2borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #be64b8mediumorchid | #be64b8mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 5.91:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 8.29:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Fabulous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.019 328.864);
--muted: oklch(0.889 0.044 328.022);
--muted-foreground: oklch(0.432 0.019 327.98);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.638 0.156 329.716);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.889 0.011 327.663);
--secondary-foreground: oklch(0.374 0.025 328.172);
--accent: oklch(0.889 0.011 327.663);
--accent-foreground: oklch(0.374 0.025 328.172);
--destructive: oklch(0.528 0.204 30.09);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.638 0.156 329.716);
--chart-1: oklch(0.638 0.156 329.716);
--chart-2: oklch(0.889 0.011 327.663);
--chart-3: oklch(0.889 0.011 327.663);
--chart-4: oklch(0.913 0.008 327.635);
--chart-5: oklch(0.639 0.166 329.847);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.018 328.466);
--foreground: oklch(0.975 0.007 327.618);
--muted: oklch(0.23 0.043 20.998);
--muted-foreground: oklch(0.741 0.011 17.412);
--popover: oklch(0.141 0.021 328.772);
--popover-foreground: oklch(0.983 0.005 327.594);
--card: oklch(0.141 0.021 328.772);
--card-foreground: oklch(0.983 0.005 327.594);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.638 0.156 329.716);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.259 0 167.471);
--secondary-foreground: oklch(0.797 0 180);
--accent: oklch(0.259 0 167.471);
--accent-foreground: oklch(0.797 0 180);
--destructive: oklch(0.633 0.221 29.735);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.638 0.156 329.716);
--chart-1: oklch(0.638 0.156 329.716);
--chart-2: oklch(0.259 0 167.471);
--chart-3: oklch(0.259 0 167.471);
--chart-4: oklch(0.29 0 180);
--chart-5: oklch(0.639 0.166 329.847);
}