Micronutrient is a shadcn/ui theme built around a muted yellow primary color (#aead98) with neutral gray accents (#e0e0e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#aead98) on a yellow-tinted background (#0f0e05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0e05black |
| Foreground | #040401black | #fafaf5whitesmoke |
| Card | #fcfcfcsnow | #131207black |
| Card foreground | #000000black | #fcfbf8snow |
| Popover | #ffffffwhite | #0f0e05black |
| Popover foreground | #040401black | #fafaf5whitesmoke |
| Primary | #aead98darkgray | #aead98darkgray |
| Primary foreground | #0b0b09black | #0b0b09black |
| Secondary | #e0e0e0gainsboro | #2f2e23darkslategray |
| Secondary foreground | #474747darkslategray | #cac9b9silver |
| Muted | #eed8d8gainsboro | #272611black |
| Muted foreground | #5a4949darkolivegreen | #b6b4a5darkgray |
| Accent | #e0e0e0gainsboro | #2f2e23darkslategray |
| Accent foreground | #474747darkslategray | #cac9b9silver |
| Destructive | #88180cdarkred | #ed3f2corangered |
| Destructive foreground | #fbd0cbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aead98darkgray | #aead98darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.64:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 18.43:1 | AAA |
| Text on card | 18.16:1 | AAA |
| Primary button | 8.64:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Micronutrient in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.014 105.934);
--muted: oklch(0.9 0.025 17.624);
--muted-foreground: oklch(0.424 0.022 18.063);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.014 105.934);
--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.742 0.029 103.732);
--primary-foreground: oklch(0.15 0.005 103.677);
--secondary: oklch(0.908 0 180);
--secondary-foreground: oklch(0.399 0 180);
--accent: oklch(0.908 0 180);
--accent-foreground: oklch(0.399 0 180);
--destructive: oklch(0.407 0.148 30.505);
--destructive-foreground: oklch(0.893 0.048 25.525);
--ring: oklch(0.742 0.029 103.732);
--chart-1: oklch(0.742 0.029 103.732);
--chart-2: oklch(0.908 0 180);
--chart-3: oklch(0.908 0 180);
--chart-4: oklch(0.931 0 180);
--chart-5: oklch(0.749 0.036 103.867);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.019 105.111);
--foreground: oklch(0.983 0.007 103.219);
--muted: oklch(0.263 0.035 104.951);
--muted-foreground: oklch(0.768 0.021 103.559);
--popover: oklch(0.163 0.019 105.111);
--popover-foreground: oklch(0.983 0.007 103.219);
--card: oklch(0.18 0.022 104.974);
--card-foreground: oklch(0.989 0.004 103.181);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.742 0.029 103.732);
--primary-foreground: oklch(0.15 0.005 103.677);
--secondary: oklch(0.297 0.019 104.081);
--secondary-foreground: oklch(0.833 0.022 103.536);
--accent: oklch(0.297 0.019 104.081);
--accent-foreground: oklch(0.833 0.022 103.536);
--destructive: oklch(0.626 0.213 30.282);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.742 0.029 103.732);
--chart-1: oklch(0.742 0.029 103.732);
--chart-2: oklch(0.297 0.019 104.081);
--chart-3: oklch(0.297 0.019 104.081);
--chart-4: oklch(0.331 0.021 104.114);
--chart-5: oklch(0.749 0.036 103.867);
}