Scorpion for shadcn/ui

Scorpion is a shadcn/ui theme built around a green primary color (#46a456) with red accents (#a45646). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#46a456) on a green-tinted background (#060f07).

Color palette

TokenLightDark
Background
#ffffffwhite
#060f07black
Foreground
#021205black
#f7f8f7whitesmoke
Card
#ffffffwhite
#060f07black
Card foreground
#021205black
#f7f8f7whitesmoke
Popover
#ffffffwhite
#060f07black
Popover foreground
#021205black
#f7f8f7whitesmoke
Primary
#46a456mediumseagreen
#46a456mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5646a4rebeccapurple
#5646a4rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6d5ddgainsboro
#23222adarkslategray
Muted foreground
#4d495fdarkslategray
#a4a0b6darkgray
Accent
#a45646sienna
#a45646sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d62105firebrick
#f9381aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#46a456mediumseagreen
#46a456mediumseagreen

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button3.12:1AA Large
Secondary button7.44:1AAA
Muted text5.90:1AA
Accent5.24:1AA
Destructive5.15:1AA
Dark mode
Text on background18.31:1AAA
Text on card18.31:1AAA
Primary button3.12:1AA Large
Secondary button7.44:1AAA
Muted text6.19:1AA
Accent5.24:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.163 0.039 148.624);
  --muted: oklch(0.875 0.012 293.819);
  --muted-foreground: oklch(0.418 0.036 292.398);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.163 0.039 148.624);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.163 0.039 148.624);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.644 0.145 146.994);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.463 0.145 286.924);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.107 32.499);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.561 0.215 31.117);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.644 0.145 146.994);
  --chart-1: oklch(0.644 0.145 146.994);
  --chart-2: oklch(0.463 0.145 286.924);
  --chart-3: oklch(0.543 0.107 32.499);
  --chart-4: oklch(0.484 0.153 286.857);
  --chart-5: oklch(0.651 0.153 146.741);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.022 149.583);
  --foreground: oklch(0.978 0.002 150.788);
  --muted: oklch(0.257 0.016 292.902);
  --muted-foreground: oklch(0.716 0.032 293.23);
  --popover: oklch(0.154 0.022 149.583);
  --popover-foreground: oklch(0.978 0.002 150.788);
  --card: oklch(0.154 0.022 149.583);
  --card-foreground: oklch(0.978 0.002 150.788);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.644 0.145 146.994);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.463 0.145 286.924);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.107 32.499);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.231 31.552);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.644 0.145 146.994);
  --chart-1: oklch(0.644 0.145 146.994);
  --chart-2: oklch(0.463 0.145 286.924);
  --chart-3: oklch(0.543 0.107 32.499);
  --chart-4: oklch(0.484 0.153 286.857);
  --chart-5: oklch(0.651 0.153 146.741);
}