Fat is a shadcn/ui theme built around a muted deep teal primary color (#0e1a1a) with muted deep red accents (#1a0e0f). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the muted deep teal primary (#0e1a1a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #000000black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f3fbfbmintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fdfcmintcream | #000000black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #0e1a1ablack | #0e1a1ablack |
| Primary foreground | #96c5c2lightsteelblue | #96c5c2lightsteelblue |
| Secondary | #1a0e0fblack | #1a0e0fblack |
| Secondary foreground | #c59699rosybrown | #c59699rosybrown |
| Muted | #e6dbdbgainsboro | #24191ablack |
| Muted foreground | #5f5959dimgray | #a6a0a1darkgray |
| Accent | #1a0e0fblack | #1a0e0fblack |
| Accent foreground | #c59699rosybrown | #c59699rosybrown |
| Destructive | #75150bmaroon | #ec4936tomato |
| Destructive foreground | #f8bfb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e1a1ablack | #0e1a1ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 9.33:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 5.06:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.33:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Fat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 192.308);
--foreground: oklch(0 0 0);
--muted: oklch(0.9 0.013 12.725);
--muted-foreground: oklch(0.469 0.007 12.745);
--popover: oklch(0.989 0.006 192.308);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.008 192.248);
--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.208 0.017 190.675);
--primary-foreground: oklch(0.789 0.05 191.089);
--secondary: oklch(0.183 0.02 14.86);
--secondary-foreground: oklch(0.718 0.057 14.135);
--accent: oklch(0.183 0.02 14.86);
--accent-foreground: oklch(0.718 0.057 14.135);
--destructive: oklch(0.367 0.131 30.464);
--destructive-foreground: oklch(0.855 0.067 25.817);
--ring: oklch(0.208 0.017 190.675);
--chart-1: oklch(0.208 0.017 190.675);
--chart-2: oklch(0.183 0.02 14.86);
--chart-3: oklch(0.183 0.02 14.86);
--chart-4: oklch(0.214 0.027 15.223);
--chart-5: oklch(0.209 0.018 190.522);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 192.389);
--muted: oklch(0.227 0.019 14.196);
--muted-foreground: oklch(0.712 0.006 12.615);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 192.389);
--card: oklch(0.092 0 180);
--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.208 0.017 190.675);
--primary-foreground: oklch(0.789 0.05 191.089);
--secondary: oklch(0.183 0.02 14.86);
--secondary-foreground: oklch(0.718 0.057 14.135);
--accent: oklch(0.183 0.02 14.86);
--accent-foreground: oklch(0.718 0.057 14.135);
--destructive: oklch(0.635 0.203 29.988);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.208 0.017 190.675);
--chart-1: oklch(0.208 0.017 190.675);
--chart-2: oklch(0.183 0.02 14.86);
--chart-3: oklch(0.183 0.02 14.86);
--chart-4: oklch(0.214 0.027 15.223);
--chart-5: oklch(0.209 0.018 190.522);
}