Motherly is a shadcn/ui theme built around a vivid green primary color (#16f359) with vivid orange accents (#f35916). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#16f359) on a green-tinted background (#040c06).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #040c06black |
| Foreground | #020804black | #f6f9f7whitesmoke |
| Card | #f7fdf9mintcream | #051008black |
| Card foreground | #010402black | #f9fbfamintcream |
| Popover | #f7fdf9mintcream | #051008black |
| Popover foreground | #010402black | #f9fbfamintcream |
| Primary | #16f359springgreen | #16f359springgreen |
| Primary foreground | #033a14darkgreen | #033a14darkgreen |
| Secondary | #5916f3blueviolet | #5916f3blueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2f2f3whitesmoke | #0c0c0dblack |
| Muted foreground | #5e5770dimgray | #968fa8darkgray |
| Accent | #f35916orangered | #f35916orangered |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b61411firebrick | #ec3936crimson |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #16f359springgreen | #16f359springgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 8.62:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 3.37:1 | AA Large |
| Destructive | 6.56:1 | AA |
| Text on background | 18.71:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 8.62:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 3.37:1 | AA Large |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Motherly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 155.784);
--foreground: oklch(0.123 0.018 155.415);
--muted: oklch(0.961 0.002 300.008);
--muted-foreground: oklch(0.472 0.042 298.514);
--popover: oklch(0.988 0.009 155.698);
--popover-foreground: oklch(0.097 0.014 155.415);
--card: oklch(0.988 0.009 155.698);
--card-foreground: oklch(0.097 0.014 155.415);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.84 0.25 146.438);
--primary-foreground: oklch(0.305 0.085 148.059);
--secondary: oklch(0.486 0.278 282.117);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.661 0.201 39.387);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.495 0.193 28.597);
--destructive-foreground: oklch(0.989 0.004 18.43);
--ring: oklch(0.84 0.25 146.438);
--chart-1: oklch(0.84 0.25 146.438);
--chart-2: oklch(0.486 0.278 282.117);
--chart-3: oklch(0.661 0.201 39.387);
--chart-4: oklch(0.505 0.27 284.869);
--chart-5: oklch(0.849 0.255 146.217);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.021 155.271);
--foreground: oklch(0.979 0.004 155.789);
--muted: oklch(0.156 0.003 299.742);
--muted-foreground: oklch(0.664 0.039 299.05);
--popover: oklch(0.157 0.024 154.326);
--popover-foreground: oklch(0.986 0.003 155.816);
--card: oklch(0.157 0.024 154.326);
--card-foreground: oklch(0.986 0.003 155.816);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.84 0.25 146.438);
--primary-foreground: oklch(0.305 0.085 148.059);
--secondary: oklch(0.486 0.278 282.117);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.661 0.201 39.387);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.621 0.215 26.88);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.84 0.25 146.438);
--chart-1: oklch(0.84 0.25 146.438);
--chart-2: oklch(0.486 0.278 282.117);
--chart-3: oklch(0.661 0.201 39.387);
--chart-4: oklch(0.505 0.27 284.869);
--chart-5: oklch(0.849 0.255 146.217);
}