Major-league for shadcn/ui

Major-league is a shadcn/ui theme built around a purple primary color (#c492b4) with muted light purple accents (#e2d9e0). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the purple primary (#c492b4) on a neutral background (#070406).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#070406black
Foreground
#11030dblack
#fbf9fasnow
Card
#fcf8fbsnow
#0a0508black
Card foreground
#0d020ablack
#fdfcfdwhite
Popover
#fdfbfdsnow
#070406black
Popover foreground
#11030dblack
#fbf9fasnow
Primary
#c492b4darkgray
#c492b4darkgray
Primary foreground
#170c14black
#170c14black
Secondary
#e2d9e0gainsboro
#322930darkslategray
Secondary foreground
#4e3b48darkslategray
#cdc1c9silver
Muted
#f4f0f3whitesmoke
#0f0b0eblack
Muted foreground
#564852darkslategray
#b7a9b3darkgray
Accent
#e2d9e0gainsboro
#322930darkslategray
Accent foreground
#4e3b48darkslategray
#cdc1c9silver
Destructive
#ca5212chocolate
#ed7331tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c492b4darkgray
#c492b4darkgray

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.34:1AAA
Primary button7.36:1AAA
Secondary button7.47:1AAA
Muted text7.62:1AAA
Accent7.47:1AAA
Destructive4.44:1AA Large
Dark mode
Text on background19.51:1AAA
Text on card19.73:1AAA
Primary button7.36:1AAA
Secondary button8.03:1AAA
Muted text8.71:1AAA
Accent8.03:1AAA
Destructive7.07:1AAA

CSS variables

Paste this into your globals.css to use Major-league in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 336.617);
  --foreground: oklch(0.135 0.037 339.247);
  --muted: oklch(0.96 0.006 336.682);
  --muted-foreground: oklch(0.419 0.025 337.661);
  --popover: oklch(0.991 0.003 336.617);
  --popover-foreground: oklch(0.135 0.037 339.247);
  --card: oklch(0.983 0.006 336.675);
  --card-foreground: oklch(0.121 0.032 337.732);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.718 0.076 338.511);
  --primary-foreground: oklch(0.175 0.023 338.948);
  --secondary: oklch(0.895 0.013 336.845);
  --secondary-foreground: oklch(0.379 0.034 338.227);
  --accent: oklch(0.895 0.013 336.845);
  --accent-foreground: oklch(0.379 0.034 338.227);
  --destructive: oklch(0.588 0.167 43.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.718 0.076 338.511);
  --chart-1: oklch(0.718 0.076 338.511);
  --chart-2: oklch(0.895 0.013 336.845);
  --chart-3: oklch(0.895 0.013 336.845);
  --chart-4: oklch(0.92 0.01 336.772);
  --chart-5: oklch(0.716 0.084 338.701);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.011 336.8);
  --foreground: oklch(0.984 0.003 336.613);
  --muted: oklch(0.155 0.01 337.726);
  --muted-foreground: oklch(0.749 0.021 337.102);
  --popover: oklch(0.111 0.011 336.8);
  --popover-foreground: oklch(0.984 0.003 336.613);
  --card: oklch(0.127 0.013 336.8);
  --card-foreground: oklch(0.992 0.001 336.586);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.718 0.076 338.511);
  --primary-foreground: oklch(0.175 0.023 338.948);
  --secondary: oklch(0.295 0.017 337.664);
  --secondary-foreground: oklch(0.823 0.016 336.942);
  --accent: oklch(0.295 0.017 337.664);
  --accent-foreground: oklch(0.823 0.016 336.942);
  --destructive: oklch(0.689 0.17 45.628);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.718 0.076 338.511);
  --chart-1: oklch(0.718 0.076 338.511);
  --chart-2: oklch(0.295 0.017 337.664);
  --chart-3: oklch(0.295 0.017 337.664);
  --chart-4: oklch(0.324 0.02 337.701);
  --chart-5: oklch(0.716 0.084 338.701);
}