Gazelle for shadcn/ui

Gazelle is a shadcn/ui theme built around a muted green primary color (#b5d1ad) with neutral gray accents (#dbdbdb). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted green primary (#b5d1ad) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#020401black
Foreground
#050d03black
#fafbf9snow
Card
#f4fcf3honeydew
#040703black
Card foreground
#030802black
#fcfdfcwhite
Popover
#f4fcf3honeydew
#040703black
Popover foreground
#030802black
#fcfdfcwhite
Primary
#b5d1adsilver
#b5d1adsilver
Primary foreground
#20311cdarkslategray
#20311cdarkslategray
Secondary
#dbdbdbgainsboro
#1d221bblack
Secondary foreground
#424242darkslategray
#b3bfb0silver
Muted
#e7d5d5gainsboro
#1c2a18black
Muted foreground
#4d4c4cdarkslategray
#b2b3b2darkgray
Accent
#dbdbdbgainsboro
#1d221bblack
Accent foreground
#424242darkslategray
#b3bfb0silver
Destructive
#7e0301maroon
#fd2521crimson
Destructive foreground
#feb5b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b5d1adsilver
#b5d1adsilver

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card19.33:1AAA
Primary button8.36:1AAA
Secondary button7.27:1AAA
Muted text6.05:1AA
Accent7.27:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.84:1AAA
Primary button8.36:1AAA
Secondary button8.48:1AAA
Muted text7.15:1AAA
Accent8.48:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.01 139.442);
  --foreground: oklch(0.144 0.03 137.538);
  --muted: oklch(0.887 0.02 17.533);
  --muted-foreground: oklch(0.417 0.002 17.238);
  --popover: oklch(0.983 0.015 139.44);
  --popover-foreground: oklch(0.125 0.026 137.42);
  --card: oklch(0.983 0.015 139.44);
  --card-foreground: oklch(0.125 0.026 137.42);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.83 0.058 139.432);
  --primary-foreground: oklch(0.291 0.044 139.474);
  --secondary: oklch(0.892 0 180);
  --secondary-foreground: oklch(0.38 0 180);
  --accent: oklch(0.892 0 180);
  --accent-foreground: oklch(0.38 0 180);
  --destructive: oklch(0.375 0.151 29.387);
  --destructive-foreground: oklch(0.84 0.086 20.138);
  --ring: oklch(0.83 0.058 139.432);
  --chart-1: oklch(0.83 0.058 139.432);
  --chart-2: oklch(0.892 0 180);
  --chart-3: oklch(0.892 0 180);
  --chart-4: oklch(0.916 0 180);
  --chart-5: oklch(0.833 0.064 139.433);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 138.144);
  --foreground: oklch(0.986 0.002 139.444);
  --muted: oklch(0.267 0.038 139.464);
  --muted-foreground: oklch(0.766 0.003 139.443);
  --popover: oklch(0.122 0.017 138.144);
  --popover-foreground: oklch(0.993 0.001 139.444);
  --card: oklch(0.122 0.017 138.144);
  --card-foreground: oklch(0.993 0.001 139.444);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.83 0.058 139.432);
  --primary-foreground: oklch(0.291 0.044 139.474);
  --secondary: oklch(0.244 0.015 139.433);
  --secondary-foreground: oklch(0.792 0.026 139.436);
  --accent: oklch(0.244 0.015 139.433);
  --accent-foreground: oklch(0.792 0.026 139.436);
  --destructive: oklch(0.635 0.244 28.389);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.83 0.058 139.432);
  --chart-1: oklch(0.83 0.058 139.432);
  --chart-2: oklch(0.244 0.015 139.433);
  --chart-3: oklch(0.244 0.015 139.433);
  --chart-4: oklch(0.277 0.018 139.432);
  --chart-5: oklch(0.833 0.064 139.433);
}