Foodstuffs is a shadcn/ui theme built around a muted teal primary color (#9cbaac) with muted pink accents (#ba9ca9). The light mode uses a neutral background (#f6fdfa). Dark mode keeps the muted teal primary (#9cbaac) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfamintcream | #010403black |
| Foreground | #04100bblack | #fcfdfdwhite |
| Card | #f6fdfamintcream | #010403black |
| Card foreground | #04100bblack | #fcfdfdwhite |
| Popover | #f6fdfamintcream | #010403black |
| Popover foreground | #04100bblack | #fcfdfdwhite |
| Primary | #9cbaacdarkgray | #9cbaacdarkgray |
| Primary foreground | #0f1512black | #0f1512black |
| Secondary | #ba9ca9darkgray | #ba9ca9darkgray |
| Secondary foreground | #150f12black | #150f12black |
| Muted | #e7dae0gainsboro | #25181eblack |
| Muted foreground | #47393fdarkslategray | #c6b8bfsilver |
| Accent | #ba9ca9darkgray | #ba9ca9darkgray |
| Accent foreground | #150f12black | #150f12black |
| Destructive | #a2310bsaddlebrown | #f16232tomato |
| Destructive foreground | #fde9e2mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9cbaacdarkgray | #9cbaacdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 7.57:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.01:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 7.57:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.51:1 | AA |
Paste this into your globals.css to use Foodstuffs in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 167.574);
--foreground: oklch(0.16 0.023 165.433);
--muted: oklch(0.9 0.017 348.317);
--muted-foreground: oklch(0.361 0.022 349.427);
--popover: oklch(0.989 0.008 167.574);
--popover-foreground: oklch(0.16 0.023 165.433);
--card: oklch(0.989 0.008 167.574);
--card-foreground: oklch(0.16 0.023 165.433);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.762 0.038 166.349);
--primary-foreground: oklch(0.188 0.011 166.012);
--secondary: oklch(0.723 0.04 349.279);
--secondary-foreground: oklch(0.176 0.012 349.619);
--accent: oklch(0.723 0.04 349.279);
--accent-foreground: oklch(0.176 0.012 349.619);
--destructive: oklch(0.48 0.155 36.481);
--destructive-foreground: oklch(0.948 0.024 39.37);
--ring: oklch(0.762 0.038 166.349);
--chart-1: oklch(0.762 0.038 166.349);
--chart-2: oklch(0.723 0.04 349.279);
--chart-3: oklch(0.723 0.04 349.279);
--chart-4: oklch(0.749 0.036 349.093);
--chart-5: oklch(0.766 0.044 166.105);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.013 168.042);
--foreground: oklch(0.993 0.002 167.761);
--muted: oklch(0.228 0.024 350.523);
--muted-foreground: oklch(0.797 0.018 348.423);
--popover: oklch(0.098 0.013 168.042);
--popover-foreground: oklch(0.993 0.002 167.761);
--card: oklch(0.098 0.013 168.042);
--card-foreground: oklch(0.993 0.002 167.761);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.762 0.038 166.349);
--primary-foreground: oklch(0.188 0.011 166.012);
--secondary: oklch(0.723 0.04 349.279);
--secondary-foreground: oklch(0.176 0.012 349.619);
--accent: oklch(0.723 0.04 349.279);
--accent-foreground: oklch(0.176 0.012 349.619);
--destructive: oklch(0.671 0.187 38.081);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.762 0.038 166.349);
--chart-1: oklch(0.762 0.038 166.349);
--chart-2: oklch(0.723 0.04 349.279);
--chart-3: oklch(0.723 0.04 349.279);
--chart-4: oklch(0.749 0.036 349.093);
--chart-5: oklch(0.766 0.044 166.105);
}