Kangaroo for shadcn/ui

Kangaroo is a shadcn/ui theme built around a deep violet primary color (#190f24) with deep purple accents (#240f24). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#190f24) on a violet-tinted background (#07050b).

Color palette

TokenLightDark
Background
#ffffffwhite
#07050bblack
Foreground
#07030dblack
#f7f5fawhitesmoke
Card
#fcfcfcsnow
#0a060eblack
Card foreground
#050208black
#faf8fbghostwhite
Popover
#fcfcfcsnow
#0a060eblack
Popover foreground
#050208black
#faf8fbghostwhite
Primary
#190f24black
#190f24black
Primary foreground
#b092d3mediumpurple
#b092d3mediumpurple
Secondary
#0f0f24black
#0f0f24black
Secondary foreground
#9294d3mediumpurple
#9294d3mediumpurple
Muted
#d1d2e0lightgrey
#1f1f2edarkslategray
Muted foreground
#525360dimgray
#9f9faddarkgray
Accent
#240f24black
#240f24black
Accent foreground
#d192d3plum
#d192d3plum
Destructive
#bc0d01firebrick
#fe3d2ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#190f24black
#190f24black

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.17:1AAA
Primary button6.97:1AA
Secondary button6.63:1AA
Muted text5.05:1AA
Accent7.51:1AAA
Destructive6.57:1AA
Dark mode
Text on background18.74:1AAA
Text on card19.00:1AAA
Primary button6.97:1AA
Secondary button6.63:1AA
Muted text6.21:1AA
Accent7.51:1AAA
Destructive3.54: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.113 0.031 308.464);
  --muted: oklch(0.867 0.02 284.388);
  --muted-foreground: oklch(0.445 0.022 283.881);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.099 0.026 308.89);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.026 308.89);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.192 0.045 304.042);
  --primary-foreground: oklch(0.71 0.099 305.37);
  --secondary: oklch(0.182 0.043 279.752);
  --secondary-foreground: oklch(0.689 0.093 282.134);
  --accent: oklch(0.209 0.051 325.998);
  --accent-foreground: oklch(0.743 0.116 325.539);
  --destructive: oklch(0.503 0.201 29.967);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.192 0.045 304.042);
  --chart-1: oklch(0.192 0.045 304.042);
  --chart-2: oklch(0.182 0.043 279.752);
  --chart-3: oklch(0.209 0.051 325.998);
  --chart-4: oklch(0.207 0.054 279.114);
  --chart-5: oklch(0.191 0.048 303.774);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.017 308.014);
  --foreground: oklch(0.973 0.006 307.033);
  --muted: oklch(0.246 0.028 282.6);
  --muted-foreground: oklch(0.707 0.02 284.299);
  --popover: oklch(0.134 0.02 306.823);
  --popover-foreground: oklch(0.982 0.004 307.06);
  --card: oklch(0.134 0.02 306.823);
  --card-foreground: oklch(0.982 0.004 307.06);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.192 0.045 304.042);
  --primary-foreground: oklch(0.71 0.099 305.37);
  --secondary: oklch(0.182 0.043 279.752);
  --secondary-foreground: oklch(0.689 0.093 282.134);
  --accent: oklch(0.209 0.051 325.998);
  --accent-foreground: oklch(0.743 0.116 325.539);
  --destructive: oklch(0.654 0.23 29.126);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.192 0.045 304.042);
  --chart-1: oklch(0.192 0.045 304.042);
  --chart-2: oklch(0.182 0.043 279.752);
  --chart-3: oklch(0.209 0.051 325.998);
  --chart-4: oklch(0.207 0.054 279.114);
  --chart-5: oklch(0.191 0.048 303.774);
}