Grove for shadcn/ui

Grove is a shadcn/ui theme built around a vivid light purple primary color (#f8a5f1) with vivid light cyan accents (#a5f1f8). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid light purple primary (#f8a5f1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#080208black
#ffffffwhite
Card
#fcf8fcsnow
#030303black
Card foreground
#040104black
#ffffffwhite
Popover
#fcf8fcsnow
#030303black
Popover foreground
#040104black
#ffffffwhite
Primary
#f8a5f1plum
#f8a5f1plum
Primary foreground
#64075cindigo
#64075cindigo
Secondary
#f1f8a5palegoldenrod
#f1f8a5palegoldenrod
Secondary foreground
#040500black
#040500black
Muted
#f5f6eewhitesmoke
#101109black
Muted foreground
#5b5d46darkolivegreen
#b7b9a2darkgray
Accent
#a5f1f8paleturquoise
#a5f1f8paleturquoise
Accent foreground
#075c64teal
#075c64teal
Destructive
#671709maroon
#eb3919orangered
Destructive foreground
#f8b6ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8a5f1plum
#f8a5f1plum

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card19.69:1AAA
Primary button6.74:1AA
Secondary button18.25:1AAA
Muted text6.23:1AA
Accent6.08:1AA
Destructive7.18:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.74:1AA
Secondary button18.25:1AAA
Muted text9.49:1AAA
Accent6.08:1AA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 328.104);
  --foreground: oklch(0.107 0.027 329.522);
  --muted: oklch(0.971 0.01 110.441);
  --muted-foreground: oklch(0.47 0.035 111.621);
  --popover: oklch(0.983 0.008 328.145);
  --popover-foreground: oklch(0.085 0.022 329.522);
  --card: oklch(0.983 0.008 328.145);
  --card-foreground: oklch(0.085 0.022 329.522);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.827 0.137 329.671);
  --primary-foreground: oklch(0.351 0.151 332.383);
  --secondary: oklch(0.956 0.105 112.255);
  --secondary-foreground: oklch(0.109 0.021 112.297);
  --accent: oklch(0.912 0.075 203.121);
  --accent-foreground: oklch(0.434 0.072 205.024);
  --destructive: oklch(0.341 0.116 32.341);
  --destructive-foreground: oklch(0.834 0.079 30.099);
  --ring: oklch(0.827 0.137 329.671);
  --chart-1: oklch(0.827 0.137 329.671);
  --chart-2: oklch(0.956 0.105 112.255);
  --chart-3: oklch(0.912 0.075 203.121);
  --chart-4: oklch(0.962 0.089 111.947);
  --chart-5: oklch(0.827 0.142 329.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.172 0.015 111.835);
  --muted-foreground: oklch(0.777 0.032 110.998);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.827 0.137 329.671);
  --primary-foreground: oklch(0.351 0.151 332.383);
  --secondary: oklch(0.956 0.105 112.255);
  --secondary-foreground: oklch(0.109 0.021 112.297);
  --accent: oklch(0.912 0.075 203.121);
  --accent-foreground: oklch(0.434 0.072 205.024);
  --destructive: oklch(0.616 0.218 32.159);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.827 0.137 329.671);
  --chart-1: oklch(0.827 0.137 329.671);
  --chart-2: oklch(0.956 0.105 112.255);
  --chart-3: oklch(0.912 0.075 203.121);
  --chart-4: oklch(0.962 0.089 111.947);
  --chart-5: oklch(0.827 0.142 329.722);
}