Harlequin Bear for shadcn/ui

Harlequin Bear is a shadcn/ui theme built around a vivid green primary color (#3cff00) with vivid green accents (#00ff44). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#3cff00) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#081703black
#f7f8f6whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#081703black
#f7f8f6whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#081703black
#f7f8f6whitesmoke
Primary
#3cff00lime
#3cff00lime
Primary foreground
#0c3300darkgreen
#0c3300darkgreen
Secondary
#bbff00greenyellow
#bbff00greenyellow
Secondary foreground
#253300darkgreen
#253300darkgreen
Muted
#f2f5ebwhitesmoke
#12140ablack
Muted foreground
#494e3bdarkslategray
#bfc4b1silver
Accent
#00ff44springgreen
#00ff44springgreen
Accent foreground
#00330edarkgreen
#00330edarkgreen
Destructive
#5e0808maroon
#ee3f3ftomato
Destructive foreground
#f7a1a1lightpink
#ffffffwhite
Border
#e8e9e7linen
#1c1d1bblack
Input
#e8e9e7linen
#1c1d1bblack
Ring
#3cff00lime
#3cff00lime

Contrast

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

Light mode
Text on background18.51:1AAA
Text on card18.51:1AAA
Primary button10.40:1AAA
Secondary button11.22:1AAA
Muted text7.79:1AAA
Accent10.39:1AAA
Destructive6.98:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button10.40:1AAA
Secondary button11.22:1AAA
Muted text10.38:1AAA
Accent10.39:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.183 0.045 137.397);
  --muted: oklch(0.964 0.013 118.806);
  --muted-foreground: oklch(0.415 0.032 119.914);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.183 0.045 137.397);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.183 0.045 137.397);
  --border: oklch(0.932 0.002 138.333);
  --input: oklch(0.932 0.002 138.333);
  --primary: oklch(0.872 0.288 141.175);
  --primary-foreground: oklch(0.282 0.089 139.189);
  --secondary: oklch(0.92 0.236 126.696);
  --secondary-foreground: oklch(0.298 0.074 124.255);
  --accent: oklch(0.869 0.276 144.655);
  --accent-foreground: oklch(0.28 0.082 147.444);
  --destructive: oklch(0.309 0.117 27.627);
  --destructive-foreground: oklch(0.794 0.102 19.586);
  --ring: oklch(0.872 0.288 141.175);
  --chart-1: oklch(0.872 0.288 141.175);
  --chart-2: oklch(0.92 0.236 126.696);
  --chart-3: oklch(0.869 0.276 144.655);
  --chart-4: oklch(0.923 0.233 125.964);
  --chart-5: oklch(0.881 0.292 141.264);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.003 138.333);
  --muted: oklch(0.186 0.019 120.442);
  --muted-foreground: oklch(0.81 0.027 119.151);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.003 138.333);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.978 0.003 138.333);
  --border: oklch(0.228 0.004 138.347);
  --input: oklch(0.228 0.004 138.347);
  --primary: oklch(0.872 0.288 141.175);
  --primary-foreground: oklch(0.282 0.089 139.189);
  --secondary: oklch(0.92 0.236 126.696);
  --secondary-foreground: oklch(0.298 0.074 124.255);
  --accent: oklch(0.869 0.276 144.655);
  --accent-foreground: oklch(0.28 0.082 147.444);
  --destructive: oklch(0.63 0.212 25.749);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.872 0.288 141.175);
  --chart-1: oklch(0.872 0.288 141.175);
  --chart-2: oklch(0.92 0.236 126.696);
  --chart-3: oklch(0.869 0.276 144.655);
  --chart-4: oklch(0.923 0.233 125.964);
  --chart-5: oklch(0.881 0.292 141.264);
}