Throne for shadcn/ui

Throne is a shadcn/ui theme built around a muted deep red primary color (#553f43) with muted deep blue accents (#3f4355). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the muted deep red primary (#553f43) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#030202black
Foreground
#080203black
#f9f6f6whitesmoke
Card
#fdfbfcsnow
#030202black
Card foreground
#080203black
#f9f6f6whitesmoke
Popover
#fdfbfcsnow
#030202black
Popover foreground
#080203black
#f9f6f6whitesmoke
Primary
#553f43darkslategray
#553f43darkslategray
Primary foreground
#e7dfe0gainsboro
#e7dfe0gainsboro
Secondary
#43553fdarkslategray
#43553fdarkslategray
Secondary foreground
#e0e7dfgainsboro
#e0e7dfgainsboro
Muted
#e7f0e5beige
#111a0fblack
Muted foreground
#4f5c4ddarkolivegreen
#a6b2a3darkgray
Accent
#3f4355darkslategray
#3f4355darkslategray
Accent foreground
#dfe0e7gainsboro
#dfe0e7gainsboro
Destructive
#9a3f0esaddlebrown
#eb6c28chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#553f43darkslategray
#553f43darkslategray

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button7.36:1AAA
Secondary button6.38:1AA
Muted text6.05:1AA
Accent7.44:1AAA
Destructive6.78:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button7.36:1AAA
Secondary button6.38:1AA
Muted text8.09:1AAA
Accent7.44:1AAA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 4.373);
  --foreground: oklch(0.104 0.02 4.767);
  --muted: oklch(0.945 0.017 139.975);
  --muted-foreground: oklch(0.458 0.029 139.938);
  --popover: oklch(0.991 0.002 4.373);
  --popover-foreground: oklch(0.104 0.02 4.767);
  --card: oklch(0.991 0.002 4.373);
  --card-foreground: oklch(0.104 0.02 4.767);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.393 0.032 6.398);
  --primary-foreground: oklch(0.91 0.009 4.585);
  --secondary: oklch(0.428 0.042 139.916);
  --secondary-foreground: oklch(0.921 0.013 139.978);
  --accent: oklch(0.386 0.031 274.96);
  --accent-foreground: oklch(0.908 0.009 276.029);
  --destructive: oklch(0.485 0.134 43.662);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.393 0.032 6.398);
  --chart-1: oklch(0.393 0.032 6.398);
  --chart-2: oklch(0.428 0.042 139.916);
  --chart-3: oklch(0.386 0.031 274.96);
  --chart-4: oklch(0.457 0.046 139.916);
  --chart-5: oklch(0.39 0.038 6.851);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.008 4.529);
  --foreground: oklch(0.975 0.003 4.403);
  --muted: oklch(0.204 0.024 139.91);
  --muted-foreground: oklch(0.751 0.025 139.961);
  --popover: oklch(0.087 0.008 4.529);
  --popover-foreground: oklch(0.975 0.003 4.403);
  --card: oklch(0.087 0.008 4.529);
  --card-foreground: oklch(0.975 0.003 4.403);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.393 0.032 6.398);
  --primary-foreground: oklch(0.91 0.009 4.585);
  --secondary: oklch(0.428 0.042 139.916);
  --secondary-foreground: oklch(0.921 0.013 139.978);
  --accent: oklch(0.386 0.031 274.96);
  --accent-foreground: oklch(0.908 0.009 276.029);
  --destructive: oklch(0.676 0.174 44.946);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.393 0.032 6.398);
  --chart-1: oklch(0.393 0.032 6.398);
  --chart-2: oklch(0.428 0.042 139.916);
  --chart-3: oklch(0.386 0.031 274.96);
  --chart-4: oklch(0.457 0.046 139.916);
  --chart-5: oklch(0.39 0.038 6.851);
}