Beetle for shadcn/ui

Beetle is a shadcn/ui theme built around a muted indigo primary color (#8377ac) with muted green accents (#77ac83). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted indigo primary (#8377ac) on an indigo-tinted background (#06050b).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06050bblack
Foreground
#05030cblack
#ffffffwhite
Card
#f9f8fcghostwhite
#08060eblack
Card foreground
#040208black
#ffffffwhite
Popover
#f9f8fcghostwhite
#08060eblack
Popover foreground
#040208black
#ffffffwhite
Primary
#8377aclightslategray
#8377aclightslategray
Primary foreground
#000000black
#000000black
Secondary
#ac8377rosybrown
#ac8377rosybrown
Secondary foreground
#000000black
#000000black
Muted
#e5e2e0gainsboro
#1f1b1ablack
Muted foreground
#605957dimgray
#a8a19fdarkgray
Accent
#77ac83darkseagreen
#77ac83darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#a00303darkred
#fa0f0fred
Destructive foreground
#fed7d7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8377aclightslategray
#8377aclightslategray

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.46:1AAA
Primary button5.20:1AA
Secondary button6.27:1AA
Muted text5.30:1AA
Accent7.98:1AAA
Destructive6.34:1AA
Dark mode
Text on background20.34:1AAA
Text on card20.13:1AAA
Primary button5.20:1AA
Secondary button6.27:1AA
Muted text6.74:1AA
Accent7.98:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 297.023);
  --foreground: oklch(0.112 0.025 296.331);
  --muted: oklch(0.914 0.005 37.718);
  --muted-foreground: oklch(0.471 0.01 37.655);
  --popover: oklch(0.98 0.006 296.966);
  --popover-foreground: oklch(0.098 0.022 296.511);
  --card: oklch(0.98 0.006 296.966);
  --card-foreground: oklch(0.098 0.022 296.511);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.601 0.08 294.584);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.647 0.053 37.599);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.695 0.081 151.13);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.444 0.18 29.005);
  --destructive-foreground: oklch(0.912 0.044 17.985);
  --ring: oklch(0.601 0.08 294.584);
  --chart-1: oklch(0.601 0.08 294.584);
  --chart-2: oklch(0.647 0.053 37.599);
  --chart-3: oklch(0.695 0.081 151.13);
  --chart-4: oklch(0.672 0.049 37.593);
  --chart-5: oklch(0.594 0.09 294.211);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.017 296.687);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.007 37.633);
  --muted-foreground: oklch(0.713 0.009 37.686);
  --popover: oklch(0.131 0.02 295.903);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.131 0.02 295.903);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.601 0.08 294.584);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.647 0.053 37.599);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.695 0.081 151.13);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.622 0.251 28.832);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.601 0.08 294.584);
  --chart-1: oklch(0.601 0.08 294.584);
  --chart-2: oklch(0.647 0.053 37.599);
  --chart-3: oklch(0.695 0.081 151.13);
  --chart-4: oklch(0.672 0.049 37.593);
  --chart-5: oklch(0.594 0.09 294.211);
}