Fat is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#d9c9c9). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0b0404).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #0b0404black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcf8f8snow | #0b0404black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8f8snow | #0b0404black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #d9c9c9lightgrey | #1b1818black |
| Secondary foreground | #422f2fdarkslategray | #b6afafdarkgray |
| Muted | #e5d7d7gainsboro | #281a1ablack |
| Muted foreground | #525151darkslategray | #aeadaddarkgray |
| Accent | #d9c9c9lightgrey | #1b1818black |
| Accent foreground | #422f2fdarkslategray | #b6afafdarkgray |
| Destructive | #862809saddlebrown | #f1693btomato |
| Destructive foreground | #fbd3c6peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.64:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 7.48:1 | AAA |
| Accent | 8.16:1 | AAA |
| Destructive | 6.83:1 | AA |
Paste this into your globals.css to use Fat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 17.226);
--foreground: oklch(0 0 0);
--muted: oklch(0.89 0.016 17.461);
--muted-foreground: oklch(0.436 0.002 17.239);
--popover: oklch(0.982 0.004 17.226);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.004 17.226);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.85 0.017 17.502);
--secondary-foreground: oklch(0.326 0.028 18.708);
--accent: oklch(0.85 0.017 17.502);
--accent-foreground: oklch(0.326 0.028 18.708);
--destructive: oklch(0.419 0.133 36.757);
--destructive-foreground: oklch(0.898 0.049 39.275);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.85 0.017 17.502);
--chart-3: oklch(0.85 0.017 17.502);
--chart-4: oklch(0.875 0.014 17.433);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.017 19.883);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.023 18.966);
--muted-foreground: oklch(0.748 0.002 17.199);
--popover: oklch(0.121 0.017 19.883);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.017 19.883);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.213 0.003 17.409);
--secondary-foreground: oklch(0.76 0.007 17.31);
--accent: oklch(0.213 0.003 17.409);
--accent-foreground: oklch(0.76 0.007 17.31);
--destructive: oklch(0.682 0.179 38.417);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.213 0.003 17.409);
--chart-3: oklch(0.213 0.003 17.409);
--chart-4: oklch(0.246 0.004 17.432);
--chart-5: oklch(1 0 180);
}