Select Battle Cat for shadcn/ui

Select Battle Cat is a shadcn/ui theme built around a vivid deep green primary color (#2d720d) with muted light green accents (#cddcc6). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid deep green primary (#2d720d) on a neutral background (#040802).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#040802black
Foreground
#000000black
#f6faf5whitesmoke
Card
#f9fcf8mintcream
#060c04black
Card foreground
#000000black
#f9fcf8mintcream
Popover
#fcfdfcwhite
#040802black
Popover foreground
#000000black
#f6faf5whitesmoke
Primary
#2d720dforestgreen
#2d720dforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e7ece4beige
#2b2c2adarkslategray
Secondary foreground
#4a5c42darkolivegreen
#c4c6c3silver
Muted
#d8dbd6gainsboro
#252924darkslategray
Muted foreground
#414f3bdarkslategray
#b6c4b0silver
Accent
#cddcc6lightgrey
#393f36darkslategray
Accent foreground
#33462bdarkslategray
#d2d7d0lightgrey
Destructive
#640a07maroon
#f13832crimson
Destructive foreground
#f9a7a4lightpink
#ffffffwhite
Border
#eff1eewhitesmoke
#252a22darkslategray
Input
#eff1eewhitesmoke
#252a22darkslategray
Ring
#2d720dforestgreen
#2d720dforestgreen

Contrast

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

Light mode
Text on background20.63:1AAA
Text on card20.27:1AAA
Primary button5.94:1AA
Secondary button6.03:1AA
Muted text6.25:1AA
Accent7.14:1AAA
Destructive6.97:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.14:1AAA
Primary button5.94:1AA
Secondary button8.13:1AAA
Muted text8.10:1AAA
Accent7.38:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 135.439);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.888 0.008 135.468);
  --muted-foreground: oklch(0.41 0.038 135.865);
  --popover: oklch(0.994 0.003 135.439);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 135.45);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.956 0.005 135.448);
  --input: oklch(0.956 0.005 135.448);
  --primary: oklch(0.489 0.146 138.543);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.937 0.012 135.482);
  --secondary-foreground: oklch(0.453 0.048 135.938);
  --accent: oklch(0.877 0.034 135.597);
  --accent-foreground: oklch(0.369 0.05 136.123);
  --destructive: oklch(0.324 0.122 28.757);
  --destructive-foreground: oklch(0.808 0.097 21.605);
  --ring: oklch(0.489 0.146 138.543);
  --chart-1: oklch(0.489 0.146 138.543);
  --chart-2: oklch(0.937 0.012 135.482);
  --chart-3: oklch(0.877 0.034 135.597);
  --chart-4: oklch(0.958 0.008 135.463);
  --chart-5: oklch(0.494 0.149 138.696);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.02 133.871);
  --foreground: oklch(0.981 0.008 135.461);
  --muted: oklch(0.275 0.011 135.604);
  --muted-foreground: oklch(0.805 0.032 135.605);
  --popover: oklch(0.125 0.02 133.871);
  --popover-foreground: oklch(0.981 0.008 135.461);
  --card: oklch(0.143 0.023 133.979);
  --card-foreground: oklch(0.987 0.005 135.45);
  --border: oklch(0.277 0.016 135.68);
  --input: oklch(0.277 0.016 135.68);
  --primary: oklch(0.489 0.146 138.543);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.292 0.004 135.48);
  --secondary-foreground: oklch(0.823 0.004 135.447);
  --accent: oklch(0.36 0.018 135.65);
  --accent-foreground: oklch(0.874 0.011 135.48);
  --destructive: oklch(0.628 0.221 27.765);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.489 0.146 138.543);
  --chart-1: oklch(0.489 0.146 138.543);
  --chart-2: oklch(0.292 0.004 135.48);
  --chart-3: oklch(0.36 0.018 135.65);
  --chart-4: oklch(0.323 0.004 135.482);
  --chart-5: oklch(0.494 0.149 138.696);
}