Maternity is a shadcn/ui theme built around a muted yellow primary color (#b2b19f) with muted light yellow accents (#c9c8ba). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the muted yellow primary (#b2b19f) on a neutral background (#080802).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf6snow | #080802black |
| Foreground | #121103black | #ffffffwhite |
| Card | #fdfcf2floralwhite | #0c0c03black |
| Card foreground | #0d0d02black | #ffffffwhite |
| Popover | #fdfcf2floralwhite | #0c0c03black |
| Popover foreground | #0d0d02black | #ffffffwhite |
| Primary | #b2b19fdarkgray | #b2b19fdarkgray |
| Primary foreground | #11110eblack | #11110eblack |
| Secondary | #ddddd9gainsboro | #1c1b17black |
| Secondary foreground | #46463edarkslategray | #b9b8acdarkgray |
| Muted | #f1f1e9linen | #16160eblack |
| Muted foreground | #63624bdimgray | #b4b39cdarkgray |
| Accent | #c9c8basilver | #2f2e23darkslategray |
| Accent foreground | #2e2d24darkslategray | #cbcab9silver |
| Destructive | #6f2d0csaddlebrown | #e7601dchocolate |
| Destructive foreground | #f7cbb5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2b19fdarkgray | #b2b19fdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.58:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 5.47:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 8.23:1 | AAA |
| Destructive | 6.10:1 | AA |
Paste this into your globals.css to use Maternity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 104.121);
--foreground: oklch(0.174 0.03 106.748);
--muted: oklch(0.956 0.011 104.164);
--muted-foreground: oklch(0.489 0.035 105.116);
--popover: oklch(0.989 0.013 104.195);
--popover-foreground: oklch(0.154 0.026 106.994);
--card: oklch(0.989 0.013 104.195);
--card-foreground: oklch(0.154 0.026 106.994);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.756 0.025 104.529);
--primary-foreground: oklch(0.176 0.006 104.578);
--secondary: oklch(0.897 0.005 104.076);
--secondary-foreground: oklch(0.392 0.012 104.501);
--accent: oklch(0.831 0.019 104.359);
--accent-foreground: oklch(0.295 0.016 104.866);
--destructive: oklch(0.385 0.103 43.31);
--destructive-foreground: oklch(0.875 0.058 48.033);
--ring: oklch(0.756 0.025 104.529);
--chart-1: oklch(0.756 0.025 104.529);
--chart-2: oklch(0.897 0.005 104.076);
--chart-3: oklch(0.831 0.019 104.359);
--chart-4: oklch(0.92 0.004 104.051);
--chart-5: oklch(0.762 0.032 104.664);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.017 106.642);
--foreground: oklch(1 0 180);
--muted: oklch(0.196 0.015 105.218);
--muted-foreground: oklch(0.762 0.032 104.664);
--popover: oklch(0.149 0.02 106.471);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.149 0.02 106.471);
--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.756 0.025 104.529);
--primary-foreground: oklch(0.176 0.006 104.578);
--secondary: oklch(0.222 0.007 104.522);
--secondary-foreground: oklch(0.78 0.016 104.322);
--accent: oklch(0.299 0.02 105.048);
--accent-foreground: oklch(0.835 0.024 104.448);
--destructive: oklch(0.653 0.183 42.554);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.756 0.025 104.529);
--chart-1: oklch(0.756 0.025 104.529);
--chart-2: oklch(0.222 0.007 104.522);
--chart-3: oklch(0.299 0.02 105.048);
--chart-4: oklch(0.257 0.009 104.566);
--chart-5: oklch(0.762 0.032 104.664);
}