Grove for shadcn/ui

Grove is a shadcn/ui theme built around a deep pink primary color (#5c2e40) with deep red accents (#5c332e). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the deep pink primary (#5c2e40) on a pink-tinted background (#0a0507).

Color palette

TokenLightDark
Background
#fdf7f9snow
#0a0507black
Foreground
#040102black
#f8f6f7whitesmoke
Card
#fdf7f9snow
#0a0507black
Card foreground
#040102black
#f8f6f7whitesmoke
Popover
#fdf7f9snow
#0a0507black
Popover foreground
#040102black
#f8f6f7whitesmoke
Primary
#5c2e40darkslategray
#5c2e40darkslategray
Primary foreground
#e9d3dcgainsboro
#e9d3dcgainsboro
Secondary
#5c2e57darkslategray
#5c2e57darkslategray
Secondary foreground
#e9d3e7gainsboro
#e9d3e7gainsboro
Muted
#edd9eblavender
#261224black
Muted foreground
#4a4549darkslategray
#bab5b9silver
Accent
#5c332edarkolivegreen
#5c332edarkolivegreen
Accent foreground
#e9d5d3gainsboro
#e9d5d3gainsboro
Destructive
#77310dsaddlebrown
#ea773ecoral
Destructive foreground
#f8d2bfpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5c2e40darkslategray
#5c2e40darkslategray

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button7.72:1AAA
Secondary button7.53:1AAA
Muted text7.01:1AAA
Accent7.62:1AAA
Destructive6.71:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button7.72:1AAA
Secondary button7.53:1AAA
Muted text8.70:1AAA
Accent7.62:1AAA
Destructive7.20:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 350.853);
  --foreground: oklch(0.084 0.016 350.248);
  --muted: oklch(0.907 0.033 328.984);
  --muted-foreground: oklch(0.397 0.009 328.828);
  --popover: oklch(0.981 0.008 350.853);
  --popover-foreground: oklch(0.084 0.016 350.248);
  --card: oklch(0.981 0.008 350.853);
  --card-foreground: oklch(0.084 0.016 350.248);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.367 0.07 355.744);
  --primary-foreground: oklch(0.887 0.027 351.462);
  --secondary: oklch(0.377 0.088 330.95);
  --secondary-foreground: oklch(0.89 0.036 329.026);
  --accent: oklch(0.37 0.06 27.089);
  --accent-foreground: oklch(0.889 0.022 25.21);
  --destructive: oklch(0.405 0.109 43.288);
  --destructive-foreground: oklch(0.89 0.05 48.135);
  --ring: oklch(0.367 0.07 355.744);
  --chart-1: oklch(0.367 0.07 355.744);
  --chart-2: oklch(0.377 0.088 330.95);
  --chart-3: oklch(0.37 0.06 27.089);
  --chart-4: oklch(0.405 0.096 330.985);
  --chart-5: oklch(0.367 0.076 356.241);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.011 350.44);
  --foreground: oklch(0.976 0.003 350.697);
  --muted: oklch(0.219 0.045 330.69);
  --muted-foreground: oklch(0.779 0.007 328.695);
  --popover: oklch(0.127 0.011 350.44);
  --popover-foreground: oklch(0.976 0.003 350.697);
  --card: oklch(0.127 0.011 350.44);
  --card-foreground: oklch(0.976 0.003 350.697);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.367 0.07 355.744);
  --primary-foreground: oklch(0.887 0.027 351.462);
  --secondary: oklch(0.377 0.088 330.95);
  --secondary-foreground: oklch(0.89 0.036 329.026);
  --accent: oklch(0.37 0.06 27.089);
  --accent-foreground: oklch(0.889 0.022 25.21);
  --destructive: oklch(0.692 0.158 45.214);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.367 0.07 355.744);
  --chart-1: oklch(0.367 0.07 355.744);
  --chart-2: oklch(0.377 0.088 330.95);
  --chart-3: oklch(0.37 0.06 27.089);
  --chart-4: oklch(0.405 0.096 330.985);
  --chart-5: oklch(0.367 0.076 356.241);
}