Young for shadcn/ui

Young is a shadcn/ui theme built around a vivid deep red primary color (#621b09) with near-white accents (#ebeaea). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the vivid deep red primary (#621b09) on a red-tinted background (#0e0806).

Color palette

TokenLightDark
Background
#fdf8f7snow
#0e0806black
Foreground
#000000black
#fcf9f8snow
Card
#fbf5f3whitesmoke
#110a08black
Card foreground
#000000black
#fdfcfbsnow
Popover
#fdf8f7snow
#0e0806black
Popover foreground
#000000black
#fcf9f8snow
Primary
#621b09maroon
#621b09maroon
Primary foreground
#f7b6a6lightpink
#f7b6a6lightpink
Secondary
#ebeaealinen
#3b2e2bdarkslategray
Secondary foreground
#525151darkslategray
#d4c7c4lightgrey
Muted
#e0d9d7gainsboro
#28211fblack
Muted foreground
#735e59dimgray
#a6918crosybrown
Accent
#ebeaealinen
#3b2e2bdarkslategray
Accent foreground
#525151darkslategray
#d4c7c4lightgrey
Destructive
#bf4612firebrick
#ee7744coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#621b09maroon
#621b09maroon

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.47:1AAA
Primary button7.26:1AAA
Secondary button6.60:1AA
Muted text4.32:1AA Large
Accent6.60:1AA
Destructive5.11:1AA
Dark mode
Text on background18.98:1AAA
Text on card19.12:1AAA
Primary button7.26:1AAA
Secondary button7.90:1AAA
Muted text5.30:1AA
Accent7.90:1AAA
Destructive7.35:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 34.309);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.889 0.008 34.303);
  --muted-foreground: oklch(0.501 0.029 34.355);
  --popover: oklch(0.983 0.005 34.309);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.975 0.007 34.305);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.336 0.106 34.728);
  --primary-foreground: oklch(0.833 0.079 34.498);
  --secondary: oklch(0.939 0 34.317);
  --secondary-foreground: oklch(0.436 0.002 34.31);
  --accent: oklch(0.939 0 34.317);
  --accent-foreground: oklch(0.436 0.002 34.31);
  --destructive: oklch(0.555 0.166 39.708);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.336 0.106 34.728);
  --chart-1: oklch(0.336 0.106 34.728);
  --chart-2: oklch(0.939 0 34.317);
  --chart-3: oklch(0.939 0 34.317);
  --chart-4: oklch(0.962 0 34.317);
  --chart-5: oklch(0.337 0.109 34.642);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.012 37.195);
  --foreground: oklch(0.983 0.003 34.311);
  --muted: oklch(0.256 0.011 34.32);
  --muted-foreground: oklch(0.674 0.027 34.313);
  --popover: oklch(0.142 0.012 37.195);
  --popover-foreground: oklch(0.983 0.003 34.311);
  --card: oklch(0.154 0.014 35.48);
  --card-foreground: oklch(0.992 0.002 34.314);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.336 0.106 34.728);
  --primary-foreground: oklch(0.833 0.079 34.498);
  --secondary: oklch(0.315 0.02 34.374);
  --secondary-foreground: oklch(0.84 0.015 34.297);
  --accent: oklch(0.315 0.02 34.374);
  --accent-foreground: oklch(0.84 0.015 34.297);
  --destructive: oklch(0.698 0.16 42.613);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.336 0.106 34.728);
  --chart-1: oklch(0.336 0.106 34.728);
  --chart-2: oklch(0.315 0.02 34.374);
  --chart-3: oklch(0.315 0.02 34.374);
  --chart-4: oklch(0.344 0.023 34.38);
  --chart-5: oklch(0.337 0.109 34.642);
}