Nutritious is a shadcn/ui theme built around a muted blue primary color (#8395a5) with muted green accents (#95a583). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#8395a5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #8395a5lightslategray | #8395a5lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #a58395rosybrown | #a58395rosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #e9e7e8lavender | #181617black |
| Muted foreground | #444042darkslategray | #bfbbbdsilver |
| Accent | #95a583darkseagreen | #95a583darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #631a08maroon | #e23c12orangered |
| Destructive foreground | #f8b6a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8395a5lightslategray | #8395a5lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 6.26:1 | AA |
| Muted text | 8.28:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 7.25:1 | AAA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 6.26:1 | AA |
| Muted text | 9.49:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Nutritious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.93 0.003 343.524);
--muted-foreground: oklch(0.377 0.006 343.867);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--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.661 0.032 244.69);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.647 0.049 345.246);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.7 0.052 128.054);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.337 0.108 34.667);
--destructive-foreground: oklch(0.833 0.081 34.509);
--ring: oklch(0.661 0.032 244.69);
--chart-1: oklch(0.661 0.032 244.69);
--chart-2: oklch(0.647 0.049 345.246);
--chart-3: oklch(0.7 0.052 128.054);
--chart-4: oklch(0.674 0.045 345.043);
--chart-5: oklch(0.66 0.038 244.808);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 244.096);
--muted: oklch(0.203 0.004 343.974);
--muted-foreground: oklch(0.795 0.005 343.612);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 244.096);
--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.661 0.032 244.69);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.647 0.049 345.246);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.7 0.052 128.054);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.604 0.209 33.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.661 0.032 244.69);
--chart-1: oklch(0.661 0.032 244.69);
--chart-2: oklch(0.647 0.049 345.246);
--chart-3: oklch(0.7 0.052 128.054);
--chart-4: oklch(0.674 0.045 345.043);
--chart-5: oklch(0.66 0.038 244.808);
}