Hedge for shadcn/ui

Hedge is a shadcn/ui theme built around a muted light green primary color (#bacabd) with muted light green accents (#e0ebe3). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted light green primary (#bacabd) on a green-tinted background (#050f07).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#050f07black
Foreground
#010501black
#f6f8f7whitesmoke
Card
#f8fcf9mintcream
#071309black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#f8fcf9mintcream
#071309black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#bacabdsilver
#bacabdsilver
Primary foreground
#232e26darkslategray
#232e26darkslategray
Secondary
#e0ebe3gainsboro
#212c23darkslategray
Secondary foreground
#3d5c44darkslategray
#b6c9basilver
Muted
#dbe1dcgainsboro
#1e241fblack
Muted foreground
#5f6d62dimgray
#92a095darkseagreen
Accent
#e0ebe3gainsboro
#212c23darkslategray
Accent foreground
#3d5c44darkslategray
#b6c9basilver
Destructive
#c12d0bfirebrick
#f3502btomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bacabdsilver
#bacabdsilver

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.24:1AAA
Primary button8.21:1AAA
Secondary button6.08:1AA
Muted text4.10:1AA Large
Accent6.08:1AA
Destructive5.77:1AA
Dark mode
Text on background18.24:1AAA
Text on card18.27:1AAA
Primary button8.21:1AAA
Secondary button8.32:1AAA
Muted text5.76:1AA
Accent8.32:1AAA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 152.577);
  --foreground: oklch(0.099 0.021 151.533);
  --muted: oklch(0.904 0.01 152.443);
  --muted-foreground: oklch(0.52 0.024 151.855);
  --popover: oklch(0.987 0.005 152.536);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 152.536);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.823 0.024 152.144);
  --primary-foreground: oklch(0.289 0.021 151.418);
  --secondary: oklch(0.929 0.015 152.358);
  --secondary-foreground: oklch(0.443 0.053 150.525);
  --accent: oklch(0.929 0.015 152.358);
  --accent-foreground: oklch(0.443 0.053 150.525);
  --destructive: oklch(0.531 0.189 33.07);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.823 0.024 152.144);
  --chart-1: oklch(0.823 0.024 152.144);
  --chart-2: oklch(0.929 0.015 152.358);
  --chart-3: oklch(0.929 0.015 152.358);
  --chart-4: oklch(0.95 0.011 152.441);
  --chart-5: oklch(0.825 0.03 152.034);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.023 151.273);
  --foreground: oklch(0.978 0.003 152.563);
  --muted: oklch(0.254 0.014 151.747);
  --muted-foreground: oklch(0.692 0.023 152.088);
  --popover: oklch(0.171 0.027 150.46);
  --popover-foreground: oklch(0.986 0.002 152.581);
  --card: oklch(0.171 0.027 150.46);
  --card-foreground: oklch(0.986 0.002 152.581);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.823 0.024 152.144);
  --primary-foreground: oklch(0.289 0.021 151.418);
  --secondary: oklch(0.279 0.023 151.257);
  --secondary-foreground: oklch(0.817 0.029 152.041);
  --accent: oklch(0.279 0.023 151.257);
  --accent-foreground: oklch(0.817 0.029 152.041);
  --destructive: oklch(0.652 0.205 33.968);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.823 0.024 152.144);
  --chart-1: oklch(0.823 0.024 152.144);
  --chart-2: oklch(0.279 0.023 151.257);
  --chart-3: oklch(0.279 0.023 151.257);
  --chart-4: oklch(0.312 0.027 151.193);
  --chart-5: oklch(0.825 0.03 152.034);
}