Youngster for shadcn/ui

Youngster is a shadcn/ui theme built around a green primary color (#a0b253) with indigo accents (#6453b2). The light mode uses a neutral background (#fcfdf6). Dark mode keeps the green primary (#a0b253) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fcfdf6snow
#030401black
Foreground
#0b0c03black
#ffffffwhite
Card
#fcfdf6snow
#030401black
Card foreground
#0b0c03black
#ffffffwhite
Popover
#fcfdf6snow
#030401black
Popover foreground
#0b0c03black
#ffffffwhite
Primary
#a0b253darkkhaki
#a0b253darkkhaki
Primary foreground
#232711black
#232711black
Secondary
#6453b2slateblue
#6453b2slateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0eff6whitesmoke
#0b0910black
Muted foreground
#545062dimgray
#a09dafdarkgray
Accent
#6453b2slateblue
#6453b2slateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#74140bmaroon
#d12415firebrick
Destructive foreground
#f8bfb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a0b253darkkhaki
#a0b253darkkhaki

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button6.53:1AA
Secondary button6.16:1AA
Muted text6.79:1AA
Accent6.16:1AA
Destructive7.10:1AAA
Dark mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button6.53:1AA
Secondary button6.16:1AA
Muted text7.47:1AAA
Accent6.16:1AA
Destructive5.28:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.009 114.995);
  --foreground: oklch(0.15 0.023 116.041);
  --muted: oklch(0.954 0.009 294.644);
  --muted-foreground: oklch(0.442 0.029 293.576);
  --popover: oklch(0.992 0.009 114.995);
  --popover-foreground: oklch(0.15 0.023 116.041);
  --card: oklch(0.992 0.009 114.995);
  --card-foreground: oklch(0.15 0.023 116.041);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.728 0.122 118.178);
  --primary-foreground: oklch(0.261 0.037 117.533);
  --secondary: oklch(0.506 0.145 288.543);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.506 0.145 288.543);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.364 0.131 29.902);
  --destructive-foreground: oklch(0.854 0.067 24.521);
  --ring: oklch(0.728 0.122 118.178);
  --chart-1: oklch(0.728 0.122 118.178);
  --chart-2: oklch(0.506 0.145 288.543);
  --chart-3: oklch(0.506 0.145 288.543);
  --chart-4: oklch(0.537 0.136 289.455);
  --chart-5: oklch(0.738 0.13 118.388);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.012 115.423);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.147 0.015 292.946);
  --muted-foreground: oklch(0.704 0.026 294.134);
  --popover: oklch(0.101 0.012 115.423);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.101 0.012 115.423);
  --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.728 0.122 118.178);
  --primary-foreground: oklch(0.261 0.037 117.533);
  --secondary: oklch(0.506 0.145 288.543);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.506 0.145 288.543);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.554 0.208 30.062);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.728 0.122 118.178);
  --chart-1: oklch(0.728 0.122 118.178);
  --chart-2: oklch(0.506 0.145 288.543);
  --chart-3: oklch(0.506 0.145 288.543);
  --chart-4: oklch(0.537 0.136 289.455);
  --chart-5: oklch(0.738 0.13 118.388);
}