Snakebite for shadcn/ui

Snakebite is a shadcn/ui theme built around a near-white primary color (#fcfcfc) with near-white accents (#fcfcfc). The light mode uses a neutral background (#fafcf8). Dark mode keeps the near-white primary (#fcfcfc) on a green-tinted background (#070c04).

Color palette

TokenLightDark
Background
#fafcf8snow
#070c04black
Foreground
#091005black
#f7f9f6whitesmoke
Card
#fafcf8snow
#070c04black
Card foreground
#091005black
#f7f9f6whitesmoke
Popover
#fafcf8snow
#070c04black
Popover foreground
#091005black
#f7f9f6whitesmoke
Primary
#fcfcfcsnow
#fcfcfcsnow
Primary foreground
#303130darkslategray
#303130darkslategray
Secondary
#fcfcfcsnow
#fcfcfcsnow
Secondary foreground
#313031darkslategray
#313031darkslategray
Muted
#f2f1f4whitesmoke
#0d0b0eblack
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#fcfcfcsnow
#fcfcfcsnow
Accent foreground
#313031darkslategray
#313031darkslategray
Destructive
#d53e07orangered
#ed4507orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfcfcsnow
#fcfcfcsnow

Contrast

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

Light mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button12.78:1AAA
Secondary button12.85:1AAA
Muted text8.26:1AAA
Accent12.85:1AAA
Destructive4.66:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button12.78:1AAA
Secondary button12.85:1AAA
Muted text9.86:1AAA
Accent12.85:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 131.774);
  --foreground: oklch(0.16 0.026 131.516);
  --muted: oklch(0.96 0.004 311.693);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(0.988 0.006 131.774);
  --popover-foreground: oklch(0.16 0.026 131.516);
  --card: oklch(0.988 0.006 131.774);
  --card-foreground: oklch(0.16 0.026 131.516);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.992 0 131.725);
  --primary-foreground: oklch(0.312 0.002 131.773);
  --secondary: oklch(0.992 0 311.724);
  --secondary-foreground: oklch(0.31 0.002 311.675);
  --accent: oklch(0.992 0 311.724);
  --accent-foreground: oklch(0.31 0.002 311.675);
  --destructive: oklch(0.581 0.195 36.167);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.992 0 131.725);
  --chart-1: oklch(0.992 0 131.725);
  --chart-2: oklch(0.992 0 311.724);
  --chart-3: oklch(0.992 0 311.724);
  --chart-4: oklch(1.015 0 131.726);
  --chart-5: oklch(0.993 0 131.727);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.022 130.547);
  --foreground: oklch(0.979 0.004 131.758);
  --muted: oklch(0.155 0.006 311.419);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.144 0.022 130.547);
  --popover-foreground: oklch(0.979 0.004 131.758);
  --card: oklch(0.144 0.022 130.547);
  --card-foreground: oklch(0.979 0.004 131.758);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.992 0 131.725);
  --primary-foreground: oklch(0.312 0.002 131.773);
  --secondary: oklch(0.992 0 311.724);
  --secondary-foreground: oklch(0.31 0.002 311.675);
  --accent: oklch(0.992 0 311.724);
  --accent-foreground: oklch(0.31 0.002 311.675);
  --destructive: oklch(0.63 0.213 35.997);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.992 0 131.725);
  --chart-1: oklch(0.992 0 131.725);
  --chart-2: oklch(0.992 0 311.724);
  --chart-3: oklch(0.992 0 311.724);
  --chart-4: oklch(1.015 0 131.726);
  --chart-5: oklch(0.993 0 131.727);
}