LeagueOfLegend for shadcn/ui

LeagueOfLegend is a shadcn/ui theme built around a yellow primary color (#c8aa6e) with vivid deep cyan accents (#005a82). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#c8aa6e) on a blue-tinted background (#010a13).

Color palette

TokenLightDark
Background
#ffffffwhite
#010a13black
Foreground
#010a13black
#ffffffwhite
Card
#ffffffwhite
#0a1428black
Card foreground
#010a13black
#faf9fasnow
Popover
#ffffffwhite
#0a1428black
Popover foreground
#010a13black
#faf9fasnow
Primary
#c8aa6edarkkhaki
#c8aa6edarkkhaki
Primary foreground
#010a13black
#000000black
Secondary
#005a82teal
#005a82teal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0e6d2antiquewhite
#1e282ddarkslategray
Muted foreground
#1e282ddarkslategray
#a09b8crosybrown
Accent
#005a82teal
#005a82teal
Accent foreground
#cdfafalightcyan
#cdfafalightcyan
Destructive
#e13405orangered
#d13639crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f0e6d2antiquewhite
#1e282ddarkslategray
Input
#f0e6d2antiquewhite
#1e282ddarkslategray
Ring
#c8aa6edarkkhaki
#c8aa6edarkkhaki

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button8.94:1AAA
Secondary button7.54:1AAA
Muted text12.14:1AAA
Accent6.69:1AA
Destructive4.47:1AA Large
Dark mode
Text on background19.92:1AAA
Text on card17.48:1AAA
Primary button9.42:1AAA
Secondary button7.54:1AAA
Muted text5.41:1AA
Accent6.69:1AA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.138 0.028 240.343);
  --muted: oklch(0.928 0.029 84.593);
  --muted-foreground: oklch(0.27 0.017 229.768);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.028 240.343);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.138 0.028 240.343);
  --border: oklch(0.928 0.029 84.593);
  --input: oklch(0.928 0.029 84.593);
  --primary: oklch(0.751 0.086 83.923);
  --primary-foreground: oklch(0.138 0.028 240.343);
  --secondary: oklch(0.443 0.097 237.212);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.443 0.097 237.212);
  --accent-foreground: oklch(0.954 0.046 196.407);
  --destructive: oklch(0.594 0.213 33.654);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.086 83.923);
  --chart-1: oklch(0.751 0.086 83.923);
  --chart-2: oklch(0.443 0.097 237.212);
  --chart-3: oklch(0.443 0.097 237.212);
  --chart-4: oklch(0.479 0.106 237.594);
  --chart-5: oklch(0.755 0.091 83.798);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.028 240.343);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.27 0.017 229.768);
  --muted-foreground: oklch(0.689 0.022 91.657);
  --popover: oklch(0.194 0.043 262.927);
  --popover-foreground: oklch(0.984 0.001 347.85);
  --card: oklch(0.194 0.043 262.927);
  --card-foreground: oklch(0.984 0.001 347.85);
  --border: oklch(0.27 0.017 229.768);
  --input: oklch(0.27 0.017 229.768);
  --primary: oklch(0.751 0.086 83.923);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.443 0.097 237.212);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.443 0.097 237.212);
  --accent-foreground: oklch(0.954 0.046 196.407);
  --destructive: oklch(0.572 0.192 24.785);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.086 83.923);
  --chart-1: oklch(0.751 0.086 83.923);
  --chart-2: oklch(0.443 0.097 237.212);
  --chart-3: oklch(0.443 0.097 237.212);
  --chart-4: oklch(0.479 0.106 237.594);
  --chart-5: oklch(0.755 0.091 83.798);
}