Fabulous is a shadcn/ui theme built around a near-black primary color (#232525) with muted light teal accents (#bfd2d4). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the near-black primary (#232525) on a teal-tinted background (#050f0f).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfbghostwhite | #050f0fblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #f5f9faghostwhite | #061213black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fbfbghostwhite | #050f0fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #232525darkslategray | #232525darkslategray |
| Primary foreground | #bbbebfsilver | #bbbebfsilver |
| Secondary | #dde4e4gainsboro | #151919black |
| Secondary foreground | #3f4f50darkslategray | #a8b7b8darkgray |
| Muted | #e5eff0lavender | #0f191ablack |
| Muted foreground | #435556darkslategray | #a9bbbcsilver |
| Accent | #bfd2d4lightgrey | #253637darkslategray |
| Accent foreground | #27383adarkslategray | #bcd1d2lightsteelblue |
| Destructive | #6c1b04maroon | #f5410forangered |
| Destructive foreground | #fbb9a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #232525darkslategray | #232525darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 6.63:1 | AA |
| Muted text | 6.72:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.43:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.55:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Fabulous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 202.181);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.011 202.096);
--muted-foreground: oklch(0.435 0.023 201.736);
--popover: oklch(0.987 0.003 202.181);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.005 202.164);
--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.261 0.003 202.095);
--primary-foreground: oklch(0.8 0.004 202.159);
--secondary: oklch(0.913 0.007 202.128);
--secondary-foreground: oklch(0.414 0.02 201.765);
--accent: oklch(0.851 0.021 201.969);
--accent-foreground: oklch(0.328 0.022 201.645);
--destructive: oklch(0.354 0.118 35.234);
--destructive-foreground: oklch(0.843 0.081 36.042);
--ring: oklch(0.261 0.003 202.095);
--chart-1: oklch(0.261 0.003 202.095);
--chart-2: oklch(0.913 0.007 202.128);
--chart-3: oklch(0.851 0.021 201.969);
--chart-4: oklch(0.935 0.006 202.151);
--chart-5: oklch(0.263 0.006 201.988);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.016 200.995);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.014 201.632);
--muted-foreground: oklch(0.779 0.021 201.949);
--popover: oklch(0.157 0.016 200.995);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.173 0.018 201.314);
--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.261 0.003 202.095);
--primary-foreground: oklch(0.8 0.004 202.159);
--secondary: oklch(0.209 0.007 201.904);
--secondary-foreground: oklch(0.768 0.016 201.995);
--accent: oklch(0.318 0.022 201.634);
--accent-foreground: oklch(0.844 0.023 201.945);
--destructive: oklch(0.64 0.222 34.274);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.261 0.003 202.095);
--chart-1: oklch(0.261 0.003 202.095);
--chart-2: oklch(0.209 0.007 201.904);
--chart-3: oklch(0.318 0.022 201.634);
--chart-4: oklch(0.243 0.008 201.878);
--chart-5: oklch(0.263 0.006 201.988);
}