Malnutrition is a shadcn/ui theme built around a vivid indigo primary color (#0606ef) with muted light indigo accents (#c6c6d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#0606ef) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010104black |
| Foreground | #010104black | #ffffffwhite |
| Card | #fcfcfcsnow | #020208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #010104black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #0606efblue | #0606efblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c6c6d7lightgrey | #242429darkslategray |
| Secondary foreground | #2c2c3fdarkslategray | #bbbbc4silver |
| Muted | #d7d7dfgainsboro | #202028black |
| Muted foreground | #56565ddimgray | #a2a2a9darkgray |
| Accent | #c6c6d7lightgrey | #242429darkslategray |
| Accent foreground | #2c2c3fdarkslategray | #bbbbc4silver |
| Destructive | #c0240cfirebrick | #d8290efirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0606efblue | #0606efblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 9.22:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 5.10:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.00:1 | AA |
| Text on background | 20.83:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 9.22:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.96:1 | AA |
Paste this into your globals.css to use Malnutrition in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.068 0.023 278.303);
--muted: oklch(0.883 0.011 286.179);
--muted-foreground: oklch(0.455 0.011 285.933);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.068 0.023 278.303);
--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.433 0.296 264.551);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.831 0.024 285.862);
--secondary-foreground: oklch(0.302 0.035 284.13);
--accent: oklch(0.831 0.024 285.862);
--accent-foreground: oklch(0.302 0.035 284.13);
--destructive: oklch(0.522 0.193 31.415);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.433 0.296 264.551);
--chart-1: oklch(0.433 0.296 264.551);
--chart-2: oklch(0.831 0.024 285.862);
--chart-3: oklch(0.831 0.024 285.862);
--chart-4: oklch(0.858 0.02 285.967);
--chart-5: oklch(0.436 0.301 264.247);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.075 0.017 281.534);
--foreground: oklch(1 0 180);
--muted: oklch(0.246 0.015 285.259);
--muted-foreground: oklch(0.715 0.01 286.138);
--popover: oklch(0.075 0.017 281.534);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.094 0.021 281.534);
--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.433 0.296 264.551);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.261 0.01 285.691);
--secondary-foreground: oklch(0.794 0.012 286.112);
--accent: oklch(0.261 0.01 285.691);
--accent-foreground: oklch(0.794 0.012 286.112);
--destructive: oklch(0.57 0.212 31.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.433 0.296 264.551);
--chart-1: oklch(0.433 0.296 264.551);
--chart-2: oklch(0.261 0.01 285.691);
--chart-3: oklch(0.261 0.01 285.691);
--chart-4: oklch(0.29 0.012 285.655);
--chart-5: oklch(0.436 0.301 264.247);
}