Fruitful for shadcn/ui

Fruitful is a shadcn/ui theme built around a light green primary color (#ccf5bc) with light violet accents (#e5bcf5). The light mode uses a neutral background (#fcfefb). Dark mode keeps the light green primary (#ccf5bc) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fcfefbwhite
#020401black
Foreground
#000000black
#f9fcf8mintcream
Card
#f9fcf8mintcream
#040703black
Card foreground
#000000black
#fcfdfbsnow
Popover
#fcfefbwhite
#020401black
Popover foreground
#000000black
#f9fcf8mintcream
Primary
#ccf5bcpalegoldenrod
#ccf5bcpalegoldenrod
Primary foreground
#091603black
#091603black
Secondary
#e5bcf5thistle
#e5bcf5thistle
Secondary foreground
#54116findigo
#54116findigo
Muted
#e5dde9gainsboro
#1e1622black
Muted foreground
#574d5bdimgray
#aea4b2darkgray
Accent
#e5bcf5thistle
#e5bcf5thistle
Accent foreground
#54116findigo
#54116findigo
Destructive
#860909darkred
#d70f0fred
Destructive foreground
#fbc6c6pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccf5bcpalegoldenrod
#ccf5bcpalegoldenrod

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.30:1AAA
Primary button15.41:1AAA
Secondary button7.63:1AAA
Muted text6.07:1AA
Accent7.63:1AAA
Destructive6.82:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.82:1AAA
Primary button15.41:1AAA
Secondary button7.63:1AAA
Muted text7.30:1AAA
Accent7.63:1AAA
Destructive5.31:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 136.619);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.908 0.017 316.553);
  --muted-foreground: oklch(0.436 0.025 316.442);
  --popover: oklch(0.994 0.003 136.619);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 136.628);
  --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.927 0.086 136.918);
  --primary-foreground: oklch(0.182 0.043 136.154);
  --secondary: oklch(0.85 0.088 316.301);
  --secondary-foreground: oklch(0.345 0.153 313.652);
  --accent: oklch(0.85 0.088 316.301);
  --accent-foreground: oklch(0.345 0.153 313.652);
  --destructive: oklch(0.393 0.155 28.32);
  --destructive-foreground: oklch(0.873 0.061 18.388);
  --ring: oklch(0.927 0.086 136.918);
  --chart-1: oklch(0.927 0.086 136.918);
  --chart-2: oklch(0.85 0.088 316.301);
  --chart-3: oklch(0.85 0.088 316.301);
  --chart-4: oklch(0.88 0.07 316.374);
  --chart-5: oklch(0.929 0.089 136.931);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 135.35);
  --foreground: oklch(0.987 0.006 136.627);
  --muted: oklch(0.217 0.025 316.271);
  --muted-foreground: oklch(0.731 0.022 316.521);
  --popover: oklch(0.097 0.013 135.35);
  --popover-foreground: oklch(0.987 0.006 136.627);
  --card: oklch(0.123 0.016 135.35);
  --card-foreground: oklch(0.994 0.003 136.618);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.927 0.086 136.918);
  --primary-foreground: oklch(0.182 0.043 136.154);
  --secondary: oklch(0.85 0.088 316.301);
  --secondary-foreground: oklch(0.345 0.153 313.652);
  --accent: oklch(0.85 0.088 316.301);
  --accent-foreground: oklch(0.345 0.153 313.652);
  --destructive: oklch(0.555 0.222 28.68);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.927 0.086 136.918);
  --chart-1: oklch(0.927 0.086 136.918);
  --chart-2: oklch(0.85 0.088 316.301);
  --chart-3: oklch(0.85 0.088 316.301);
  --chart-4: oklch(0.88 0.07 316.374);
  --chart-5: oklch(0.929 0.089 136.931);
}