Leading for shadcn/ui

Leading is a shadcn/ui theme built around a vivid light green primary color (#9efab6) with vivid light orange accents (#fab69e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#9efab6) on a green-tinted background (#060f08).

Color palette

TokenLightDark
Background
#ffffffwhite
#060f08black
Foreground
#030c05black
#f6f8f7whitesmoke
Card
#ffffffwhite
#060f08black
Card foreground
#030c05black
#f6f8f7whitesmoke
Popover
#ffffffwhite
#060f08black
Popover foreground
#030c05black
#f6f8f7whitesmoke
Primary
#9efab6palegreen
#9efab6palegreen
Primary foreground
#05611ddarkgreen
#05611ddarkgreen
Secondary
#b69efalightsteelblue
#b69efalightsteelblue
Secondary foreground
#1d0561midnightblue
#1d0561midnightblue
Muted
#e9e7eelavender
#131118black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#fab69elightpink
#fab69elightpink
Accent foreground
#611d05maroon
#611d05maroon
Destructive
#cf3217firebrick
#e74023orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9efab6palegreen
#9efab6palegreen

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button6.16:1AA
Secondary button7.41:1AAA
Muted text5.04:1AA
Accent7.28:1AAA
Destructive5.10:1AA
Dark mode
Text on background18.27:1AAA
Text on card18.27:1AAA
Primary button6.16:1AA
Secondary button7.41:1AAA
Muted text7.00:1AAA
Accent7.28:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.024 153.688);
  --muted: oklch(0.931 0.01 298.378);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.142 0.024 153.688);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.142 0.024 153.688);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.911 0.129 151.648);
  --primary-foreground: oklch(0.431 0.129 146.098);
  --secondary: oklch(0.755 0.133 295.308);
  --secondary-foreground: oklch(0.249 0.142 281.133);
  --accent: oklch(0.835 0.087 40.839);
  --accent-foreground: oklch(0.337 0.104 38.242);
  --destructive: oklch(0.561 0.196 32.218);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.129 151.648);
  --chart-1: oklch(0.911 0.129 151.648);
  --chart-2: oklch(0.755 0.133 295.308);
  --chart-3: oklch(0.835 0.087 40.839);
  --chart-4: oklch(0.792 0.112 295.991);
  --chart-5: oklch(0.913 0.133 151.554);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.02 153.28);
  --foreground: oklch(0.978 0.003 154.468);
  --muted: oklch(0.182 0.015 297.094);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.155 0.02 153.28);
  --popover-foreground: oklch(0.978 0.003 154.468);
  --card: oklch(0.155 0.02 153.28);
  --card-foreground: oklch(0.978 0.003 154.468);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.911 0.129 151.648);
  --primary-foreground: oklch(0.431 0.129 146.098);
  --secondary: oklch(0.755 0.133 295.308);
  --secondary-foreground: oklch(0.249 0.142 281.133);
  --accent: oklch(0.835 0.087 40.839);
  --accent-foreground: oklch(0.337 0.104 38.242);
  --destructive: oklch(0.615 0.207 32.338);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.129 151.648);
  --chart-1: oklch(0.911 0.129 151.648);
  --chart-2: oklch(0.755 0.133 295.308);
  --chart-3: oklch(0.835 0.087 40.839);
  --chart-4: oklch(0.792 0.112 295.991);
  --chart-5: oklch(0.913 0.133 151.554);
}