Clove for shadcn/ui

Clove is a shadcn/ui theme built around a muted deep green primary color (#0d1612) with muted deep teal accents (#0d1616). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the muted deep green primary (#0d1612) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#010402black
Foreground
#020d07black
#f8fcfamintcream
Card
#f4fbf7mintcream
#030705black
Card foreground
#010905black
#fbfdfcwhite
Popover
#f4fbf7mintcream
#030705black
Popover foreground
#010905black
#fbfdfcwhite
Primary
#0d1612black
#0d1612black
Primary foreground
#96c0a9darkseagreen
#96c0a9darkseagreen
Secondary
#0e160dblack
#0e160dblack
Secondary foreground
#97c096darkseagreen
#97c096darkseagreen
Muted
#d8e9d8gainsboro
#172716black
Muted foreground
#566d55dimgray
#93aa92darkseagreen
Accent
#0d1616black
#0d1616black
Accent foreground
#96c0bedarkgray
#96c0bedarkgray
Destructive
#d45511chocolate
#de5912chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d1612black
#0d1612black

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card19.14:1AAA
Primary button9.10:1AAA
Secondary button9.02:1AAA
Muted text4.46:1AA Large
Accent9.22:1AAA
Destructive4.09:1AA Large
Dark mode
Text on background19.91:1AAA
Text on card19.80:1AAA
Primary button9.10:1AAA
Secondary button9.02:1AAA
Muted text6.27:1AA
Accent9.22:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 163.296);
  --foreground: oklch(0.144 0.024 162.923);
  --muted: oklch(0.917 0.029 144.413);
  --muted-foreground: oklch(0.508 0.045 144.027);
  --popover: oklch(0.981 0.009 163.219);
  --popover-foreground: oklch(0.125 0.021 163.53);
  --card: oklch(0.981 0.009 163.219);
  --card-foreground: oklch(0.125 0.021 163.53);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.191 0.016 161.04);
  --primary-foreground: oklch(0.771 0.055 161.491);
  --secondary: oklch(0.19 0.022 143.838);
  --secondary-foreground: oklch(0.767 0.073 143.978);
  --accent: oklch(0.193 0.013 193.527);
  --accent-foreground: oklch(0.777 0.045 193.731);
  --destructive: oklch(0.609 0.175 42.749);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.191 0.016 161.04);
  --chart-1: oklch(0.191 0.016 161.04);
  --chart-2: oklch(0.19 0.022 143.838);
  --chart-3: oklch(0.193 0.013 193.527);
  --chart-4: oklch(0.227 0.03 143.727);
  --chart-5: oklch(0.192 0.018 160.751);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.011 163.501);
  --foreground: oklch(0.987 0.005 163.312);
  --muted: oklch(0.253 0.039 143.573);
  --muted-foreground: oklch(0.713 0.042 144.234);
  --popover: oklch(0.122 0.014 163.501);
  --popover-foreground: oklch(0.994 0.003 163.379);
  --card: oklch(0.122 0.014 163.501);
  --card-foreground: oklch(0.994 0.003 163.379);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.191 0.016 161.04);
  --primary-foreground: oklch(0.771 0.055 161.491);
  --secondary: oklch(0.19 0.022 143.838);
  --secondary-foreground: oklch(0.767 0.073 143.978);
  --accent: oklch(0.193 0.013 193.527);
  --accent-foreground: oklch(0.777 0.045 193.731);
  --destructive: oklch(0.629 0.181 42.677);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.191 0.016 161.04);
  --chart-1: oklch(0.191 0.016 161.04);
  --chart-2: oklch(0.19 0.022 143.838);
  --chart-3: oklch(0.193 0.013 193.527);
  --chart-4: oklch(0.227 0.03 143.727);
  --chart-5: oklch(0.192 0.018 160.751);
}