Juvenile for shadcn/ui

Juvenile is a shadcn/ui theme built around a green primary color (#c7cb9f) with indigo accents (#a39fcb). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the green primary (#c7cb9f) on a green-tinted background (#0d0e07).

Color palette

TokenLightDark
Background
#fcfcf8snow
#0d0e07black
Foreground
#0c0d03black
#fbfbf9snow
Card
#fafbf4floralwhite
#101109black
Card foreground
#080802black
#fdfdfcwhite
Popover
#fcfcf8snow
#0d0e07black
Popover foreground
#0c0d03black
#fbfbf9snow
Primary
#c7cb9ftan
#c7cb9ftan
Primary foreground
#232414black
#232414black
Secondary
#a39fcbdarkgray
#a39fcbdarkgray
Secondary foreground
#151424black
#151424black
Muted
#e1e1e5gainsboro
#1a1a1eblack
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#a39fcbdarkgray
#a39fcbdarkgray
Accent foreground
#151424black
#151424black
Destructive
#971602darkred
#fd3112orangered
Destructive foreground
#fed3cdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7cb9ftan
#c7cb9ftan

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.28:1AAA
Primary button9.36:1AAA
Secondary button7.23:1AAA
Muted text5.98:1AA
Accent7.23:1AAA
Destructive6.32:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.65:1AAA
Primary button9.36:1AAA
Secondary button7.23:1AAA
Muted text7.73:1AAA
Accent7.23:1AAA
Destructive3.74: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.006 111.133);
  --foreground: oklch(0.152 0.024 112.882);
  --muted: oklch(0.91 0.006 290.888);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(0.99 0.006 111.133);
  --popover-foreground: oklch(0.152 0.024 112.882);
  --card: oklch(0.985 0.009 111.194);
  --card-foreground: oklch(0.132 0.02 112.508);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.828 0.06 112.343);
  --primary-foreground: oklch(0.255 0.029 113.146);
  --secondary: oklch(0.721 0.064 289.268);
  --secondary-foreground: oklch(0.201 0.033 287.583);
  --accent: oklch(0.721 0.064 289.268);
  --accent-foreground: oklch(0.201 0.033 287.583);
  --destructive: oklch(0.435 0.166 31.499);
  --destructive-foreground: oklch(0.903 0.05 28.315);
  --ring: oklch(0.828 0.06 112.343);
  --chart-1: oklch(0.828 0.06 112.343);
  --chart-2: oklch(0.721 0.064 289.268);
  --chart-3: oklch(0.721 0.064 289.268);
  --chart-4: oklch(0.751 0.057 289.537);
  --chart-5: oklch(0.834 0.065 112.457);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.014 112.438);
  --foreground: oklch(0.988 0.003 111.075);
  --muted: oklch(0.219 0.009 290.255);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0.158 0.014 112.438);
  --popover-foreground: oklch(0.988 0.003 111.075);
  --card: oklch(0.173 0.017 112.742);
  --card-foreground: oklch(0.994 0.002 111.044);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.828 0.06 112.343);
  --primary-foreground: oklch(0.255 0.029 113.146);
  --secondary: oklch(0.721 0.064 289.268);
  --secondary-foreground: oklch(0.201 0.033 287.583);
  --accent: oklch(0.721 0.064 289.268);
  --accent-foreground: oklch(0.201 0.033 287.583);
  --destructive: oklch(0.641 0.239 31.356);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.828 0.06 112.343);
  --chart-1: oklch(0.828 0.06 112.343);
  --chart-2: oklch(0.721 0.064 289.268);
  --chart-3: oklch(0.721 0.064 289.268);
  --chart-4: oklch(0.751 0.057 289.537);
  --chart-5: oklch(0.834 0.065 112.457);
}