Young for shadcn/ui

Young is a shadcn/ui theme built around a vivid deep orange primary color (#722408) with muted orange accents (#caafa5). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the vivid deep orange primary (#722408) on an orange-tinted background (#0b0604).

Color palette

TokenLightDark
Background
#fcf9f8snow
#0b0604black
Foreground
#160804black
#fdfcfcsnow
Card
#fbf6f4whitesmoke
#0f0805black
Card foreground
#120703black
#ffffffwhite
Popover
#fbf6f4whitesmoke
#0f0805black
Popover foreground
#120703black
#ffffffwhite
Primary
#722408maroon
#722408maroon
Primary foreground
#fac6b3peachpuff
#fac6b3peachpuff
Secondary
#d6c7c2lightgrey
#1d1c1bblack
Secondary foreground
#3d2e29darkslategray
#b7b4b3silver
Muted
#f3f2f1whitesmoke
#0e0c0cblack
Muted foreground
#635854dimgray
#aba09cdarkgray
Accent
#caafa5tan
#322c2adarkslategray
Accent foreground
#271b17black
#cbc5c2silver
Destructive
#b2450asaddlebrown
#f15d0eorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#722408maroon
#722408maroon

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.48:1AAA
Primary button6.96:1AA
Secondary button7.91:1AAA
Muted text6.14:1AA
Accent8.11:1AAA
Destructive5.58:1AA
Dark mode
Text on background19.67:1AAA
Text on card19.86:1AAA
Primary button6.96:1AA
Secondary button8.28:1AAA
Muted text7.64:1AAA
Accent8.04:1AAA
Destructive6.32:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.004 41.271);
  --foreground: oklch(0.156 0.028 46.612);
  --muted: oklch(0.962 0.002 41.292);
  --muted-foreground: oklch(0.471 0.015 41.087);
  --popover: oklch(0.976 0.006 41.254);
  --popover-foreground: oklch(0.143 0.024 49.027);
  --card: oklch(0.976 0.006 41.254);
  --card-foreground: oklch(0.143 0.024 49.027);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.379 0.116 38.001);
  --primary-foreground: oklch(0.867 0.065 40.917);
  --secondary: oklch(0.841 0.018 41.148);
  --secondary-foreground: oklch(0.317 0.024 40.915);
  --accent: oklch(0.775 0.035 41.029);
  --accent-foreground: oklch(0.235 0.02 40.884);
  --destructive: oklch(0.533 0.155 42.393);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.379 0.116 38.001);
  --chart-1: oklch(0.379 0.116 38.001);
  --chart-2: oklch(0.841 0.018 41.148);
  --chart-3: oklch(0.775 0.035 41.029);
  --chart-4: oklch(0.865 0.016 41.173);
  --chart-5: oklch(0.381 0.119 37.765);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.013 47.563);
  --foreground: oklch(0.992 0.001 41.293);
  --muted: oklch(0.157 0.002 41.189);
  --muted-foreground: oklch(0.713 0.014 41.164);
  --popover: oklch(0.143 0.015 45.719);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.015 45.719);
  --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.379 0.116 38.001);
  --primary-foreground: oklch(0.867 0.065 40.917);
  --secondary: oklch(0.226 0.002 41.233);
  --secondary-foreground: oklch(0.772 0.004 41.263);
  --accent: oklch(0.299 0.009 41.108);
  --accent-foreground: oklch(0.827 0.008 41.229);
  --destructive: oklch(0.664 0.197 41.831);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.379 0.116 38.001);
  --chart-1: oklch(0.379 0.116 38.001);
  --chart-2: oklch(0.226 0.002 41.233);
  --chart-3: oklch(0.299 0.009 41.108);
  --chart-4: oklch(0.258 0.003 41.227);
  --chart-5: oklch(0.381 0.119 37.765);
}