Parenting for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.60:1AAA
Text on card20.32:1AAA
Primary button7.69:1AAA
Secondary button7.01:1AAA
Muted text8.41:1AAA
Accent7.28:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.58:1AAA
Primary button7.69:1AAA
Secondary button7.01:1AAA
Muted text9.93:1AAA
Accent7.28:1AAA
Destructive3.89:1AA Large

CSS variables

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);
}