Meager is a shadcn/ui theme built around a muted deep orange primary color (#433b32) with muted deep yellow accents (#434332). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#433b32) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #f8f7f6whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fbfaf9snow |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #fbfaf9snow |
| Primary | #433b32darkslategray | #433b32darkslategray |
| Primary foreground | #dad4cdlightgrey | #dad4cdlightgrey |
| Secondary | #433232darkslategray | #433232darkslategray |
| Secondary foreground | #dacecdlightgrey | #dacecdlightgrey |
| Muted | #eeddddgainsboro | #221111black |
| Muted foreground | #655353dimgray | #ac9b9adarkgray |
| Accent | #434332darkslategray | #434332darkslategray |
| Accent foreground | #dadacdlightgrey | #dadacdlightgrey |
| Destructive | #832207maroon | #ed3d0corangered |
| Destructive foreground | #fccdc0peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #433b32darkslategray | #433b32darkslategray |
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 | 7.44:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Meager in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.912 0.019 19.904);
--muted-foreground: oklch(0.461 0.024 20.377);
--popover: oklch(0.992 0 161.565);
--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.359 0.019 70.868);
--primary-foreground: oklch(0.873 0.012 71.333);
--secondary: oklch(0.338 0.025 20.745);
--secondary-foreground: oklch(0.86 0.014 19.837);
--accent: oklch(0.379 0.029 109.274);
--accent-foreground: oklch(0.885 0.018 108.3);
--destructive: oklch(0.406 0.136 34.879);
--destructive-foreground: oklch(0.885 0.056 35.963);
--ring: oklch(0.359 0.019 70.868);
--chart-1: oklch(0.359 0.019 70.868);
--chart-2: oklch(0.338 0.025 20.745);
--chart-3: oklch(0.379 0.029 109.274);
--chart-4: oklch(0.366 0.027 20.776);
--chart-5: oklch(0.36 0.023 70.718);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.002 71.434);
--muted: oklch(0.203 0.029 22.082);
--muted-foreground: oklch(0.704 0.021 20.039);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.985 0.001 71.44);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.001 71.44);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.359 0.019 70.868);
--primary-foreground: oklch(0.873 0.012 71.333);
--secondary: oklch(0.338 0.025 20.745);
--secondary-foreground: oklch(0.86 0.014 19.837);
--accent: oklch(0.379 0.029 109.274);
--accent-foreground: oklch(0.885 0.018 108.3);
--destructive: oklch(0.624 0.218 34.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.359 0.019 70.868);
--chart-1: oklch(0.359 0.019 70.868);
--chart-2: oklch(0.338 0.025 20.745);
--chart-3: oklch(0.379 0.029 109.274);
--chart-4: oklch(0.366 0.027 20.776);
--chart-5: oklch(0.36 0.023 70.718);
}