Obesity is a shadcn/ui theme built around a neutral gray primary color (#666666) with neutral gray accents (#666666). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#666666) on a red-tinted background (#0e0707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0707black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #110808black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0e0707black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #666666dimgray | #666666dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #666666dimgray | #666666dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4d8d8gainsboro | #271b1bblack |
| Muted foreground | #484747darkslategray | #b8b7b7silver |
| Accent | #666666dimgray | #666666dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #89330bsaddlebrown | #e25412chocolate |
| Destructive foreground | #fbdacbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #666666dimgray | #666666dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 5.74:1 | AA |
| Muted text | 6.64:1 | AA |
| Accent | 5.74:1 | AA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 5.74:1 | AA |
| Muted text | 8.33:1 | AAA |
| Accent | 5.74:1 | AA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Obesity 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.891 0.014 17.418);
--muted-foreground: oklch(0.398 0.002 17.237);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.081 0.016 21.216);
--card: oklch(0.992 0 161.565);
--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.51 0 171.87);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.51 0 171.87);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.51 0 171.87);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.438 0.127 41.131);
--destructive-foreground: oklch(0.912 0.042 46.396);
--ring: oklch(0.51 0 171.87);
--chart-1: oklch(0.51 0 171.87);
--chart-2: oklch(0.51 0 171.87);
--chart-3: oklch(0.51 0 171.87);
--chart-4: oklch(0.537 0 180);
--chart-5: oklch(0.505 0.008 17.414);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.014 19.002);
--foreground: oklch(0.991 0.002 17.191);
--muted: oklch(0.237 0.02 18.674);
--muted-foreground: oklch(0.78 0.002 17.192);
--popover: oklch(0.137 0.014 19.002);
--popover-foreground: oklch(0.991 0.002 17.191);
--card: oklch(0.149 0.016 19.168);
--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.51 0 171.87);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.51 0 171.87);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.51 0 171.87);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.63 0.189 40.282);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0 171.87);
--chart-1: oklch(0.51 0 171.87);
--chart-2: oklch(0.51 0 171.87);
--chart-3: oklch(0.51 0 171.87);
--chart-4: oklch(0.537 0 180);
--chart-5: oklch(0.505 0.008 17.414);
}