Parenting is a shadcn/ui theme built around a vivid purple primary color (#e370f5) with vivid green accents (#82f570). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the vivid purple primary (#e370f5) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #070208black |
| Foreground | #0b030cblack | #ffffffwhite |
| Card | #fcf7fdghostwhite | #070208black |
| Card foreground | #0b030cblack | #ffffffwhite |
| Popover | #fcf7fdghostwhite | #070208black |
| Popover foreground | #0b030cblack | #ffffffwhite |
| Primary | #e370f5violet | #e370f5violet |
| Primary foreground | #2a0330black | #2a0330black |
| Secondary | #82f570lightgreen | #82f570lightgreen |
| Secondary foreground | #093003black | #093003black |
| Muted | #e7efe6beige | #111910black |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #82f570lightgreen | #82f570lightgreen |
| Accent foreground | #093003black | #093003black |
| Destructive | #a24610saddlebrown | #ed8345coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e370f5violet | #e370f5violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 10.61:1 | AAA |
| Muted text | 5.28:1 | AA |
| Accent | 10.61:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 20.54:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 10.61:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 10.61:1 | AAA |
| Destructive | 7.90:1 | AAA |
Paste this into your globals.css to use Parenting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 321.618);
--foreground: oklch(0.121 0.031 323.275);
--muted: oklch(0.944 0.015 141.549);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.982 0.009 321.618);
--popover-foreground: oklch(0.121 0.031 323.275);
--card: oklch(0.982 0.009 321.618);
--card-foreground: oklch(0.121 0.031 323.275);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.728 0.215 322.143);
--primary-foreground: oklch(0.209 0.09 322.069);
--secondary: oklch(0.874 0.202 141.082);
--secondary-foreground: oklch(0.271 0.083 140.822);
--accent: oklch(0.874 0.202 141.082);
--accent-foreground: oklch(0.271 0.083 140.822);
--destructive: oklch(0.508 0.137 45.05);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.215 322.143);
--chart-1: oklch(0.728 0.215 322.143);
--chart-2: oklch(0.874 0.202 141.082);
--chart-3: oklch(0.874 0.202 141.082);
--chart-4: oklch(0.883 0.185 141.094);
--chart-5: oklch(0.729 0.221 322.142);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.025 323.461);
--foreground: oklch(1 0 180);
--muted: oklch(0.202 0.021 141.303);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.107 0.025 323.461);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.025 323.461);
--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.728 0.215 322.143);
--primary-foreground: oklch(0.209 0.09 322.069);
--secondary: oklch(0.874 0.202 141.082);
--secondary-foreground: oklch(0.271 0.083 140.822);
--accent: oklch(0.874 0.202 141.082);
--accent-foreground: oklch(0.271 0.083 140.822);
--destructive: oklch(0.715 0.15 48.632);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.728 0.215 322.143);
--chart-1: oklch(0.728 0.215 322.143);
--chart-2: oklch(0.874 0.202 141.082);
--chart-3: oklch(0.874 0.202 141.082);
--chart-4: oklch(0.883 0.185 141.094);
--chart-5: oklch(0.729 0.221 322.142);
}