Kangaroo for shadcn/ui

Kangaroo is a shadcn/ui theme built around a green primary color (#819e24) with indigo accents (#40249e). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#819e24) on a green-tinted background (#0d0f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d0f05black
Foreground
#040501black
#fbfbf9snow
Card
#ffffffwhite
#0d0f05black
Card foreground
#040501black
#fbfbf9snow
Popover
#ffffffwhite
#0d0f05black
Popover foreground
#040501black
#fbfbf9snow
Primary
#819e24olivedrab
#819e24olivedrab
Primary foreground
#000000black
#000000black
Secondary
#40249edarkslateblue
#40249edarkslateblue
Secondary foreground
#f8f7fdghostwhite
#f8f7fdghostwhite
Muted
#d6d4degainsboro
#24212bdarkslategray
Muted foreground
#44404fdarkslategray
#b4b0bfsilver
Accent
#40249edarkslateblue
#40249edarkslateblue
Accent foreground
#f8f7fdghostwhite
#f8f7fdghostwhite
Destructive
#e42f01orangered
#fe3c0borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#819e24olivedrab
#819e24olivedrab

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.44:1AAA
Primary button6.85:1AA
Secondary button10.03:1AAA
Muted text6.83:1AA
Accent10.03:1AAA
Destructive4.45:1AA Large
Dark mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button6.85:1AA
Secondary button10.03:1AAA
Muted text7.44:1AAA
Accent10.03:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.106 0.02 117.481);
  --muted: oklch(0.874 0.014 296.796);
  --muted-foreground: oklch(0.381 0.024 295.915);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.02 117.481);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.106 0.02 117.481);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.655 0.146 122.325);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.384 0.182 284.557);
  --secondary-foreground: oklch(0.978 0.009 296.92);
  --accent: oklch(0.384 0.182 284.557);
  --accent-foreground: oklch(0.978 0.009 296.92);
  --destructive: oklch(0.596 0.22 32.828);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.655 0.146 122.325);
  --chart-1: oklch(0.655 0.146 122.325);
  --chart-2: oklch(0.384 0.182 284.557);
  --chart-3: oklch(0.384 0.182 284.557);
  --chart-4: oklch(0.405 0.194 284.38);
  --chart-5: oklch(0.663 0.15 122.533);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.163 0.021 118.675);
  --foreground: oklch(0.987 0.003 117.136);
  --muted: oklch(0.256 0.019 295.739);
  --muted-foreground: oklch(0.766 0.02 296.598);
  --popover: oklch(0.163 0.021 118.675);
  --popover-foreground: oklch(0.987 0.003 117.136);
  --card: oklch(0.163 0.021 118.675);
  --card-foreground: oklch(0.987 0.003 117.136);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.655 0.146 122.325);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.384 0.182 284.557);
  --secondary-foreground: oklch(0.978 0.009 296.92);
  --accent: oklch(0.384 0.182 284.557);
  --accent-foreground: oklch(0.978 0.009 296.92);
  --destructive: oklch(0.651 0.234 33.286);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.655 0.146 122.325);
  --chart-1: oklch(0.655 0.146 122.325);
  --chart-2: oklch(0.384 0.182 284.557);
  --chart-3: oklch(0.384 0.182 284.557);
  --chart-4: oklch(0.405 0.194 284.38);
  --chart-5: oklch(0.663 0.15 122.533);
}