Cloves for shadcn/ui

Cloves is a shadcn/ui theme built around a vivid deep yellow primary color (#141200) with vivid deep blue accents (#000214). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the vivid deep yellow primary (#141200) on a neutral background (#040302).

Color palette

TokenLightDark
Background
#fdfdf7snow
#040302black
Foreground
#0d0c02black
#fbfbf9snow
Card
#fcfbf2floralwhite
#070703black
Card foreground
#090801black
#fdfdfcwhite
Popover
#fcfbf2floralwhite
#070703black
Popover foreground
#090801black
#fdfdfcwhite
Primary
#141200black
#141200black
Primary foreground
#ddc703gold
#ddc703gold
Secondary
#000214black
#000214black
Secondary foreground
#afb7felightsteelblue
#afb7felightsteelblue
Muted
#dee0edlavender
#121421black
Muted foreground
#4a4b55darkslategray
#aaacb5darkgray
Accent
#000214black
#000214black
Accent foreground
#afb7felightsteelblue
#afb7felightsteelblue
Destructive
#8d1702darkred
#fb3a18orangered
Destructive foreground
#feccc3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#141200black
#141200black

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.36:1AAA
Primary button10.95:1AAA
Secondary button10.80:1AAA
Muted text6.57:1AA
Accent10.80:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.84:1AAA
Primary button10.95:1AAA
Secondary button10.80:1AAA
Muted text8.09:1AAA
Accent10.80:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 101.411);
  --foreground: oklch(0.152 0.024 104.568);
  --muted: oklch(0.909 0.017 280.971);
  --muted-foreground: oklch(0.414 0.017 280.613);
  --popover: oklch(0.987 0.012 101.473);
  --popover-foreground: oklch(0.132 0.021 105.084);
  --card: oklch(0.987 0.012 101.473);
  --card-foreground: oklch(0.132 0.021 105.084);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.179 0.037 104.623);
  --primary-foreground: oklch(0.823 0.172 101.411);
  --secondary: oklch(0.104 0.048 264.284);
  --secondary-foreground: oklch(0.798 0.101 278.94);
  --accent: oklch(0.104 0.048 264.284);
  --accent-foreground: oklch(0.798 0.101 278.94);
  --destructive: oklch(0.415 0.155 32.075);
  --destructive-foreground: oklch(0.886 0.059 29.853);
  --ring: oklch(0.179 0.037 104.623);
  --chart-1: oklch(0.179 0.037 104.623);
  --chart-2: oklch(0.104 0.048 264.284);
  --chart-3: oklch(0.104 0.048 264.284);
  --chart-4: oklch(0.134 0.069 264.809);
  --chart-5: oklch(0.181 0.038 104.686);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.009 103.637);
  --foreground: oklch(0.987 0.003 101.336);
  --muted: oklch(0.195 0.026 278.816);
  --muted-foreground: oklch(0.745 0.014 280.973);
  --popover: oklch(0.125 0.012 103.637);
  --popover-foreground: oklch(0.994 0.002 101.311);
  --card: oklch(0.125 0.012 103.637);
  --card-foreground: oklch(0.994 0.002 101.311);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.179 0.037 104.623);
  --primary-foreground: oklch(0.823 0.172 101.411);
  --secondary: oklch(0.104 0.048 264.284);
  --secondary-foreground: oklch(0.798 0.101 278.94);
  --accent: oklch(0.104 0.048 264.284);
  --accent-foreground: oklch(0.798 0.101 278.94);
  --destructive: oklch(0.646 0.232 32.065);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.179 0.037 104.623);
  --chart-1: oklch(0.179 0.037 104.623);
  --chart-2: oklch(0.104 0.048 264.284);
  --chart-3: oklch(0.104 0.048 264.284);
  --chart-4: oklch(0.134 0.069 264.809);
  --chart-5: oklch(0.181 0.038 104.686);
}