Young for shadcn/ui

Young is a shadcn/ui theme built around a deep yellow primary color (#2d2a15) with deep purple accents (#2a152d). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the deep yellow primary (#2d2a15) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fcfcf8snow
#040301black
Foreground
#040401black
#ffffffwhite
Card
#fcfcf8snow
#040301black
Card foreground
#040401black
#ffffffwhite
Popover
#fcfcf8snow
#040301black
Popover foreground
#040401black
#ffffffwhite
Primary
#2d2a15black
#2d2a15black
Primary foreground
#d3cda1tan
#d3cda1tan
Secondary
#152d2adarkslategray
#152d2adarkslategray
Secondary foreground
#a1d3cdlightsteelblue
#a1d3cdlightsteelblue
Muted
#f0f4f4whitesmoke
#0b0f0eblack
Muted foreground
#596e6cdimgray
#91a6a4darkgray
Accent
#2a152dblack
#2a152dblack
Accent foreground
#cda1d3plum
#cda1d3plum
Destructive
#981e10brown
#e22c18crimson
Destructive foreground
#fce2dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d2a15black
#2d2a15black

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button8.92:1AAA
Secondary button8.81:1AAA
Muted text4.90:1AA
Accent7.72:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button8.92:1AAA
Secondary button8.81:1AAA
Muted text7.53:1AAA
Accent7.72:1AAA
Destructive4.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 100.417);
  --foreground: oklch(0.103 0.014 103.896);
  --muted: oklch(0.965 0.004 188.809);
  --muted-foreground: oklch(0.521 0.026 187.677);
  --popover: oklch(0.99 0.006 100.417);
  --popover-foreground: oklch(0.103 0.014 103.896);
  --card: oklch(0.99 0.006 100.417);
  --card-foreground: oklch(0.103 0.014 103.896);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.283 0.035 101.769);
  --primary-foreground: oklch(0.842 0.059 101.278);
  --secondary: oklch(0.277 0.031 185.938);
  --secondary-foreground: oklch(0.83 0.052 187.352);
  --accent: oklch(0.237 0.053 322.745);
  --accent-foreground: oklch(0.766 0.084 322.467);
  --destructive: oklch(0.443 0.16 30.489);
  --destructive-foreground: oklch(0.932 0.029 25.273);
  --ring: oklch(0.283 0.035 101.769);
  --chart-1: oklch(0.283 0.035 101.769);
  --chart-2: oklch(0.277 0.031 185.938);
  --chart-3: oklch(0.237 0.053 322.745);
  --chart-4: oklch(0.315 0.036 185.784);
  --chart-5: oklch(0.286 0.038 101.807);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.011 103.271);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.006 187.982);
  --muted-foreground: oklch(0.709 0.025 188.068);
  --popover: oklch(0.101 0.011 103.271);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.101 0.011 103.271);
  --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.283 0.035 101.769);
  --primary-foreground: oklch(0.842 0.059 101.278);
  --secondary: oklch(0.277 0.031 185.938);
  --secondary-foreground: oklch(0.83 0.052 187.352);
  --accent: oklch(0.237 0.053 322.745);
  --accent-foreground: oklch(0.766 0.084 322.467);
  --destructive: oklch(0.591 0.219 30.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.283 0.035 101.769);
  --chart-1: oklch(0.283 0.035 101.769);
  --chart-2: oklch(0.277 0.031 185.938);
  --chart-3: oklch(0.237 0.053 322.745);
  --chart-4: oklch(0.315 0.036 185.784);
  --chart-5: oklch(0.286 0.038 101.807);
}