Scimitar for shadcn/ui

Scimitar is a shadcn/ui theme built around a vivid deep orange primary color (#361602) with vivid deep blue accents (#022236). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#361602) on an orange-tinted background (#0b0704).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0704black
Foreground
#090401black
#f8f7f6whitesmoke
Card
#ffffffwhite
#0b0704black
Card foreground
#090401black
#f8f7f6whitesmoke
Popover
#ffffffwhite
#0b0704black
Popover foreground
#090401black
#f8f7f6whitesmoke
Primary
#361602black
#361602black
Primary foreground
#fba570lightsalmon
#fba570lightsalmon
Secondary
#022236midnightblue
#022236midnightblue
Secondary foreground
#70c5fblightskyblue
#70c5fblightskyblue
Muted
#ebeef0whitesmoke
#0f1214black
Muted foreground
#404344darkslategray
#bbbdbfsilver
Accent
#022236midnightblue
#022236midnightblue
Accent foreground
#70c5fblightskyblue
#70c5fblightskyblue
Destructive
#7d1707maroon
#f23518orangered
Destructive foreground
#fbc4bclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#361602black
#361602black

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button8.41:1AAA
Secondary button8.59:1AAA
Muted text8.54:1AAA
Accent8.59:1AAA
Destructive6.85:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button8.41:1AAA
Secondary button8.59:1AAA
Muted text9.94:1AAA
Accent8.59:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.116 0.018 66.864);
  --muted: oklch(0.947 0.004 234.57);
  --muted-foreground: oklch(0.38 0.004 234.665);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.116 0.018 66.864);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.116 0.018 66.864);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.245 0.061 50.521);
  --primary-foreground: oklch(0.795 0.123 52.012);
  --secondary: oklch(0.242 0.054 240.686);
  --secondary-foreground: oklch(0.791 0.113 237.774);
  --accent: oklch(0.242 0.054 240.686);
  --accent-foreground: oklch(0.791 0.113 237.774);
  --destructive: oklch(0.385 0.139 31.605);
  --destructive-foreground: oklch(0.867 0.065 28.498);
  --ring: oklch(0.245 0.061 50.521);
  --chart-1: oklch(0.245 0.061 50.521);
  --chart-2: oklch(0.242 0.054 240.686);
  --chart-3: oklch(0.242 0.054 240.686);
  --chart-4: oklch(0.279 0.064 242.164);
  --chart-5: oklch(0.246 0.063 50.58);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.012 61.308);
  --foreground: oklch(0.977 0.002 54.479);
  --muted: oklch(0.182 0.006 235.032);
  --muted-foreground: oklch(0.797 0.003 234.569);
  --popover: oklch(0.133 0.012 61.308);
  --popover-foreground: oklch(0.977 0.002 54.479);
  --card: oklch(0.133 0.012 61.308);
  --card-foreground: oklch(0.977 0.002 54.479);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.245 0.061 50.521);
  --primary-foreground: oklch(0.795 0.123 52.012);
  --secondary: oklch(0.242 0.054 240.686);
  --secondary-foreground: oklch(0.791 0.113 237.774);
  --accent: oklch(0.242 0.054 240.686);
  --accent-foreground: oklch(0.791 0.113 237.774);
  --destructive: oklch(0.625 0.227 31.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.245 0.061 50.521);
  --chart-1: oklch(0.245 0.061 50.521);
  --chart-2: oklch(0.242 0.054 240.686);
  --chart-3: oklch(0.242 0.054 240.686);
  --chart-4: oklch(0.279 0.064 242.164);
  --chart-5: oklch(0.246 0.063 50.58);
}