Guava for shadcn/ui

Guava is a shadcn/ui theme built around a vivid deep pink primary color (#6d0925) with vivid deep red accents (#6d1e09). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#6d0925) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0e0205black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#0e0205black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#0e0205black
#fdfcfcsnow
Primary
#6d0925maroon
#6d0925maroon
Primary foreground
#f8afc4lightpink
#f8afc4lightpink
Secondary
#6d0957purple
#6d0957purple
Secondary foreground
#f8afe9plum
#f8afe9plum
Muted
#e2d0degainsboro
#2f1d2bdarkslategray
Muted foreground
#6a6268dimgray
#9d959bdarkgray
Accent
#6d1e09maroon
#6d1e09maroon
Accent foreground
#f8bfaflightpink
#f8bfaflightpink
Destructive
#700e0amaroon
#d71a14firebrick
Destructive foreground
#f8b7b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d0925maroon
#6d0925maroon

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button6.97:1AA
Secondary button6.76:1AA
Muted text4.00:1AA Large
Accent7.10:1AAA
Destructive7.07:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button6.97:1AA
Secondary button6.76:1AA
Muted text5.39:1AA
Accent7.10:1AAA
Destructive5.19:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.116 0.032 357.964);
  --muted: oklch(0.875 0.028 333.104);
  --muted-foreground: oklch(0.506 0.014 333.047);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.116 0.032 357.964);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.116 0.032 357.964);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.345 0.13 13.193);
  --primary-foreground: oklch(0.829 0.09 0.682);
  --secondary: oklch(0.365 0.151 339.683);
  --secondary-foreground: oklch(0.841 0.113 334.565);
  --accent: oklch(0.36 0.115 35.399);
  --accent-foreground: oklch(0.852 0.071 36.004);
  --destructive: oklch(0.351 0.132 28.537);
  --destructive-foreground: oklch(0.838 0.077 21.063);
  --ring: oklch(0.345 0.13 13.193);
  --chart-1: oklch(0.345 0.13 13.193);
  --chart-2: oklch(0.365 0.151 339.683);
  --chart-3: oklch(0.36 0.115 35.399);
  --chart-4: oklch(0.397 0.165 339.819);
  --chart-5: oklch(0.348 0.133 13.822);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 357.756);
  --muted: oklch(0.261 0.038 334.706);
  --muted-foreground: oklch(0.679 0.013 332.916);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 357.756);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 357.756);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.345 0.13 13.193);
  --primary-foreground: oklch(0.829 0.09 0.682);
  --secondary: oklch(0.365 0.151 339.683);
  --secondary-foreground: oklch(0.841 0.113 334.565);
  --accent: oklch(0.36 0.115 35.399);
  --accent-foreground: oklch(0.852 0.071 36.004);
  --destructive: oklch(0.56 0.218 28.984);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.345 0.13 13.193);
  --chart-1: oklch(0.345 0.13 13.193);
  --chart-2: oklch(0.365 0.151 339.683);
  --chart-3: oklch(0.36 0.115 35.399);
  --chart-4: oklch(0.397 0.165 339.819);
  --chart-5: oklch(0.348 0.133 13.822);
}