Fabulous is a shadcn/ui theme built around a neutral gray primary color (#585050) with neutral gray accents (#505058). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#585050) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040101black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #585050dimgray | #585050dimgray |
| Primary foreground | #eeececlinen | #eeececlinen |
| Secondary | #505850darkslategray | #505850darkslategray |
| Secondary foreground | #eceeecwhitesmoke | #eceeecwhitesmoke |
| Muted | #eef2eewhitesmoke | #0d110dblack |
| Muted foreground | #595f59dimgray | #a0a6a0darkgray |
| Accent | #505058darkslategray | #505058darkslategray |
| Accent foreground | #ececeewhitesmoke | #ececeewhitesmoke |
| Destructive | #750800maroon | #eb1000red |
| Destructive foreground | #ffaea8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #585050dimgray | #585050dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 6.28:1 | AA |
| Muted text | 5.77:1 | AA |
| Accent | 6.77:1 | AA |
| Destructive | 6.61:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 6.28:1 | AA |
| Muted text | 7.65:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 4.57:1 | AA |
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.081 0.016 21.216);
--muted: oklch(0.956 0.006 145.527);
--muted-foreground: oklch(0.477 0.011 145.399);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.081 0.016 21.216);
--card: oklch(1 0 180);
--card-foreground: oklch(0.081 0.016 21.216);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.439 0.011 17.585);
--primary-foreground: oklch(0.945 0.002 17.192);
--secondary: oklch(0.451 0.017 145.284);
--secondary-foreground: oklch(0.947 0.003 145.552);
--accent: oklch(0.434 0.014 285.814);
--accent-foreground: oklch(0.944 0.002 286.354);
--destructive: oklch(0.358 0.141 30.573);
--destructive-foreground: oklch(0.827 0.096 23.869);
--ring: oklch(0.439 0.011 17.585);
--chart-1: oklch(0.439 0.011 17.585);
--chart-2: oklch(0.451 0.017 145.284);
--chart-3: oklch(0.434 0.014 285.814);
--chart-4: oklch(0.479 0.018 145.28);
--chart-5: oklch(0.435 0.018 17.868);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.009 145.149);
--muted-foreground: oklch(0.719 0.01 145.47);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.439 0.011 17.585);
--primary-foreground: oklch(0.945 0.002 17.192);
--secondary: oklch(0.451 0.017 145.284);
--secondary-foreground: oklch(0.947 0.003 145.552);
--accent: oklch(0.434 0.014 285.814);
--accent-foreground: oklch(0.944 0.002 286.354);
--destructive: oklch(0.593 0.239 29.845);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.011 17.585);
--chart-1: oklch(0.439 0.011 17.585);
--chart-2: oklch(0.451 0.017 145.284);
--chart-3: oklch(0.434 0.014 285.814);
--chart-4: oklch(0.479 0.018 145.28);
--chart-5: oklch(0.435 0.018 17.868);
}