Snake for shadcn/ui

Snake is a shadcn/ui theme built around a muted light cyan primary color (#f7f8f8) with muted light red accents (#f8f7f7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light cyan primary (#f7f8f8) on a cyan-tinted background (#050e10).

Color palette

TokenLightDark
Background
#ffffffwhite
#050e10black
Foreground
#031416black
#f8fbfbghostwhite
Card
#fcfcfcsnow
#061213black
Card foreground
#031012black
#fcfdfdwhite
Popover
#fcfcfcsnow
#061213black
Popover foreground
#031012black
#fcfdfdwhite
Primary
#f7f8f8whitesmoke
#f7f8f8whitesmoke
Primary foreground
#282e2fdarkslategray
#282e2fdarkslategray
Secondary
#f8f7f7whitesmoke
#f8f7f7whitesmoke
Secondary foreground
#665857dimgray
#665857dimgray
Muted
#e7dbdagainsboro
#251918black
Muted foreground
#493937darkslategray
#c8b8b6silver
Accent
#f8f7f7whitesmoke
#f8f7f7whitesmoke
Accent foreground
#665857dimgray
#665857dimgray
Destructive
#7f2c05saddlebrown
#f66c2ctomato
Destructive foreground
#fccfbapeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7f8f8whitesmoke
#f7f8f8whitesmoke

Contrast

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

Light mode
Text on background18.82:1AAA
Text on card18.90:1AAA
Primary button12.94:1AAA
Secondary button6.33:1AA
Muted text8.09:1AAA
Accent6.33:1AA
Destructive6.51:1AA
Dark mode
Text on background18.71:1AAA
Text on card18.65:1AAA
Primary button12.94:1AAA
Secondary button6.33:1AA
Muted text8.89:1AAA
Accent6.33:1AA
Destructive7.12:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.178 0.025 204.265);
  --muted: oklch(0.901 0.013 25.111);
  --muted-foreground: oklch(0.36 0.023 25.644);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.161 0.022 203.593);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.161 0.022 203.593);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.978 0.001 204.981);
  --primary-foreground: oklch(0.296 0.009 204.794);
  --secondary: oklch(0.977 0.001 25);
  --secondary-foreground: oklch(0.474 0.018 25.344);
  --accent: oklch(0.977 0.001 25);
  --accent-foreground: oklch(0.474 0.018 25.344);
  --destructive: oklch(0.412 0.124 40.494);
  --destructive-foreground: oklch(0.889 0.058 46.228);
  --ring: oklch(0.978 0.001 204.981);
  --chart-1: oklch(0.978 0.001 204.981);
  --chart-2: oklch(0.977 0.001 25);
  --chart-3: oklch(0.977 0.001 25);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.978 0.002 204.977);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.016 203.88);
  --foreground: oklch(0.986 0.003 204.968);
  --muted: oklch(0.229 0.019 25.868);
  --muted-foreground: oklch(0.796 0.019 25.195);
  --popover: oklch(0.172 0.018 204.417);
  --popover-foreground: oklch(0.993 0.001 204.979);
  --card: oklch(0.172 0.018 204.417);
  --card-foreground: oklch(0.993 0.001 204.979);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.978 0.001 204.981);
  --primary-foreground: oklch(0.296 0.009 204.794);
  --secondary: oklch(0.977 0.001 25);
  --secondary-foreground: oklch(0.474 0.018 25.344);
  --accent: oklch(0.977 0.001 25);
  --accent-foreground: oklch(0.474 0.018 25.344);
  --destructive: oklch(0.693 0.185 42.432);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.978 0.001 204.981);
  --chart-1: oklch(0.978 0.001 204.981);
  --chart-2: oklch(0.977 0.001 25);
  --chart-3: oklch(0.977 0.001 25);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.978 0.002 204.977);
}