Fat is a shadcn/ui theme built around a vivid yellow primary color (#bcae15) with muted light yellow accents (#dbd9cd). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid yellow primary (#bcae15) on a yellow-tinted background (#0c0b03).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0c0b03black |
| Foreground | #0e0d02black | #fdfdfcwhite |
| Card | #fdfcf7snow | #0c0b03black |
| Card foreground | #0e0d02black | #fdfdfcwhite |
| Popover | #fdfcf7snow | #0c0b03black |
| Popover foreground | #0e0d02black | #fdfdfcwhite |
| Primary | #bcae15goldenrod | #bcae15goldenrod |
| Primary foreground | #050401black | #050401black |
| Secondary | #eae9e6linen | #1b1a13black |
| Secondary foreground | #55544adarkolivegreen | #bdbba3darkgray |
| Muted | #ecebealinen | #151513black |
| Muted foreground | #56564ddarkolivegreen | #b2b1a9darkgray |
| Accent | #dbd9cdlightgrey | #33311fdarkslategray |
| Accent foreground | #444231darkslategray | #d0ceb3silver |
| Destructive | #801f05maroon | #f13b09orangered |
| Destructive foreground | #fdc8bapeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bcae15goldenrod | #bcae15goldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 6.29:1 | AA |
| Muted text | 6.23:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 8.96:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Fat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 102.318);
--foreground: oklch(0.154 0.027 105.594);
--muted: oklch(0.941 0.003 102.256);
--muted-foreground: oklch(0.45 0.014 102.714);
--popover: oklch(0.99 0.006 102.318);
--popover-foreground: oklch(0.154 0.027 105.594);
--card: oklch(0.99 0.006 102.318);
--card-foreground: oklch(0.154 0.027 105.594);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.74 0.152 103.539);
--primary-foreground: oklch(0.107 0.019 106.135);
--secondary: oklch(0.935 0.004 102.281);
--secondary-foreground: oklch(0.442 0.016 102.787);
--accent: oklch(0.884 0.017 102.524);
--accent-foreground: oklch(0.377 0.028 103.311);
--destructive: oklch(0.398 0.136 34.807);
--destructive-foreground: oklch(0.876 0.063 35.978);
--ring: oklch(0.74 0.152 103.539);
--chart-1: oklch(0.74 0.152 103.539);
--chart-2: oklch(0.935 0.004 102.281);
--chart-3: oklch(0.884 0.017 102.524);
--chart-4: oklch(0.957 0.003 102.257);
--chart-5: oklch(0.749 0.155 103.447);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.148 0.02 104.952);
--foreground: oklch(0.993 0.001 102.229);
--muted: oklch(0.196 0.004 102.514);
--muted-foreground: oklch(0.76 0.013 102.48);
--popover: oklch(0.148 0.02 104.952);
--popover-foreground: oklch(0.993 0.001 102.229);
--card: oklch(0.148 0.02 104.952);
--card-foreground: oklch(0.993 0.001 102.229);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.74 0.152 103.539);
--primary-foreground: oklch(0.107 0.019 106.135);
--secondary: oklch(0.217 0.013 103.15);
--secondary-foreground: oklch(0.788 0.034 102.882);
--accent: oklch(0.309 0.03 103.594);
--accent-foreground: oklch(0.846 0.036 102.882);
--destructive: oklch(0.628 0.223 33.83);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.74 0.152 103.539);
--chart-1: oklch(0.74 0.152 103.539);
--chart-2: oklch(0.217 0.013 103.15);
--chart-3: oklch(0.309 0.03 103.594);
--chart-4: oklch(0.254 0.017 103.227);
--chart-5: oklch(0.749 0.155 103.447);
}