Fabulous is a shadcn/ui theme built around a light blue primary color (#e8edf8) with neutral gray accents (#d0d1d2). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the light blue primary (#e8edf8) on a blue-tinted background (#05070a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #05070ablack |
| Foreground | #010205black | #ffffffwhite |
| Card | #f4f6fbghostwhite | #07090eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f4f6fbghostwhite | #07090eblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e8edf8lavender | #e8edf8lavender |
| Primary foreground | #2a4884darkslateblue | #2a4884darkslateblue |
| Secondary | #d0d1d2lightgrey | #1c1f26black |
| Secondary foreground | #36383adarkslategray | #afb6c5silver |
| Muted | #eceef4whitesmoke | #0b0e13black |
| Muted foreground | #464a53darkslategray | #acb0b9darkgray |
| Accent | #d0d1d2lightgrey | #1c1f26black |
| Accent foreground | #36383adarkslategray | #afb6c5silver |
| Destructive | #6e2608maroon | #f16f37tomato |
| Destructive foreground | #f9c5aepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8edf8lavender | #e8edf8lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 20.18:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.88:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 7.05:1 | AAA |
Paste this into your globals.css to use Fabulous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 264.537);
--foreground: oklch(0.082 0.016 252.518);
--muted: oklch(0.95 0.007 264.526);
--muted-foreground: oklch(0.409 0.016 264.376);
--popover: oklch(0.973 0.007 264.529);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.007 264.529);
--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.945 0.015 264.494);
--primary-foreground: oklch(0.41 0.107 262.627);
--secondary: oklch(0.859 0.003 264.541);
--secondary-foreground: oklch(0.339 0.004 264.509);
--accent: oklch(0.859 0.003 264.541);
--accent-foreground: oklch(0.339 0.004 264.509);
--destructive: oklch(0.373 0.109 40.235);
--destructive-foreground: oklch(0.863 0.068 44.35);
--ring: oklch(0.945 0.015 264.494);
--chart-1: oklch(0.945 0.015 264.494);
--chart-2: oklch(0.859 0.003 264.541);
--chart-3: oklch(0.859 0.003 264.541);
--chart-4: oklch(0.883 0.002 264.543);
--chart-5: oklch(0.945 0.016 264.49);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.01 259.891);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.012 264.182);
--muted-foreground: oklch(0.757 0.014 264.484);
--popover: oklch(0.139 0.012 261.386);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.012 261.386);
--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.945 0.015 264.494);
--primary-foreground: oklch(0.41 0.107 262.627);
--secondary: oklch(0.24 0.015 264.251);
--secondary-foreground: oklch(0.777 0.022 264.436);
--accent: oklch(0.24 0.015 264.251);
--accent-foreground: oklch(0.777 0.022 264.436);
--destructive: oklch(0.689 0.175 41.904);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.945 0.015 264.494);
--chart-1: oklch(0.945 0.015 264.494);
--chart-2: oklch(0.24 0.015 264.251);
--chart-3: oklch(0.24 0.015 264.251);
--chart-4: oklch(0.271 0.017 264.226);
--chart-5: oklch(0.945 0.016 264.49);
}