Spider for shadcn/ui

Spider is a shadcn/ui theme built around a deep red primary color (#2b1215) with deep teal accents (#122b29). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the deep red primary (#2b1215) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8f8snow
#000000black
Foreground
#0d0304black
#fdfcfcsnow
Card
#fcf8f8snow
#000000black
Card foreground
#0d0304black
#fdfcfcsnow
Popover
#fcf8f8snow
#000000black
Popover foreground
#0d0304black
#fdfcfcsnow
Primary
#2b1215black
#2b1215black
Primary foreground
#d59aa0rosybrown
#d59aa0rosybrown
Secondary
#122b29darkslategray
#122b29darkslategray
Secondary foreground
#52b7admediumaquamarine
#52b7admediumaquamarine
Muted
#dcefedlavender
#102321black
Muted foreground
#485150darkslategray
#aeb7b6darkgray
Accent
#122b29darkslategray
#122b29darkslategray
Accent foreground
#52b7admediumaquamarine
#52b7admediumaquamarine
Destructive
#942b05saddlebrown
#f9652ftomato
Destructive foreground
#fddacebisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b1215black
#2b1215black

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button7.46:1AAA
Secondary button6.21:1AA
Muted text6.84:1AA
Accent6.21:1AA
Destructive6.15:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.46:1AAA
Secondary button6.21:1AA
Muted text8.00:1AAA
Accent6.21:1AA
Destructive6.91:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 10.174);
  --foreground: oklch(0.117 0.025 12.157);
  --muted: oklch(0.937 0.02 189.598);
  --muted-foreground: oklch(0.427 0.012 189.439);
  --popover: oklch(0.982 0.004 10.174);
  --popover-foreground: oklch(0.117 0.025 12.157);
  --card: oklch(0.982 0.004 10.174);
  --card-foreground: oklch(0.117 0.025 12.157);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.221 0.041 14.737);
  --primary-foreground: oklch(0.745 0.071 12.27);
  --secondary: oklch(0.269 0.032 187.019);
  --secondary-foreground: oklch(0.716 0.095 186.466);
  --accent: oklch(0.269 0.032 187.019);
  --accent-foreground: oklch(0.716 0.095 186.466);
  --destructive: oklch(0.448 0.147 36.887);
  --destructive-foreground: oklch(0.915 0.043 41.019);
  --ring: oklch(0.221 0.041 14.737);
  --chart-1: oklch(0.221 0.041 14.737);
  --chart-2: oklch(0.269 0.032 187.019);
  --chart-3: oklch(0.269 0.032 187.019);
  --chart-4: oklch(0.308 0.038 186.845);
  --chart-5: oklch(0.22 0.044 15.163);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 10.118);
  --muted: oklch(0.238 0.025 187.482);
  --muted-foreground: oklch(0.772 0.01 189.771);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 10.118);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 10.118);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.221 0.041 14.737);
  --primary-foreground: oklch(0.745 0.071 12.27);
  --secondary: oklch(0.269 0.032 187.019);
  --secondary-foreground: oklch(0.716 0.095 186.466);
  --accent: oklch(0.269 0.032 187.019);
  --accent-foreground: oklch(0.716 0.095 186.466);
  --destructive: oklch(0.687 0.193 38.978);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.221 0.041 14.737);
  --chart-1: oklch(0.221 0.041 14.737);
  --chart-2: oklch(0.269 0.032 187.019);
  --chart-3: oklch(0.269 0.032 187.019);
  --chart-4: oklch(0.308 0.038 186.845);
  --chart-5: oklch(0.22 0.044 15.163);
}