Fruitful for shadcn/ui

Fruitful is a shadcn/ui theme built around a muted deep green primary color (#383a2c) with muted deep indigo accents (#2e2c3a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#383a2c) on a green-tinted background (#0a0b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0b04black
Foreground
#101103black
#fdfdfcwhite
Card
#ffffffwhite
#0a0b04black
Card foreground
#101103black
#fdfdfcwhite
Popover
#ffffffwhite
#0a0b04black
Popover foreground
#101103black
#fdfdfcwhite
Primary
#383a2cdarkslategray
#383a2cdarkslategray
Primary foreground
#d1d3c5lightgrey
#d1d3c5lightgrey
Secondary
#2e2c3adarkslategray
#2e2c3adarkslategray
Secondary foreground
#c7c5d3lightgrey
#c7c5d3lightgrey
Muted
#d9d7eagainsboro
#171528black
Muted foreground
#3e3c4edarkslategray
#b3b1c3silver
Accent
#2e2c3adarkslategray
#2e2c3adarkslategray
Accent foreground
#c7c5d3lightgrey
#c7c5d3lightgrey
Destructive
#861e03darkred
#fa5329tomato
Destructive foreground
#fdcbbepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#383a2cdarkslategray
#383a2cdarkslategray

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button7.66:1AAA
Secondary button8.01:1AAA
Muted text7.55:1AAA
Accent8.01:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button7.66:1AAA
Secondary button8.01:1AAA
Muted text8.52:1AAA
Accent8.01:1AAA
Destructive6.31:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.172 0.029 113.537);
  --muted: oklch(0.885 0.027 290.438);
  --muted-foreground: oklch(0.365 0.031 289.368);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.172 0.029 113.537);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.172 0.029 113.537);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.341 0.022 112.221);
  --primary-foreground: oklch(0.861 0.018 111.405);
  --secondary: oklch(0.302 0.024 289.472);
  --secondary-foreground: oklch(0.83 0.018 290.593);
  --accent: oklch(0.302 0.024 289.472);
  --accent-foreground: oklch(0.83 0.018 290.593);
  --destructive: oklch(0.408 0.144 33.937);
  --destructive-foreground: oklch(0.883 0.06 34.388);
  --ring: oklch(0.341 0.022 112.221);
  --chart-1: oklch(0.341 0.022 112.221);
  --chart-2: oklch(0.302 0.024 289.472);
  --chart-3: oklch(0.302 0.024 289.472);
  --chart-4: oklch(0.329 0.027 289.421);
  --chart-5: oklch(0.346 0.027 112.461);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.016 112.262);
  --foreground: oklch(0.993 0.001 111.026);
  --muted: oklch(0.208 0.038 287.154);
  --muted-foreground: oklch(0.768 0.025 290.384);
  --popover: oklch(0.146 0.016 112.262);
  --popover-foreground: oklch(0.993 0.001 111.026);
  --card: oklch(0.146 0.016 112.262);
  --card-foreground: oklch(0.993 0.001 111.026);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.341 0.022 112.221);
  --primary-foreground: oklch(0.861 0.018 111.405);
  --secondary: oklch(0.302 0.024 289.472);
  --secondary-foreground: oklch(0.83 0.018 290.593);
  --accent: oklch(0.302 0.024 289.472);
  --accent-foreground: oklch(0.83 0.018 290.593);
  --destructive: oklch(0.666 0.21 34.743);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.341 0.022 112.221);
  --chart-1: oklch(0.341 0.022 112.221);
  --chart-2: oklch(0.302 0.024 289.472);
  --chart-3: oklch(0.302 0.024 289.472);
  --chart-4: oklch(0.329 0.027 289.421);
  --chart-5: oklch(0.346 0.027 112.461);
}