Throne for shadcn/ui

Throne is a shadcn/ui theme built around a muted deep orange primary color (#332c24) with neutral gray accents (#e1e0e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#332c24) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#120b02black
#fcfaf8snow
Card
#fcfcfcsnow
#030303black
Card foreground
#0e0802black
#fdfdfcwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#0e0802black
#fdfdfcwhite
Primary
#332c24darkslategray
#332c24darkslategray
Primary foreground
#cfc6basilver
#cfc6basilver
Secondary
#e1e0e0gainsboro
#231f1ablack
Secondary foreground
#484747darkslategray
#c2b9adsilver
Muted
#f3f0edwhitesmoke
#12100cblack
Muted foreground
#54524fdarkslategray
#b0aeabdarkgray
Accent
#e1e0e0gainsboro
#231f1ablack
Accent foreground
#484747darkslategray
#c2b9adsilver
Destructive
#742906saddlebrown
#f2550dorangered
Destructive foreground
#fbc9b1peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#332c24darkslategray
#332c24darkslategray

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.49:1AAA
Primary button8.11:1AAA
Secondary button7.04:1AAA
Muted text6.85:1AA
Accent7.04:1AAA
Destructive6.81:1AA
Dark mode
Text on background20.16:1AAA
Text on card20.31:1AAA
Primary button8.11:1AAA
Secondary button8.43:1AAA
Muted text8.59:1AAA
Accent8.43:1AAA
Destructive3.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.157 0.025 79.8);
  --muted: oklch(0.957 0.005 74.92);
  --muted-foreground: oklch(0.439 0.005 74.879);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.141 0.022 83.524);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.022 83.524);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.299 0.018 74.41);
  --primary-foreground: oklch(0.83 0.019 74.797);
  --secondary: oklch(0.908 0.001 74.95);
  --secondary-foreground: oklch(0.4 0.002 74.93);
  --accent: oklch(0.908 0.001 74.95);
  --accent-foreground: oklch(0.4 0.002 74.93);
  --destructive: oklch(0.388 0.114 40.95);
  --destructive-foreground: oklch(0.873 0.066 46.149);
  --ring: oklch(0.299 0.018 74.41);
  --chart-1: oklch(0.299 0.018 74.41);
  --chart-2: oklch(0.908 0.001 74.95);
  --chart-3: oklch(0.908 0.001 74.95);
  --chart-4: oklch(0.931 0 74.951);
  --chart-5: oklch(0.301 0.021 74.277);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 74.935);
  --muted: oklch(0.174 0.008 74.573);
  --muted-foreground: oklch(0.751 0.005 74.917);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.002 74.944);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 74.944);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.299 0.018 74.41);
  --primary-foreground: oklch(0.83 0.019 74.797);
  --secondary: oklch(0.243 0.011 74.58);
  --secondary-foreground: oklch(0.79 0.02 74.782);
  --accent: oklch(0.243 0.011 74.58);
  --accent-foreground: oklch(0.79 0.02 74.782);
  --destructive: oklch(0.656 0.204 39.389);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.018 74.41);
  --chart-1: oklch(0.299 0.018 74.41);
  --chart-2: oklch(0.243 0.011 74.58);
  --chart-3: oklch(0.243 0.011 74.58);
  --chart-4: oklch(0.276 0.014 74.547);
  --chart-5: oklch(0.301 0.021 74.277);
}