Battle Cat Bison for shadcn/ui

Battle Cat Bison is a shadcn/ui theme built around a vivid deep green primary color (#2a750f) with vivid deep green accents (#0f7527). The light mode uses a neutral background (#f9fbf8). Dark mode keeps the vivid deep green primary (#2a750f) on a green-tinted background (#060c03).

Color palette

TokenLightDark
Background
#f9fbf8mintcream
#060c03black
Foreground
#071004black
#ffffffwhite
Card
#f6faf5whitesmoke
#071004black
Card foreground
#060c03black
#ffffffwhite
Popover
#f6faf5whitesmoke
#071004black
Popover foreground
#060c03black
#ffffffwhite
Primary
#2a750fforestgreen
#2a750fforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5e750folivedrab
#5e750folivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dee3cegainsboro
#2c311cdarkslategray
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#0f7527forestgreen
#0f7527forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b94a0esienna
#ef6b25chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e6e5gainsboro
#191a19black
Input
#e5e6e5gainsboro
#191a19black
Ring
#2a750fforestgreen
#2a750fforestgreen

Contrast

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

Light mode
Text on background18.66:1AAA
Text on card18.72:1AAA
Primary button5.72:1AA
Secondary button5.19:1AA
Muted text6.24:1AA
Accent5.81:1AA
Destructive5.19:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.33:1AAA
Primary button5.72:1AA
Secondary button5.19:1AA
Muted text6.22:1AA
Accent5.81:1AA
Destructive6.80:1AA

CSS variables

Paste this into your globals.css to use Battle Cat Bison in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 137.2);
  --foreground: oklch(0.16 0.029 136.177);
  --muted: oklch(0.907 0.028 117.635);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.98 0.007 137.206);
  --popover-foreground: oklch(0.143 0.025 135.591);
  --card: oklch(0.98 0.007 137.206);
  --card-foreground: oklch(0.143 0.025 135.591);
  --border: oklch(0.924 0.002 137.195);
  --input: oklch(0.924 0.002 137.195);
  --primary: oklch(0.497 0.15 139.436);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.526 0.123 122.995);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.493 0.144 145.997);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.55 0.157 42.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.497 0.15 139.436);
  --chart-1: oklch(0.497 0.15 139.436);
  --chart-2: oklch(0.526 0.123 122.995);
  --chart-3: oklch(0.493 0.144 145.997);
  --chart-4: oklch(0.569 0.134 123.085);
  --chart-5: oklch(0.503 0.153 139.565);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.025 135.569);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.301 0.035 119.28);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.16 0.03 136.159);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.03 136.159);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.217 0.003 137.226);
  --input: oklch(0.217 0.003 137.226);
  --primary: oklch(0.497 0.15 139.436);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.526 0.123 122.995);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.493 0.144 145.997);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.68 0.18 44.534);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.497 0.15 139.436);
  --chart-1: oklch(0.497 0.15 139.436);
  --chart-2: oklch(0.526 0.123 122.995);
  --chart-3: oklch(0.493 0.144 145.997);
  --chart-4: oklch(0.569 0.134 123.085);
  --chart-5: oklch(0.503 0.153 139.565);
}