Majestic for shadcn/ui

Majestic is a shadcn/ui theme built around a muted pink primary color (#774b63) with muted blue accents (#4b6377). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#774b63) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#16040eblack
#ffffffwhite
Card
#fcfcfcsnow
#070405black
Card foreground
#11030bblack
#ffffffwhite
Popover
#fcfcfcsnow
#070405black
Popover foreground
#11030bblack
#ffffffwhite
Primary
#774b63dimgray
#774b63dimgray
Primary foreground
#fbf9fasnow
#fbf9fasnow
Secondary
#63774bdarkolivegreen
#63774bdarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f4f0whitesmoke
#0d0f0bblack
Muted foreground
#616260dimgray
#9e9f9ddarkgray
Accent
#4b6377dimgray
#4b6377dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b7160bfirebrick
#f12213red
Destructive foreground
#fef6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#774b63dimgray
#774b63dimgray

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.72:1AAA
Primary button6.75:1AA
Secondary button4.90:1AA
Muted text5.56:1AA
Accent6.26:1AA
Destructive6.28:1AA
Dark mode
Text on background20.72:1AAA
Text on card20.46:1AAA
Primary button6.75:1AA
Secondary button4.90:1AA
Muted text7.25:1AAA
Accent6.26:1AA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.041 346.747);
  --muted: oklch(0.966 0.006 126.509);
  --muted-foreground: oklch(0.494 0.003 126.512);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.133 0.036 345.143);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.133 0.036 345.143);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.47 0.069 345.979);
  --primary-foreground: oklch(0.983 0.003 342.693);
  --secondary: oklch(0.542 0.07 128.243);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.488 0.044 243.491);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.498 0.193 29.739);
  --destructive-foreground: oklch(0.979 0.009 22.32);
  --ring: oklch(0.47 0.069 345.979);
  --chart-1: oklch(0.47 0.069 345.979);
  --chart-2: oklch(0.542 0.07 128.243);
  --chart-3: oklch(0.488 0.044 243.491);
  --chart-4: oklch(0.572 0.074 128.259);
  --chart-5: oklch(0.469 0.078 346.415);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.008 342.601);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.164 0.009 127.182);
  --muted-foreground: oklch(0.701 0.003 126.482);
  --popover: oklch(0.111 0.011 342.601);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.011 342.601);
  --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.47 0.069 345.979);
  --primary-foreground: oklch(0.983 0.003 342.693);
  --secondary: oklch(0.542 0.07 128.243);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.488 0.044 243.491);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.612 0.237 29.732);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.069 345.979);
  --chart-1: oklch(0.47 0.069 345.979);
  --chart-2: oklch(0.542 0.07 128.243);
  --chart-3: oklch(0.488 0.044 243.491);
  --chart-4: oklch(0.572 0.074 128.259);
  --chart-5: oklch(0.469 0.078 346.415);
}