Global Monarchist for shadcn/ui

Global Monarchist is a shadcn/ui theme built around a blue primary color (#3e63dd) with muted light indigo accents (#f0f0f3). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the blue primary (#3e63dd) on a neutral background (#111113).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#111113black
Foreground
#1c2024black
#edeef0whitesmoke
Card
#fcfcfdwhite
#18191bblack
Card foreground
#1c2024black
#edeef0whitesmoke
Popover
#fcfcfdwhite
#18191bblack
Popover foreground
#1c2024black
#edeef0whitesmoke
Primary
#3e63ddroyalblue
#3e63ddroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#bdee63darkkhaki
#bdee63darkkhaki
Secondary foreground
#37401cdarkslategray
#11130cblack
Muted
#f0f0f3whitesmoke
#18191bblack
Muted foreground
#b9bbc6silver
#5a6169dimgray
Accent
#f0f0f3whitesmoke
#212225black
Accent foreground
#1c2024black
#edeef0whitesmoke
Destructive
#e54666indianred
#e54666indianred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#d9d9e0gainsboro
#363a3fdarkslategray
Input
#d9d9e0gainsboro
#363a3fdarkslategray
Ring
#3e63ddroyalblue
#3e63ddroyalblue

Contrast

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

Light mode
Text on background15.98:1AAA
Text on card15.98:1AAA
Primary button5.20:1AA
Secondary button8.14:1AAA
Muted text1.68:1Fail
Accent14.40:1AAA
Destructive3.88:1AA Large
Dark mode
Text on background16.24:1AAA
Text on card15.15:1AAA
Primary button5.20:1AA
Secondary button13.87:1AAA
Muted text2.80:1Fail
Accent13.69:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.001 286.376);
  --foreground: oklch(0.241 0.01 248.229);
  --muted: oklch(0.956 0.004 286.324);
  --muted-foreground: oklch(0.794 0.016 277.79);
  --popover: oklch(0.991 0.001 286.376);
  --popover-foreground: oklch(0.241 0.01 248.229);
  --card: oklch(0.991 0.001 286.376);
  --card-foreground: oklch(0.241 0.01 248.229);
  --border: oklch(0.887 0.01 286.204);
  --input: oklch(0.887 0.01 286.204);
  --primary: oklch(0.544 0.191 267.007);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.887 0.175 126.088);
  --secondary-foreground: oklch(0.354 0.057 120.98);
  --accent: oklch(0.956 0.004 286.324);
  --accent-foreground: oklch(0.241 0.01 248.229);
  --destructive: oklch(0.628 0.195 13.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.191 267.007);
  --chart-1: oklch(0.544 0.191 267.007);
  --chart-2: oklch(0.887 0.175 126.088);
  --chart-3: oklch(0.956 0.004 286.324);
  --chart-4: oklch(0.896 0.162 125.649);
  --chart-5: oklch(0.541 0.199 266.728);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.179 0.004 285.98);
  --foreground: oklch(0.949 0.003 264.542);
  --muted: oklch(0.213 0.004 264.479);
  --muted-foreground: oklch(0.489 0.016 251.691);
  --popover: oklch(0.213 0.004 264.479);
  --popover-foreground: oklch(0.949 0.003 264.542);
  --card: oklch(0.213 0.004 264.479);
  --card-foreground: oklch(0.949 0.003 264.542);
  --border: oklch(0.347 0.01 253.965);
  --input: oklch(0.347 0.01 253.965);
  --primary: oklch(0.544 0.191 267.007);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.887 0.175 126.088);
  --secondary-foreground: oklch(0.182 0.014 120.762);
  --accent: oklch(0.252 0.006 271.182);
  --accent-foreground: oklch(0.949 0.003 264.542);
  --destructive: oklch(0.628 0.195 13.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.191 267.007);
  --chart-1: oklch(0.544 0.191 267.007);
  --chart-2: oklch(0.887 0.175 126.088);
  --chart-3: oklch(0.252 0.006 271.182);
  --chart-4: oklch(0.896 0.162 125.649);
  --chart-5: oklch(0.541 0.199 266.728);
}