Scorpion for shadcn/ui

Scorpion is a shadcn/ui theme built around a muted light orange primary color (#f2eee9) with muted light blue accents (#e9ecf2). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted light orange primary (#f2eee9) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fefdfbsnow
#030302black
Foreground
#090601black
#faf8f4whitesmoke
Card
#fefdfbsnow
#030302black
Card foreground
#090601black
#faf8f4whitesmoke
Popover
#fefdfbsnow
#030302black
Popover foreground
#090601black
#faf8f4whitesmoke
Primary
#f2eee9linen
#f2eee9linen
Primary foreground
#2a2319black
#2a2319black
Secondary
#e9ecf2lavender
#e9ecf2lavender
Secondary foreground
#3e516adarkslategray
#3e516adarkslategray
Muted
#e4e9f2lavender
#0d131bblack
Muted foreground
#5f6163dimgray
#9c9ea0darkgray
Accent
#e9ecf2lavender
#e9ecf2lavender
Accent foreground
#3e516adarkslategray
#3e516adarkslategray
Destructive
#d41c08firebrick
#dd1d08red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2eee9linen
#f2eee9linen

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button13.42:1AAA
Secondary button6.86:1AA
Muted text5.11:1AA
Accent6.86:1AA
Destructive5.30:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button13.42:1AAA
Secondary button6.86:1AA
Muted text6.92:1AA
Accent6.86:1AA
Destructive4.91:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 76.643);
  --foreground: oklch(0.123 0.02 86.454);
  --muted: oklch(0.933 0.013 256.703);
  --muted-foreground: oklch(0.49 0.004 256.685);
  --popover: oklch(0.993 0.002 76.643);
  --popover-foreground: oklch(0.123 0.02 86.454);
  --card: oklch(0.993 0.002 76.643);
  --card-foreground: oklch(0.123 0.02 86.454);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.95 0.008 76.611);
  --primary-foreground: oklch(0.259 0.021 75.913);
  --secondary: oklch(0.943 0.008 256.687);
  --secondary-foreground: oklch(0.429 0.048 256.854);
  --accent: oklch(0.943 0.008 256.687);
  --accent-foreground: oklch(0.429 0.048 256.854);
  --destructive: oklch(0.554 0.215 30.392);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.95 0.008 76.611);
  --chart-1: oklch(0.95 0.008 76.611);
  --chart-2: oklch(0.943 0.008 256.687);
  --chart-3: oklch(0.943 0.008 256.687);
  --chart-4: oklch(0.967 0.005 256.672);
  --chart-5: oklch(0.951 0.009 76.606);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.007 81.412);
  --foreground: oklch(0.98 0.005 76.628);
  --muted: oklch(0.186 0.019 256.844);
  --muted-foreground: oklch(0.698 0.004 256.674);
  --popover: oklch(0.095 0.007 81.412);
  --popover-foreground: oklch(0.98 0.005 76.628);
  --card: oklch(0.095 0.007 81.412);
  --card-foreground: oklch(0.98 0.005 76.628);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.95 0.008 76.611);
  --primary-foreground: oklch(0.259 0.021 75.913);
  --secondary: oklch(0.943 0.008 256.687);
  --secondary-foreground: oklch(0.429 0.048 256.854);
  --accent: oklch(0.943 0.008 256.687);
  --accent-foreground: oklch(0.429 0.048 256.854);
  --destructive: oklch(0.573 0.223 30.375);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.95 0.008 76.611);
  --chart-1: oklch(0.95 0.008 76.611);
  --chart-2: oklch(0.943 0.008 256.687);
  --chart-3: oklch(0.943 0.008 256.687);
  --chart-4: oklch(0.967 0.005 256.672);
  --chart-5: oklch(0.951 0.009 76.606);
}