Meager is a shadcn/ui theme built around a red primary color (#d84166) with teal accents (#41d8b2). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#d84166) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080204black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #040102black | #ffffffwhite |
| Primary | #d84166indianred | #d84166indianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #41d8b2mediumturquoise | #41d8b2mediumturquoise |
| Secondary foreground | #0d3f33darkslategray | #0d3f33darkslategray |
| Muted | #deede9lavender | #12211dblack |
| Muted foreground | #4d5b58darkslategray | #a4b2aedarkgray |
| Accent | #41d8b2mediumturquoise | #41d8b2mediumturquoise |
| Accent foreground | #0d3f33darkslategray | #0d3f33darkslategray |
| Destructive | #610d0amaroon | #e7241dcrimson |
| Destructive foreground | #f6aaa7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d84166indianred | #d84166indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 4.32:1 | AA Large |
| Secondary button | 6.58:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.32:1 | AA Large |
| Secondary button | 6.58:1 | AA |
| Muted text | 7.56:1 | AAA |
| Accent | 6.58:1 | AA |
| Destructive | 4.49: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.105 0.019 359.788);
--muted: oklch(0.934 0.017 179.34);
--muted-foreground: oklch(0.458 0.018 178.728);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.083 0.015 359.788);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.015 359.788);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.602 0.188 10.142);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.794 0.137 172.199);
--secondary-foreground: oklch(0.333 0.057 172.317);
--accent: oklch(0.794 0.137 172.199);
--accent-foreground: oklch(0.333 0.057 172.317);
--destructive: oklch(0.319 0.117 28.233);
--destructive-foreground: oklch(0.81 0.09 21.432);
--ring: oklch(0.602 0.188 10.142);
--chart-1: oklch(0.602 0.188 10.142);
--chart-2: oklch(0.794 0.137 172.199);
--chart-3: oklch(0.794 0.137 172.199);
--chart-4: oklch(0.805 0.131 173.007);
--chart-5: oklch(0.604 0.195 10.724);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 359.923);
--muted: oklch(0.233 0.022 176.73);
--muted-foreground: oklch(0.751 0.016 179.257);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.602 0.188 10.142);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.794 0.137 172.199);
--secondary-foreground: oklch(0.333 0.057 172.317);
--accent: oklch(0.794 0.137 172.199);
--accent-foreground: oklch(0.333 0.057 172.317);
--destructive: oklch(0.596 0.227 28.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.602 0.188 10.142);
--chart-1: oklch(0.602 0.188 10.142);
--chart-2: oklch(0.794 0.137 172.199);
--chart-3: oklch(0.794 0.137 172.199);
--chart-4: oklch(0.805 0.131 173.007);
--chart-5: oklch(0.604 0.195 10.724);
}