Meager is a shadcn/ui theme built around a near-black primary color (#070308) with near-black accents (#030807). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the near-black primary (#070308) on a purple-tinted background (#0b040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fdsnow | #0b040cblack |
| Foreground | #040105black | #ffffffwhite |
| Card | #fdf7fdsnow | #0b040cblack |
| Card foreground | #040105black | #ffffffwhite |
| Popover | #fdf7fdsnow | #0b040cblack |
| Popover foreground | #040105black | #ffffffwhite |
| Primary | #070308black | #070308black |
| Primary foreground | #c86ecforchid | #c86ecforchid |
| Secondary | #080703black | #080703black |
| Secondary foreground | #a19a36peru | #a19a36peru |
| Muted | #e0dfd1gainsboro | #2e2d1fdarkslategray |
| Muted foreground | #565652dimgray | #adaca9darkgray |
| Accent | #030807black | #030807black |
| Accent foreground | #36a19alightseagreen | #36a19alightseagreen |
| Destructive | #81250esaddlebrown | #cf3c17firebrick |
| Destructive foreground | #f9d2c8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #070308black | #070308black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.89:1 | AA |
| Muted text | 5.51:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 6.85:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.89:1 | AA |
| Muted text | 6.13:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 4.89:1 | AA |
Paste this into your globals.css to use Meager in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.011 323.691);
--foreground: oklch(0.083 0.028 325.978);
--muted: oklch(0.902 0.019 103.457);
--muted-foreground: oklch(0.451 0.005 103.293);
--popover: oklch(0.982 0.011 323.691);
--popover-foreground: oklch(0.083 0.028 325.978);
--card: oklch(0.982 0.011 323.691);
--card-foreground: oklch(0.083 0.028 325.978);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.109 0.022 325.143);
--primary-foreground: oklch(0.674 0.167 324.745);
--secondary: oklch(0.128 0.015 105.692);
--secondary-foreground: oklch(0.672 0.12 105.233);
--accent: oklch(0.124 0.012 191.496);
--accent-foreground: oklch(0.646 0.096 188.707);
--destructive: oklch(0.406 0.13 34.653);
--destructive-foreground: oklch(0.894 0.046 34.339);
--ring: oklch(0.109 0.022 325.143);
--chart-1: oklch(0.109 0.022 325.143);
--chart-2: oklch(0.128 0.015 105.692);
--chart-3: oklch(0.124 0.012 191.496);
--chart-4: oklch(0.18 0.023 105.034);
--chart-5: oklch(0.108 0.023 325.235);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.027 325.106);
--foreground: oklch(1 0 180);
--muted: oklch(0.293 0.025 104.376);
--muted-foreground: oklch(0.745 0.004 103.207);
--popover: oklch(0.124 0.027 325.106);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.027 325.106);
--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.109 0.022 325.143);
--primary-foreground: oklch(0.674 0.167 324.745);
--secondary: oklch(0.128 0.015 105.692);
--secondary-foreground: oklch(0.672 0.12 105.233);
--accent: oklch(0.124 0.012 191.496);
--accent-foreground: oklch(0.646 0.096 188.707);
--destructive: oklch(0.569 0.189 34.342);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.109 0.022 325.143);
--chart-1: oklch(0.109 0.022 325.143);
--chart-2: oklch(0.128 0.015 105.692);
--chart-3: oklch(0.124 0.012 191.496);
--chart-4: oklch(0.18 0.023 105.034);
--chart-5: oklch(0.108 0.023 325.235);
}