Nutritious is a shadcn/ui theme built around an orange primary color (#e26d46) with muted orange accents (#c4b5b0). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the orange primary (#e26d46) on an orange-tinted background (#0b0605).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #0b0605black |
| Foreground | #040201black | #ffffffwhite |
| Card | #faf6f4whitesmoke | #0e0806black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf9f8snow | #0b0605black |
| Popover foreground | #040201black | #ffffffwhite |
| Primary | #e26d46tomato | #e26d46tomato |
| Primary foreground | #000000black | #000000black |
| Secondary | #d6cfcdlightgrey | #3b2f2bdarkslategray |
| Secondary foreground | #3e3532darkslategray | #d4c8c4lightgrey |
| Muted | #e9e4e2gainsboro | #1d1816black |
| Muted foreground | #4b3e3adarkslategray | #c5b8b4silver |
| Accent | #c4b5b0silver | #553d34darkolivegreen |
| Accent foreground | #261f1cblack | #e6dad6gainsboro |
| Destructive | #d21c0ffirebrick | #f1483btomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e26d46tomato | #e26d46tomato |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 8.12:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 5.37:1 | AA |
| Text on background | 20.14:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 9.12:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Nutritious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 39.484);
--foreground: oklch(0.089 0.011 47.449);
--muted: oklch(0.922 0.005 39.47);
--muted-foreground: oklch(0.376 0.02 39.28);
--popover: oklch(0.984 0.004 39.484);
--popover-foreground: oklch(0.089 0.011 47.449);
--card: oklch(0.976 0.005 39.472);
--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.667 0.156 38.798);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.859 0.008 39.447);
--secondary-foreground: oklch(0.338 0.013 39.319);
--accent: oklch(0.785 0.019 39.372);
--accent-foreground: oklch(0.246 0.013 39.283);
--destructive: oklch(0.551 0.214 29.734);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.667 0.156 38.798);
--chart-1: oklch(0.667 0.156 38.798);
--chart-2: oklch(0.859 0.008 39.447);
--chart-3: oklch(0.785 0.019 39.372);
--chart-4: oklch(0.883 0.007 39.458);
--chart-5: oklch(0.668 0.162 38.707);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.011 44.361);
--foreground: oklch(1 0 180);
--muted: oklch(0.214 0.008 39.323);
--muted-foreground: oklch(0.793 0.016 39.392);
--popover: oklch(0.129 0.011 44.361);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.012 42.834);
--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.667 0.156 38.798);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.317 0.019 39.261);
--secondary-foreground: oklch(0.841 0.015 39.404);
--accent: oklch(0.384 0.038 39.217);
--accent-foreground: oklch(0.896 0.014 39.413);
--destructive: oklch(0.643 0.208 28.449);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.667 0.156 38.798);
--chart-1: oklch(0.667 0.156 38.798);
--chart-2: oklch(0.317 0.019 39.261);
--chart-3: oklch(0.384 0.038 39.217);
--chart-4: oklch(0.347 0.022 39.257);
--chart-5: oklch(0.668 0.162 38.707);
}