Parenting for shadcn/ui

Parenting is a shadcn/ui theme built around a muted deep teal primary color (#25413f) with muted deep blue accents (#253541). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the muted deep teal primary (#25413f) on a teal-tinted background (#040b0b).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#040b0bblack
Foreground
#041514black
#f8fcfcmintcream
Card
#f7fdfcmintcream
#040b0bblack
Card foreground
#041514black
#f8fcfcmintcream
Popover
#f7fdfcmintcream
#040b0bblack
Popover foreground
#041514black
#f8fcfcmintcream
Primary
#25413fdarkslategray
#25413fdarkslategray
Primary foreground
#bedad8powderblue
#bedad8powderblue
Secondary
#254131darkslategray
#254131darkslategray
Secondary foreground
#bedacalightgrey
#bedacalightgrey
Muted
#ebf5efhoneydew
#0a140fblack
Muted foreground
#5b6760dimgray
#98a49ddarkgray
Accent
#253541darkslategray
#253541darkslategray
Accent foreground
#becedalightsteelblue
#becedalightsteelblue
Destructive
#bb3d07firebrick
#f87035tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25413fdarkslategray
#25413fdarkslategray

Contrast

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

Light mode
Text on background18.15:1AAA
Text on card18.15:1AAA
Primary button7.47:1AAA
Secondary button7.50:1AAA
Muted text5.28:1AA
Accent7.84:1AAA
Destructive5.55:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button7.47:1AAA
Secondary button7.50:1AAA
Muted text7.25:1AAA
Accent7.84:1AAA
Destructive7.32:1AAA

CSS variables

Paste this into your globals.css to use Parenting in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 192.301);
  --foreground: oklch(0.181 0.024 189.762);
  --muted: oklch(0.96 0.013 161.486);
  --muted-foreground: oklch(0.501 0.018 160.933);
  --popover: oklch(0.989 0.006 192.301);
  --popover-foreground: oklch(0.181 0.024 189.762);
  --card: oklch(0.989 0.006 192.301);
  --card-foreground: oklch(0.181 0.024 189.762);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.352 0.034 190.338);
  --primary-foreground: oklch(0.867 0.029 191.718);
  --secondary: oklch(0.347 0.044 158.264);
  --secondary-foreground: oklch(0.863 0.036 160.753);
  --accent: oklch(0.32 0.03 241.754);
  --accent-foreground: oklch(0.843 0.024 240.679);
  --destructive: oklch(0.537 0.171 38.363);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.034 190.338);
  --chart-1: oklch(0.352 0.034 190.338);
  --chart-2: oklch(0.347 0.044 158.264);
  --chart-3: oklch(0.32 0.03 241.754);
  --chart-4: oklch(0.38 0.049 158.162);
  --chart-5: oklch(0.356 0.037 190.149);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.012 191.44);
  --foreground: oklch(0.988 0.004 192.34);
  --muted: oklch(0.18 0.019 159.012);
  --muted-foreground: oklch(0.707 0.016 161.244);
  --popover: oklch(0.141 0.012 191.44);
  --popover-foreground: oklch(0.988 0.004 192.34);
  --card: oklch(0.141 0.012 191.44);
  --card-foreground: oklch(0.988 0.004 192.34);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.352 0.034 190.338);
  --primary-foreground: oklch(0.867 0.029 191.718);
  --secondary: oklch(0.347 0.044 158.264);
  --secondary-foreground: oklch(0.863 0.036 160.753);
  --accent: oklch(0.32 0.03 241.754);
  --accent-foreground: oklch(0.843 0.024 240.679);
  --destructive: oklch(0.7 0.181 41.719);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.352 0.034 190.338);
  --chart-1: oklch(0.352 0.034 190.338);
  --chart-2: oklch(0.347 0.044 158.264);
  --chart-3: oklch(0.32 0.03 241.754);
  --chart-4: oklch(0.38 0.049 158.162);
  --chart-5: oklch(0.356 0.037 190.149);
}