Juvenile for shadcn/ui

Juvenile is a shadcn/ui theme built around a light indigo primary color (#dddff3) with light violet accents (#e6ddf3). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the light indigo primary (#dddff3) on an indigo-tinted background (#07080d).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#07080dblack
Foreground
#020308black
#fcfcfdwhite
Card
#fbfcfdwhite
#07080dblack
Card foreground
#020308black
#fcfcfdwhite
Popover
#fbfcfdwhite
#07080dblack
Popover foreground
#020308black
#fcfcfdwhite
Primary
#dddff3lavender
#dddff3lavender
Primary foreground
#292f75midnightblue
#292f75midnightblue
Secondary
#ddeaf3lavender
#ddeaf3lavender
Secondary foreground
#295575darkslategray
#295575darkslategray
Muted
#d8e2e8gainsboro
#172027black
Muted foreground
#434547darkslategray
#b8babcsilver
Accent
#e6ddf3lavender
#e6ddf3lavender
Accent foreground
#492975darkslateblue
#492975darkslateblue
Destructive
#8a150fdarkred
#e73127crimson
Destructive foreground
#fad3d1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dddff3lavender
#dddff3lavender

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button9.05:1AAA
Secondary button6.46:1AA
Muted text7.31:1AAA
Accent8.62:1AAA
Destructive6.97:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button9.05:1AAA
Secondary button6.46:1AA
Muted text8.49:1AAA
Accent8.62:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 282.17);
  --foreground: oklch(0.096 0.021 275.577);
  --muted: oklch(0.907 0.014 238.575);
  --muted-foreground: oklch(0.389 0.004 238.521);
  --popover: oklch(0.99 0.003 282.17);
  --popover-foreground: oklch(0.096 0.021 275.577);
  --card: oklch(0.99 0.003 282.17);
  --card-foreground: oklch(0.096 0.021 275.577);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.908 0.028 281.695);
  --primary-foreground: oklch(0.345 0.118 274.489);
  --secondary: oklch(0.93 0.019 238.649);
  --secondary-foreground: oklch(0.434 0.072 242.034);
  --accent: oklch(0.911 0.031 304.572);
  --accent-foreground: oklch(0.364 0.125 299.283);
  --destructive: oklch(0.409 0.152 28.963);
  --destructive-foreground: oklch(0.9 0.044 21.557);
  --ring: oklch(0.908 0.028 281.695);
  --chart-1: oklch(0.908 0.028 281.695);
  --chart-2: oklch(0.93 0.019 238.649);
  --chart-3: oklch(0.911 0.031 304.572);
  --chart-4: oklch(0.953 0.012 238.546);
  --chart-5: oklch(0.906 0.029 281.66);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.013 279.847);
  --foreground: oklch(0.991 0.002 282.182);
  --muted: oklch(0.237 0.018 239.622);
  --muted-foreground: oklch(0.789 0.004 238.428);
  --popover: oklch(0.135 0.013 279.847);
  --popover-foreground: oklch(0.991 0.002 282.182);
  --card: oklch(0.135 0.013 279.847);
  --card-foreground: oklch(0.991 0.002 282.182);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.908 0.028 281.695);
  --primary-foreground: oklch(0.345 0.118 274.489);
  --secondary: oklch(0.93 0.019 238.649);
  --secondary-foreground: oklch(0.434 0.072 242.034);
  --accent: oklch(0.911 0.031 304.572);
  --accent-foreground: oklch(0.364 0.125 299.283);
  --destructive: oklch(0.604 0.218 28.712);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.908 0.028 281.695);
  --chart-1: oklch(0.908 0.028 281.695);
  --chart-2: oklch(0.93 0.019 238.649);
  --chart-3: oklch(0.911 0.031 304.572);
  --chart-4: oklch(0.953 0.012 238.546);
  --chart-5: oklch(0.906 0.029 281.66);
}