Clove for shadcn/ui

Clove is a shadcn/ui theme built around a deep red primary color (#661524) with deep teal accents (#156657). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#661524) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040102black
Foreground
#0f0507black
#ffffffwhite
Card
#fdf7f8snow
#080203black
Card foreground
#0c0405black
#ffffffwhite
Popover
#fefbfbsnow
#040102black
Popover foreground
#0f0507black
#ffffffwhite
Primary
#661524maroon
#661524maroon
Primary foreground
#f1bbc5lightpink
#f1bbc5lightpink
Secondary
#156657darkslategray
#156657darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d2e0ddgainsboro
#1f2d2bdarkslategray
Muted foreground
#414443darkslategray
#bbbebesilver
Accent
#156657darkslategray
#156657darkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9e4110saddlebrown
#ea702echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#661524maroon
#661524maroon

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.11:1AAA
Primary button7.48:1AAA
Secondary button6.87:1AA
Muted text7.22:1AAA
Accent6.87:1AA
Destructive6.51:1AA
Dark mode
Text on background20.77:1AAA
Text on card20.55:1AAA
Primary button7.48:1AAA
Secondary button6.87:1AA
Muted text7.62:1AAA
Accent6.87:1AA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 4.41);
  --foreground: oklch(0.134 0.022 5.783);
  --muted: oklch(0.894 0.015 183.855);
  --muted-foreground: oklch(0.383 0.004 184.057);
  --popover: oklch(0.99 0.004 4.41);
  --popover-foreground: oklch(0.134 0.022 5.783);
  --card: oklch(0.98 0.007 4.511);
  --card-foreground: oklch(0.121 0.019 4.795);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.34 0.113 15.606);
  --primary-foreground: oklch(0.844 0.063 6.255);
  --secondary: oklch(0.458 0.078 177.097);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.458 0.078 177.097);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.494 0.136 43.77);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.34 0.113 15.606);
  --chart-1: oklch(0.34 0.113 15.606);
  --chart-2: oklch(0.458 0.078 177.097);
  --chart-3: oklch(0.458 0.078 177.097);
  --chart-4: oklch(0.498 0.085 176.958);
  --chart-5: oklch(0.342 0.117 16.249);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 4.715);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.284 0.019 182.371);
  --muted-foreground: oklch(0.799 0.003 184.21);
  --popover: oklch(0.083 0.014 4.715);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.105 0.018 4.715);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.34 0.113 15.606);
  --primary-foreground: oklch(0.844 0.063 6.255);
  --secondary: oklch(0.458 0.078 177.097);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.458 0.078 177.097);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.681 0.169 45.483);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.34 0.113 15.606);
  --chart-1: oklch(0.34 0.113 15.606);
  --chart-2: oklch(0.458 0.078 177.097);
  --chart-3: oklch(0.458 0.078 177.097);
  --chart-4: oklch(0.498 0.085 176.958);
  --chart-5: oklch(0.342 0.117 16.249);
}