Leafy for shadcn/ui

Leafy is a shadcn/ui theme built around a vivid light red primary color (#fec5b9) with muted light red accents (#e1cfcb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fec5b9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fec5b9lightpink
#fec5b9lightpink
Primary foreground
#831a02maroon
#831a02maroon
Secondary
#ece5e4linen
#2f2523darkslategray
Secondary foreground
#5d4641darkolivegreen
#cabcb9silver
Muted
#e0d8d7gainsboro
#28211fblack
Muted foreground
#433e3ddarkslategray
#c2bdbcsilver
Accent
#e1cfcblightgrey
#412e2adarkslategray
Accent foreground
#4e332ddarkslategray
#d9c8c4lightgrey
Destructive
#c12a10firebrick
#ef5034tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fec5b9lightpink
#fec5b9lightpink

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.59:1AA
Secondary button7.00:1AAA
Muted text7.52:1AAA
Accent7.63:1AAA
Destructive5.79:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button6.59:1AA
Secondary button8.08:1AAA
Muted text8.51:1AAA
Accent7.86:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.889 0.009 32.662);
  --muted-foreground: oklch(0.368 0.007 32.674);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.872 0.067 32.892);
  --primary-foreground: oklch(0.397 0.143 33.342);
  --secondary: oklch(0.928 0.008 32.662);
  --secondary-foreground: oklch(0.418 0.033 32.906);
  --accent: oklch(0.869 0.021 32.681);
  --accent-foreground: oklch(0.35 0.041 33.15);
  --destructive: oklch(0.53 0.191 32.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.872 0.067 32.892);
  --chart-1: oklch(0.872 0.067 32.892);
  --chart-2: oklch(0.928 0.008 32.662);
  --chart-3: oklch(0.869 0.021 32.681);
  --chart-4: oklch(0.952 0.005 32.661);
  --chart-5: oklch(0.871 0.07 32.907);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 32.661);
  --muted: oklch(0.255 0.012 32.75);
  --muted-foreground: oklch(0.803 0.006 32.661);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 32.661);
  --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.872 0.067 32.892);
  --primary-foreground: oklch(0.397 0.143 33.342);
  --secondary: oklch(0.275 0.015 32.773);
  --secondary-foreground: oklch(0.807 0.017 32.675);
  --accent: oklch(0.323 0.028 32.951);
  --accent-foreground: oklch(0.846 0.019 32.679);
  --destructive: oklch(0.647 0.199 32.36);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.872 0.067 32.892);
  --chart-1: oklch(0.872 0.067 32.892);
  --chart-2: oklch(0.275 0.015 32.773);
  --chart-3: oklch(0.323 0.028 32.951);
  --chart-4: oklch(0.305 0.017 32.783);
  --chart-5: oklch(0.871 0.07 32.907);
}