Parenting is a shadcn/ui theme built around a muted light purple primary color (#dcd0d9) with muted light cyan accents (#d0d9dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#dcd0d9) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040103black |
| Foreground | #090107black | #f9f6f8whitesmoke |
| Card | #fcfcfcsnow | #080207black |
| Card foreground | #040103black | #fbf9fasnow |
| Popover | #fcfcfcsnow | #080207black |
| Popover foreground | #040103black | #fbf9fasnow |
| Primary | #dcd0d9lightgrey | #dcd0d9lightgrey |
| Primary foreground | #463442darkslategray | #463442darkslategray |
| Secondary | #d9dcd0lightgrey | #d9dcd0lightgrey |
| Secondary foreground | #424634darkslategray | #424634darkslategray |
| Muted | #eff1e9linen | #14160eblack |
| Muted foreground | #44463fdarkslategray | #bec0b9silver |
| Accent | #d0d9dclightgrey | #d0d9dclightgrey |
| Accent foreground | #344246darkslategray | #344246darkslategray |
| Destructive | #830a01maroon | #fd2112red |
| Destructive foreground | #febdb8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dcd0d9lightgrey | #dcd0d9lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 8.41:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 9.93:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Parenting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.105 0.031 334.837);
--muted: oklch(0.955 0.011 118.03);
--muted-foreground: oklch(0.389 0.011 118.334);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.083 0.024 334.837);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.024 334.837);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.87 0.018 334.227);
--primary-foreground: oklch(0.351 0.034 335.444);
--secondary: oklch(0.89 0.017 118.159);
--secondary-foreground: oklch(0.386 0.03 119.245);
--accent: oklch(0.88 0.011 219.602);
--accent-foreground: oklch(0.368 0.02 220.078);
--destructive: oklch(0.388 0.153 30.256);
--destructive-foreground: oklch(0.857 0.076 23.418);
--ring: oklch(0.87 0.018 334.227);
--chart-1: oklch(0.87 0.018 334.227);
--chart-2: oklch(0.89 0.017 118.159);
--chart-3: oklch(0.88 0.011 219.602);
--chart-4: oklch(0.911 0.014 118.089);
--chart-5: oklch(0.869 0.022 334.297);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.018 334.615);
--foreground: oklch(0.975 0.005 333.965);
--muted: oklch(0.195 0.016 119.317);
--muted-foreground: oklch(0.805 0.009 118.03);
--popover: oklch(0.107 0.023 334.615);
--popover-foreground: oklch(0.984 0.003 333.935);
--card: oklch(0.107 0.023 334.615);
--card-foreground: oklch(0.984 0.003 333.935);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.87 0.018 334.227);
--primary-foreground: oklch(0.351 0.034 335.444);
--secondary: oklch(0.89 0.017 118.159);
--secondary-foreground: oklch(0.386 0.03 119.245);
--accent: oklch(0.88 0.011 219.602);
--accent-foreground: oklch(0.368 0.02 220.078);
--destructive: oklch(0.633 0.247 29.748);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.87 0.018 334.227);
--chart-1: oklch(0.87 0.018 334.227);
--chart-2: oklch(0.89 0.017 118.159);
--chart-3: oklch(0.88 0.011 219.602);
--chart-4: oklch(0.911 0.014 118.089);
--chart-5: oklch(0.869 0.022 334.297);
}