Nourishment is a shadcn/ui theme built around an orange primary color (#995233) with neutral gray accents (#d4d0ce). The light mode uses a neutral background (#fdf8f6). Dark mode keeps the orange primary (#995233) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f6snow | #040201black |
| Foreground | #000000black | #fafaf9snow |
| Card | #fdf5f2seashell | #080402black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fdf5f2seashell | #080402black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #995233sienna | #995233sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d4d0celightgrey | #1a1614black |
| Secondary foreground | #3b3735darkslategray | #bcaba4darkgray |
| Muted | #f1e8e4linen | #1b120eblack |
| Muted foreground | #5c5857dimgray | #a8a5a3darkgray |
| Accent | #d4d0celightgrey | #1a1614black |
| Accent foreground | #3b3735darkslategray | #bcaba4darkgray |
| Destructive | #6f130bmaroon | #ec4f41tomato |
| Destructive foreground | #f8bab5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #995233sienna | #995233sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 5.83:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 5.83:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Nourishment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.006 44.918);
--foreground: oklch(0 0 0);
--muted: oklch(0.937 0.012 44.857);
--muted-foreground: oklch(0.464 0.006 44.862);
--popover: oklch(0.976 0.009 44.886);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.976 0.009 44.886);
--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.517 0.105 43.159);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.86 0.005 44.924);
--secondary-foreground: oklch(0.34 0.008 44.767);
--accent: oklch(0.86 0.005 44.924);
--accent-foreground: oklch(0.34 0.008 44.767);
--destructive: oklch(0.354 0.127 29.882);
--destructive-foreground: oklch(0.844 0.072 24.616);
--ring: oklch(0.517 0.105 43.159);
--chart-1: oklch(0.517 0.105 43.159);
--chart-2: oklch(0.86 0.005 44.924);
--chart-3: oklch(0.86 0.005 44.924);
--chart-4: oklch(0.884 0.004 44.935);
--chart-5: oklch(0.518 0.111 42.962);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.009 52.091);
--foreground: oklch(0.985 0.001 44.973);
--muted: oklch(0.192 0.018 44.261);
--muted-foreground: oklch(0.724 0.005 44.912);
--popover: oklch(0.114 0.012 52.091);
--popover-foreground: oklch(0.992 0 44.978);
--card: oklch(0.114 0.012 52.091);
--card-foreground: oklch(0.992 0 44.978);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.517 0.105 43.159);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.203 0.009 44.594);
--secondary-foreground: oklch(0.754 0.022 44.709);
--accent: oklch(0.203 0.009 44.594);
--accent-foreground: oklch(0.754 0.022 44.709);
--destructive: oklch(0.643 0.196 28.842);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.517 0.105 43.159);
--chart-1: oklch(0.517 0.105 43.159);
--chart-2: oklch(0.203 0.009 44.594);
--chart-3: oklch(0.203 0.009 44.594);
--chart-4: oklch(0.236 0.011 44.56);
--chart-5: oklch(0.518 0.111 42.962);
}