Snakebite for shadcn/ui

Snakebite is a shadcn/ui theme built around a near-black primary color (#262223) with muted pink accents (#c1a9b2). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#262223) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0407black
Foreground
#080204black
#f8f7f7whitesmoke
Card
#ffffffwhite
#0b0407black
Card foreground
#080204black
#f8f7f7whitesmoke
Popover
#ffffffwhite
#0b0407black
Popover foreground
#080204black
#f8f7f7whitesmoke
Primary
#262223black
#262223black
Primary foreground
#c1b9bcsilver
#c1b9bcsilver
Secondary
#d1c7cblightgrey
#363032darkslategray
Secondary foreground
#382e32darkslategray
#cfc9cblightgrey
Muted
#f2eeefwhitesmoke
#110d0fblack
Muted foreground
#6f525ddimgray
#ad909arosybrown
Accent
#c1a9b2darkgray
#4a3a40darkslategray
Accent foreground
#21181bblack
#e0d7dagainsboro
Destructive
#ca5212chocolate
#ed7331tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#262223black
#262223black

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button8.22:1AAA
Secondary button7.95:1AAA
Muted text5.98:1AA
Accent7.92:1AAA
Destructive4.44:1AA Large
Dark mode
Text on background18.97:1AAA
Text on card18.97:1AAA
Primary button8.22:1AAA
Secondary button7.91:1AAA
Muted text6.63:1AA
Accent7.52:1AAA
Destructive7.07:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.105 0.021 353.166);
  --muted: oklch(0.952 0.005 353.715);
  --muted-foreground: oklch(0.474 0.041 355.972);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.021 353.166);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.105 0.021 353.166);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.255 0.007 354.351);
  --primary-foreground: oklch(0.792 0.01 353.927);
  --secondary: oklch(0.839 0.011 353.952);
  --secondary-foreground: oklch(0.314 0.014 354.852);
  --accent: oklch(0.758 0.03 354.671);
  --accent-foreground: oklch(0.219 0.015 355.517);
  --destructive: oklch(0.588 0.167 43.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.007 354.351);
  --chart-1: oklch(0.255 0.007 354.351);
  --chart-2: oklch(0.839 0.011 353.952);
  --chart-3: oklch(0.758 0.03 354.671);
  --chart-4: oklch(0.864 0.009 353.885);
  --chart-5: oklch(0.254 0.011 354.743);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.018 353.399);
  --foreground: oklch(0.976 0.002 353.626);
  --muted: oklch(0.166 0.007 354.802);
  --muted-foreground: oklch(0.681 0.038 355.107);
  --popover: oklch(0.123 0.018 353.399);
  --popover-foreground: oklch(0.976 0.002 353.626);
  --card: oklch(0.123 0.018 353.399);
  --card-foreground: oklch(0.976 0.002 353.626);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.255 0.007 354.351);
  --primary-foreground: oklch(0.792 0.01 353.927);
  --secondary: oklch(0.316 0.01 354.423);
  --secondary-foreground: oklch(0.841 0.007 353.826);
  --accent: oklch(0.369 0.024 355.376);
  --accent-foreground: oklch(0.887 0.01 353.904);
  --destructive: oklch(0.689 0.17 45.628);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.255 0.007 354.351);
  --chart-1: oklch(0.255 0.007 354.351);
  --chart-2: oklch(0.316 0.01 354.423);
  --chart-3: oklch(0.369 0.024 355.376);
  --chart-4: oklch(0.346 0.011 354.448);
  --chart-5: oklch(0.254 0.011 354.743);
}