Bitten for shadcn/ui

Bitten is a shadcn/ui theme built around a neutral gray primary color (#8f9489) with neutral gray accents (#94898f). The light mode uses a neutral background (#fdfefb). Dark mode keeps the neutral gray primary (#8f9489) on a green-tinted background (#080a05).

Color palette

TokenLightDark
Background
#fdfefbwhite
#080a05black
Foreground
#050902black
#fafcf8snow
Card
#fafdf7mintcream
#0b0d07black
Card foreground
#030401black
#fdfdfbsnow
Popover
#fafdf7mintcream
#0b0d07black
Popover foreground
#030401black
#fdfdfbsnow
Primary
#8f9489gray
#8f9489gray
Primary foreground
#000000black
#000000black
Secondary
#898f94lightslategray
#898f94lightslategray
Secondary foreground
#000000black
#000000black
Muted
#dde6eelavender
#111a22black
Muted foreground
#3f4040darkslategray
#bfbfc0silver
Accent
#94898fgray
#94898fgray
Accent foreground
#000000black
#000000black
Destructive
#992705saddlebrown
#f85a2atomato
Destructive foreground
#feddd2blanchedalmond
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8f9489gray
#8f9489gray

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.98:1AAA
Primary button6.79:1AA
Secondary button6.44:1AA
Muted text8.25:1AAA
Accent6.25:1AA
Destructive6.20:1AA
Dark mode
Text on background19.26:1AAA
Text on card19.16:1AAA
Primary button6.79:1AA
Secondary button6.44:1AA
Muted text9.54:1AAA
Accent6.25:1AA
Destructive6.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 126.478);
  --foreground: oklch(0.13 0.024 125.314);
  --muted: oklch(0.921 0.014 242.393);
  --muted-foreground: oklch(0.37 0.001 242.242);
  --popover: oklch(0.99 0.008 126.528);
  --popover-foreground: oklch(0.103 0.019 125.314);
  --card: oklch(0.99 0.008 126.528);
  --card-foreground: oklch(0.103 0.019 125.314);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.66 0.017 126.767);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.648 0.01 242.407);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.643 0.016 343.221);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.454 0.155 35.147);
  --destructive-foreground: oklch(0.921 0.039 37.606);
  --ring: oklch(0.66 0.017 126.767);
  --chart-1: oklch(0.66 0.017 126.767);
  --chart-2: oklch(0.648 0.01 242.407);
  --chart-3: oklch(0.643 0.016 343.221);
  --chart-4: oklch(0.673 0.01 242.383);
  --chart-5: oklch(0.667 0.028 126.966);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.012 125.88);
  --foreground: oklch(0.988 0.006 126.502);
  --muted: oklch(0.214 0.02 243.533);
  --muted-foreground: oklch(0.805 0.001 242.212);
  --popover: oklch(0.155 0.014 126.878);
  --popover-foreground: oklch(0.994 0.003 126.465);
  --card: oklch(0.155 0.014 126.878);
  --card-foreground: oklch(0.994 0.003 126.465);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.66 0.017 126.767);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.648 0.01 242.407);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.643 0.016 343.221);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.673 0.202 36.64);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.66 0.017 126.767);
  --chart-1: oklch(0.66 0.017 126.767);
  --chart-2: oklch(0.648 0.01 242.407);
  --chart-3: oklch(0.643 0.016 343.221);
  --chart-4: oklch(0.673 0.01 242.383);
  --chart-5: oklch(0.667 0.028 126.966);
}