Major-league is a shadcn/ui theme built around a vivid deep pink primary color (#86033c) with vivid deep red accents (#860c03). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#86033c) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040102black |
| Foreground | #0e0207black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #080205black |
| Card foreground | #090105black | #ffffffwhite |
| Popover | #fcfcfcsnow | #080205black |
| Popover foreground | #090105black | #ffffffwhite |
| Primary | #86033cbrown | #86033cbrown |
| Primary foreground | #fdbedapink | #fdbedapink |
| Secondary | #86037epurple | #86037epurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1dff0lavender | #200e1fblack |
| Muted foreground | #50494fdarkslategray | #b6afb5darkgray |
| Accent | #860c03darkred | #860c03darkred |
| Accent foreground | #fdc3belightpink | #fdc3belightpink |
| Destructive | #6c2004maroon | #f75318orangered |
| Destructive foreground | #fcbda6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #86033cbrown | #86033cbrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.37:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 9.00:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 7.02:1 | AAA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 9.00:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Major-league in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.035 348.956);
--muted: oklch(0.923 0.029 327.847);
--muted-foreground: oklch(0.415 0.012 327.833);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.101 0.03 348.217);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.101 0.03 348.217);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.401 0.159 5.121);
--primary-foreground: oklch(0.867 0.08 351.146);
--secondary: oklch(0.431 0.193 331.839);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.396 0.155 30.023);
--accent-foreground: oklch(0.867 0.068 23.255);
--destructive: oklch(0.361 0.114 37.834);
--destructive-foreground: oklch(0.85 0.079 40.867);
--ring: oklch(0.401 0.159 5.121);
--chart-1: oklch(0.401 0.159 5.121);
--chart-2: oklch(0.431 0.193 331.839);
--chart-3: oklch(0.396 0.155 30.023);
--chart-4: oklch(0.465 0.208 331.874);
--chart-5: oklch(0.404 0.161 5.662);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.017 348.368);
--foreground: oklch(0.992 0.001 348.754);
--muted: oklch(0.198 0.041 329.408);
--muted-foreground: oklch(0.762 0.011 327.681);
--popover: oklch(0.105 0.022 348.368);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.105 0.022 348.368);
--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.401 0.159 5.121);
--primary-foreground: oklch(0.867 0.08 351.146);
--secondary: oklch(0.431 0.193 331.839);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.396 0.155 30.023);
--accent-foreground: oklch(0.867 0.068 23.255);
--destructive: oklch(0.661 0.209 37.429);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.401 0.159 5.121);
--chart-1: oklch(0.401 0.159 5.121);
--chart-2: oklch(0.431 0.193 331.839);
--chart-3: oklch(0.396 0.155 30.023);
--chart-4: oklch(0.465 0.208 331.874);
--chart-5: oklch(0.404 0.161 5.662);
}