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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 8.94:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 12.14:1 | AAA |
| Accent | 6.69:1 | AA |
| Destructive | 4.47:1 | AA Large |
| Text on background | 19.92:1 | AAA |
| Text on card | 17.48:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 5.41:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 4.88:1 | AA |
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);
}