Youthful for shadcn/ui

Youthful is a shadcn/ui theme built around a vivid teal primary color (#03ddd2) with neutral gray accents (#d8d9d9). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the vivid teal primary (#03ddd2) on a teal-tinted background (#04100f).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#04100fblack
Foreground
#010404black
#f9fbfbghostwhite
Card
#f7fdfcmintcream
#04100fblack
Card foreground
#010404black
#f9fbfbghostwhite
Popover
#f7fdfcmintcream
#04100fblack
Popover foreground
#010404black
#f9fbfbghostwhite
Primary
#03ddd2darkturquoise
#03ddd2darkturquoise
Primary foreground
#001413black
#001413black
Secondary
#d8d9d9gainsboro
#2b3131darkslategray
Secondary foreground
#3f4040darkslategray
#c3cbcasilver
Muted
#dfe7e7gainsboro
#182020black
Muted foreground
#636969dimgray
#969c9cdarkgray
Accent
#d8d9d9gainsboro
#2b3131darkslategray
Accent foreground
#3f4040darkslategray
#c3cbcasilver
Destructive
#8c0f0ddarkred
#e91916red
Destructive foreground
#fbd1d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#03ddd2darkturquoise
#03ddd2darkturquoise

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button11.07:1AAA
Secondary button7.36:1AAA
Muted text4.45:1AA Large
Accent7.36:1AAA
Destructive6.91:1AA
Dark mode
Text on background18.61:1AAA
Text on card18.61:1AAA
Primary button11.07:1AAA
Secondary button8.01:1AAA
Muted text5.93:1AA
Accent8.01:1AAA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 193.497);
  --foreground: oklch(0.099 0.011 192.437);
  --muted: oklch(0.922 0.009 193.414);
  --muted-foreground: oklch(0.516 0.008 193.317);
  --popover: oklch(0.989 0.006 193.497);
  --popover-foreground: oklch(0.099 0.011 192.437);
  --card: oklch(0.989 0.006 193.497);
  --card-foreground: oklch(0.099 0.011 192.437);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.809 0.14 188.48);
  --primary-foreground: oklch(0.173 0.029 190.784);
  --secondary: oklch(0.885 0.001 193.588);
  --secondary-foreground: oklch(0.372 0.002 193.515);
  --accent: oklch(0.885 0.001 193.588);
  --accent-foreground: oklch(0.372 0.002 193.515);
  --destructive: oklch(0.409 0.158 28.391);
  --destructive-foreground: oklch(0.896 0.047 19.211);
  --ring: oklch(0.809 0.14 188.48);
  --chart-1: oklch(0.809 0.14 188.48);
  --chart-2: oklch(0.885 0.001 193.588);
  --chart-3: oklch(0.885 0.001 193.588);
  --chart-4: oklch(0.908 0.001 193.593);
  --chart-5: oklch(0.818 0.142 188.386);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.161 0.018 191.707);
  --foreground: oklch(0.986 0.002 193.568);
  --muted: oklch(0.236 0.012 192.591);
  --muted-foreground: oklch(0.688 0.007 193.404);
  --popover: oklch(0.161 0.018 191.707);
  --popover-foreground: oklch(0.986 0.002 193.568);
  --card: oklch(0.161 0.018 191.707);
  --card-foreground: oklch(0.986 0.002 193.568);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.809 0.14 188.48);
  --primary-foreground: oklch(0.173 0.029 190.784);
  --secondary: oklch(0.307 0.009 193.035);
  --secondary-foreground: oklch(0.835 0.009 193.403);
  --accent: oklch(0.307 0.009 193.035);
  --accent-foreground: oklch(0.835 0.009 193.403);
  --destructive: oklch(0.594 0.234 28.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.809 0.14 188.48);
  --chart-1: oklch(0.809 0.14 188.48);
  --chart-2: oklch(0.307 0.009 193.035);
  --chart-3: oklch(0.307 0.009 193.035);
  --chart-4: oklch(0.339 0.01 193.016);
  --chart-5: oklch(0.818 0.142 188.386);
}