Childhood for shadcn/ui

Childhood is a shadcn/ui theme built around a vivid light teal primary color (#f0fff8) with vivid light teal accents (#f0ffff). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the vivid light teal primary (#f0fff8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#000000black
Foreground
#010403black
#fbfdfcwhite
Card
#f3fcf8mintcream
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f3fcf8mintcream
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#f0fff8mintcream
#f0fff8mintcream
Primary foreground
#00562ddarkgreen
#00562ddarkgreen
Secondary
#f0fff0honeydew
#f0fff0honeydew
Secondary foreground
#005602darkgreen
#005602darkgreen
Muted
#f0f4f0whitesmoke
#0b0f0bblack
Muted foreground
#546454dimgray
#9bab9bdarkgray
Accent
#f0ffffazure
#f0ffffazure
Accent foreground
#005556darkslategray
#005556darkslategray
Destructive
#e44501orangered
#fe6d2ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0fff8mintcream
#f0fff8mintcream

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card20.08:1AAA
Primary button8.58:1AAA
Secondary button8.68:1AAA
Muted text5.69:1AA
Accent8.38:1AAA
Destructive4.06:1AA Large
Dark mode
Text on background20.55:1AAA
Text on card20.67:1AAA
Primary button8.58:1AAA
Secondary button8.68:1AAA
Muted text8.00:1AAA
Accent8.38:1AAA
Destructive7.44:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 165.803);
  --foreground: oklch(0.1 0.016 166.241);
  --muted: oklch(0.964 0.007 145.992);
  --muted-foreground: oklch(0.485 0.033 145.487);
  --popover: oklch(0.983 0.012 165.692);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.012 165.692);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.987 0.019 165.506);
  --primary-foreground: oklch(0.399 0.1 153.96);
  --secondary: oklch(0.985 0.025 145.843);
  --secondary-foreground: oklch(0.394 0.133 142.674);
  --accent: oklch(0.988 0.016 198.128);
  --accent-foreground: oklch(0.407 0.069 196.766);
  --destructive: oklch(0.616 0.205 37.223);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.987 0.019 165.506);
  --chart-1: oklch(0.987 0.019 165.506);
  --chart-2: oklch(0.985 0.025 145.843);
  --chart-3: oklch(0.988 0.016 198.128);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.987 0.019 165.491);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 165.952);
  --muted: oklch(0.162 0.011 145.467);
  --muted-foreground: oklch(0.725 0.03 145.715);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.987 0.019 165.506);
  --primary-foreground: oklch(0.399 0.1 153.96);
  --secondary: oklch(0.985 0.025 145.843);
  --secondary-foreground: oklch(0.394 0.133 142.674);
  --accent: oklch(0.988 0.016 198.128);
  --accent-foreground: oklch(0.407 0.069 196.766);
  --destructive: oklch(0.705 0.191 41.234);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.987 0.019 165.506);
  --chart-1: oklch(0.987 0.019 165.506);
  --chart-2: oklch(0.985 0.025 145.843);
  --chart-3: oklch(0.988 0.016 198.128);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.987 0.019 165.491);
}