Infantile for shadcn/ui

Infantile is a shadcn/ui theme built around a vivid pink primary color (#b5126e) with vivid blue accents (#126eb5). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the vivid pink primary (#b5126e) on a pink-tinted background (#10040b).

Color palette

TokenLightDark
Background
#fcf7fasnow
#10040bblack
Foreground
#10040bblack
#faf5f8whitesmoke
Card
#fbf4f8lavenderblush
#14050eblack
Card foreground
#0c0308black
#fcf8fasnow
Popover
#fcf7fasnow
#10040bblack
Popover foreground
#10040bblack
#faf5f8whitesmoke
Primary
#b5126emediumvioletred
#b5126emediumvioletred
Primary foreground
#fffafdsnow
#fffafdsnow
Secondary
#6eb512olivedrab
#6eb512olivedrab
Secondary foreground
#000000black
#000000black
Muted
#edeeecwhitesmoke
#121311black
Muted foreground
#5a5f54dimgray
#a6aba0darkgray
Accent
#126eb5darkcyan
#126eb5darkcyan
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#751200maroon
#ff2600orangered
Destructive foreground
#ffb5a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b5126emediumvioletred
#b5126emediumvioletred

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card18.74:1AAA
Primary button6.20:1AA
Secondary button8.28:1AAA
Muted text5.65:1AA
Accent5.33:1AA
Destructive6.73:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.82:1AAA
Primary button6.20:1AA
Secondary button8.28:1AAA
Muted text7.94:1AAA
Accent5.33:1AA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 341.969);
  --foreground: oklch(0.135 0.03 344.078);
  --muted: oklch(0.949 0.004 125.789);
  --muted-foreground: oklch(0.477 0.018 126.244);
  --popover: oklch(0.982 0.007 341.969);
  --popover-foreground: oklch(0.135 0.03 344.078);
  --card: oklch(0.973 0.01 342.051);
  --card-foreground: oklch(0.121 0.027 342.24);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.512 0.202 353.978);
  --primary-foreground: oklch(0.99 0.005 341.938);
  --secondary: oklch(0.699 0.19 132.26);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.527 0.136 248.47);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.364 0.136 32.583);
  --destructive-foreground: oklch(0.84 0.088 30.209);
  --ring: oklch(0.512 0.202 353.978);
  --chart-1: oklch(0.512 0.202 353.978);
  --chart-2: oklch(0.699 0.19 132.26);
  --chart-3: oklch(0.527 0.136 248.47);
  --chart-4: oklch(0.739 0.201 132.317);
  --chart-5: oklch(0.516 0.205 354.465);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.028 343.952);
  --foreground: oklch(0.974 0.007 341.978);
  --muted: oklch(0.185 0.005 126.123);
  --muted-foreground: oklch(0.735 0.016 126.032);
  --popover: oklch(0.136 0.028 343.952);
  --popover-foreground: oklch(0.974 0.007 341.978);
  --card: oklch(0.148 0.032 345.371);
  --card-foreground: oklch(0.983 0.005 341.92);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.512 0.202 353.978);
  --primary-foreground: oklch(0.99 0.005 341.938);
  --secondary: oklch(0.699 0.19 132.26);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.527 0.136 248.47);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.639 0.247 31.221);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.512 0.202 353.978);
  --chart-1: oklch(0.512 0.202 353.978);
  --chart-2: oklch(0.699 0.19 132.26);
  --chart-3: oklch(0.527 0.136 248.47);
  --chart-4: oklch(0.739 0.201 132.317);
  --chart-5: oklch(0.516 0.205 354.465);
}