Major for shadcn/ui

Major is a shadcn/ui theme built around a deep red primary color (#120907) with muted light red accents (#ded1ce). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the deep red primary (#120907) on a red-tinted background (#0e0806).

Color palette

TokenLightDark
Background
#fbf9f8snow
#0e0806black
Foreground
#0d0402black
#fdfcfcsnow
Card
#faf6f5whitesmoke
#120a08black
Card foreground
#090301black
#ffffffwhite
Popover
#faf6f5whitesmoke
#120a08black
Popover foreground
#090301black
#ffffffwhite
Primary
#120907black
#120907black
Primary foreground
#cd8d7erosybrown
#cd8d7erosybrown
Secondary
#ded1celightgrey
#251e1dblack
Secondary foreground
#493531darkslategray
#c3b4b1silver
Muted
#eae7e6linen
#191515black
Muted foreground
#4a3e3bdarkslategray
#c4b8b5silver
Accent
#ded1celightgrey
#251e1dblack
Accent foreground
#493531darkslategray
#c3b4b1silver
Destructive
#ca5512chocolate
#ed732cchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#120907black
#120907black

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.05:1AAA
Primary button7.20:1AAA
Secondary button7.69:1AAA
Muted text8.33:1AAA
Accent7.69:1AAA
Destructive4.36:1AA Large
Dark mode
Text on background19.43:1AAA
Text on card19.61:1AAA
Primary button7.20:1AAA
Secondary button8.13:1AAA
Muted text9.34:1AAA
Accent8.13:1AAA
Destructive7.05:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 32.661);
  --foreground: oklch(0.124 0.023 42.082);
  --muted: oklch(0.929 0.004 32.661);
  --muted-foreground: oklch(0.374 0.017 32.745);
  --popover: oklch(0.975 0.004 32.661);
  --popover-foreground: oklch(0.108 0.02 42.578);
  --card: oklch(0.975 0.004 32.661);
  --card-foreground: oklch(0.108 0.02 42.578);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.153 0.017 34.761);
  --primary-foreground: oklch(0.703 0.082 33.145);
  --secondary: oklch(0.871 0.015 32.67);
  --secondary-foreground: oklch(0.352 0.03 32.938);
  --accent: oklch(0.871 0.015 32.67);
  --accent-foreground: oklch(0.352 0.03 32.938);
  --destructive: oklch(0.592 0.164 44.301);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.153 0.017 34.761);
  --chart-1: oklch(0.153 0.017 34.761);
  --chart-2: oklch(0.871 0.015 32.67);
  --chart-3: oklch(0.871 0.015 32.67);
  --chart-4: oklch(0.895 0.012 32.666);
  --chart-5: oklch(0.153 0.019 35.122);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.012 35.587);
  --foreground: oklch(0.992 0.002 32.661);
  --muted: oklch(0.202 0.006 32.697);
  --muted-foreground: oklch(0.792 0.014 32.671);
  --popover: oklch(0.154 0.015 34.073);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.015 34.073);
  --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.153 0.017 34.761);
  --primary-foreground: oklch(0.703 0.082 33.145);
  --secondary: oklch(0.244 0.011 32.746);
  --secondary-foreground: oklch(0.783 0.017 32.678);
  --accent: oklch(0.244 0.011 32.746);
  --accent-foreground: oklch(0.783 0.017 32.678);
  --destructive: oklch(0.688 0.171 46.662);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.153 0.017 34.761);
  --chart-1: oklch(0.153 0.017 34.761);
  --chart-2: oklch(0.244 0.011 32.746);
  --chart-3: oklch(0.244 0.011 32.746);
  --chart-4: oklch(0.275 0.014 32.757);
  --chart-5: oklch(0.153 0.019 35.122);
}