Leading for shadcn/ui

Leading is a shadcn/ui theme built around a muted indigo primary color (#43456b) with muted yellow accents (#6b6943). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted indigo primary (#43456b) on an indigo-tinted background (#06060e).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#06060eblack
Foreground
#03040cblack
#f8f8fcghostwhite
Card
#f8f8fcghostwhite
#06060eblack
Card foreground
#03040cblack
#f8f8fcghostwhite
Popover
#f8f8fcghostwhite
#06060eblack
Popover foreground
#03040cblack
#f8f8fcghostwhite
Primary
#43456bdarkslateblue
#43456bdarkslateblue
Primary foreground
#ecedf3lavender
#ecedf3lavender
Secondary
#6b6943darkolivegreen
#6b6943darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5e4d1gainsboro
#2e2d1adarkslategray
Muted foreground
#57574cdarkolivegreen
#b3b3a8darkgray
Accent
#6b6943darkolivegreen
#6b6943darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7a180bmaroon
#e62c14orangered
Destructive foreground
#f9c4bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#43456bdarkslateblue
#43456bdarkslateblue

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.83:1AAA
Secondary button5.66:1AA
Muted text5.70:1AA
Accent5.66:1AA
Destructive6.97:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button7.83:1AAA
Secondary button5.66:1AA
Muted text6.61:1AA
Accent5.66:1AA
Destructive4.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 283.892);
  --foreground: oklch(0.111 0.022 278.689);
  --muted: oklch(0.915 0.025 104.435);
  --muted-foreground: oklch(0.453 0.017 104.6);
  --popover: oklch(0.981 0.004 283.892);
  --popover-foreground: oklch(0.111 0.022 278.689);
  --card: oklch(0.981 0.004 283.892);
  --card-foreground: oklch(0.111 0.022 278.689);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.405 0.063 280.853);
  --primary-foreground: oklch(0.946 0.009 283.807);
  --secondary: oklch(0.512 0.055 105.616);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.055 105.616);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.379 0.135 31.041);
  --destructive-foreground: oklch(0.866 0.062 27.079);
  --ring: oklch(0.405 0.063 280.853);
  --chart-1: oklch(0.405 0.063 280.853);
  --chart-2: oklch(0.512 0.055 105.616);
  --chart-3: oklch(0.512 0.055 105.616);
  --chart-4: oklch(0.543 0.059 105.629);
  --chart-5: oklch(0.399 0.072 280.313);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.019 280.538);
  --foreground: oklch(0.98 0.005 283.88);
  --muted: oklch(0.291 0.032 105.633);
  --muted-foreground: oklch(0.763 0.015 104.308);
  --popover: oklch(0.129 0.019 280.538);
  --popover-foreground: oklch(0.98 0.005 283.88);
  --card: oklch(0.129 0.019 280.538);
  --card-foreground: oklch(0.98 0.005 283.88);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.405 0.063 280.853);
  --primary-foreground: oklch(0.946 0.009 283.807);
  --secondary: oklch(0.512 0.055 105.616);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.055 105.616);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.598 0.222 30.977);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.405 0.063 280.853);
  --chart-1: oklch(0.405 0.063 280.853);
  --chart-2: oklch(0.512 0.055 105.616);
  --chart-3: oklch(0.512 0.055 105.616);
  --chart-4: oklch(0.543 0.059 105.629);
  --chart-5: oklch(0.399 0.072 280.313);
}