Snakebite for shadcn/ui

Snakebite is a shadcn/ui theme built around a deep yellow primary color (#483e0f) with deep purple accents (#3e0f48). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#483e0f) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#080702black
#fcfbf8snow
Card
#fcfcfcsnow
#0a0905black
Card foreground
#040401black
#fdfdfbsnow
Popover
#ffffffwhite
#070603black
Popover foreground
#080702black
#fcfbf8snow
Primary
#483e0fdarkolivegreen
#483e0fdarkolivegreen
Primary foreground
#ebde9epalegoldenrod
#ebde9epalegoldenrod
Secondary
#0f483edarkslategray
#0f483edarkslategray
Secondary foreground
#9eebdepowderblue
#9eebdepowderblue
Muted
#d8deddgainsboro
#212726darkslategray
Muted foreground
#4e6a65dimgray
#95b1acdarkgray
Accent
#3e0f48midnightblue
#3e0f48midnightblue
Accent foreground
#de9eebplum
#de9eebplum
Destructive
#670b09maroon
#e61714red
Destructive foreground
#f8acablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#483e0fdarkolivegreen
#483e0fdarkolivegreen

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.08:1AAA
Primary button7.81:1AAA
Secondary button7.63:1AAA
Muted text4.32:1AA Large
Accent7.45:1AAA
Destructive7.04:1AAA
Dark mode
Text on background19.56:1AAA
Text on card19.52:1AAA
Primary button7.81:1AAA
Secondary button7.63:1AAA
Muted text6.65:1AA
Accent7.45:1AAA
Destructive4.66:1AA

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.129 0.019 101.693);
  --muted: oklch(0.896 0.006 185.265);
  --muted-foreground: oklch(0.5 0.033 183.596);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.019 101.693);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.015 101.693);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.365 0.066 97.596);
  --primary-foreground: oklch(0.896 0.084 98.206);
  --secondary: oklch(0.363 0.059 179.025);
  --secondary-foreground: oklch(0.886 0.078 182.88);
  --accent: oklch(0.278 0.108 320.413);
  --accent-foreground: oklch(0.786 0.127 320.737);
  --destructive: oklch(0.331 0.125 28.131);
  --destructive-foreground: oklch(0.816 0.09 20.279);
  --ring: oklch(0.365 0.066 97.596);
  --chart-1: oklch(0.365 0.066 97.596);
  --chart-2: oklch(0.363 0.059 179.025);
  --chart-3: oklch(0.278 0.108 320.413);
  --chart-4: oklch(0.405 0.067 178.805);
  --chart-5: oklch(0.369 0.068 97.464);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.01 99.804);
  --foreground: oklch(0.988 0.004 97.318);
  --muted: oklch(0.265 0.008 184.605);
  --muted-foreground: oklch(0.738 0.031 184.318);
  --popover: oklch(0.123 0.01 99.804);
  --popover-foreground: oklch(0.988 0.004 97.318);
  --card: oklch(0.141 0.011 99.804);
  --card-foreground: oklch(0.994 0.002 97.289);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.365 0.066 97.596);
  --primary-foreground: oklch(0.896 0.084 98.206);
  --secondary: oklch(0.363 0.059 179.025);
  --secondary-foreground: oklch(0.886 0.078 182.88);
  --accent: oklch(0.278 0.108 320.413);
  --accent-foreground: oklch(0.786 0.127 320.737);
  --destructive: oklch(0.587 0.232 28.781);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.365 0.066 97.596);
  --chart-1: oklch(0.365 0.066 97.596);
  --chart-2: oklch(0.363 0.059 179.025);
  --chart-3: oklch(0.278 0.108 320.413);
  --chart-4: oklch(0.405 0.067 178.805);
  --chart-5: oklch(0.369 0.068 97.464);
}