Jade Green Boar for shadcn/ui

Jade Green Boar is a shadcn/ui theme built around a muted green primary color (#769673) with muted purple accents (#937396). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#769673) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefbwhite
#000000black
Foreground
#030d02black
#f9fbf9mintcream
Card
#f7fdf6mintcream
#030303black
Card foreground
#020901black
#fcfdfcwhite
Popover
#fbfefbwhite
#000000black
Popover foreground
#030d02black
#f9fbf9mintcream
Primary
#769673gray
#769673gray
Primary foreground
#000000black
#000000black
Secondary
#937396gray
#937396gray
Secondary foreground
#000000black
#000000black
Muted
#e5e0e5gainsboro
#1e1a1fblack
Muted foreground
#554e56dimgray
#b1a9b1darkgray
Accent
#937396gray
#937396gray
Accent foreground
#000000black
#000000black
Destructive
#c9450dchocolate
#eb510forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e1e5e1gainsboro
#242923darkslategray
Input
#e1e5e1gainsboro
#242923darkslategray
Ring
#769673gray
#769673gray

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.57:1AAA
Primary button6.37:1AA
Secondary button5.15:1AA
Muted text6.19:1AA
Accent5.15:1AA
Destructive4.81:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.28:1AAA
Primary button6.37:1AA
Secondary button5.15:1AA
Muted text7.53:1AAA
Accent5.15:1AA
Destructive3.67:1AA Large

CSS variables

Paste this into your globals.css to use Jade Green Boar in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.006 143.107);
  --foreground: oklch(0.144 0.034 140.966);
  --muted: oklch(0.913 0.008 323.177);
  --muted-foreground: oklch(0.432 0.016 323.307);
  --popover: oklch(0.994 0.006 143.107);
  --popover-foreground: oklch(0.144 0.034 140.966);
  --card: oklch(0.989 0.012 143.08);
  --card-foreground: oklch(0.125 0.03 140.917);
  --border: oklch(0.918 0.007 143.097);
  --input: oklch(0.918 0.007 143.097);
  --primary: oklch(0.639 0.061 142.676);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.599 0.063 323.595);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.599 0.063 323.595);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.571 0.177 38.932);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.639 0.061 142.676);
  --chart-1: oklch(0.639 0.061 142.676);
  --chart-2: oklch(0.599 0.063 323.595);
  --chart-3: oklch(0.599 0.063 323.595);
  --chart-4: oklch(0.626 0.058 323.547);
  --chart-5: oklch(0.645 0.074 142.585);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 143.118);
  --muted: oklch(0.223 0.012 323.376);
  --muted-foreground: oklch(0.745 0.014 323.222);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 143.118);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 143.126);
  --border: oklch(0.274 0.014 142.899);
  --input: oklch(0.274 0.014 142.899);
  --primary: oklch(0.639 0.061 142.676);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.599 0.063 323.595);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.599 0.063 323.595);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.639 0.201 38.705);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.639 0.061 142.676);
  --chart-1: oklch(0.639 0.061 142.676);
  --chart-2: oklch(0.599 0.063 323.595);
  --chart-3: oklch(0.599 0.063 323.595);
  --chart-4: oklch(0.626 0.058 323.547);
  --chart-5: oklch(0.645 0.074 142.585);
}