Fruitful for shadcn/ui

Fruitful is a shadcn/ui theme built around a purple primary color (#c671d0) with teal accents (#71d0c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c671d0) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#080109black
#f8f6f9whitesmoke
Card
#ffffffwhite
#030203black
Card foreground
#080109black
#f8f6f9whitesmoke
Popover
#ffffffwhite
#030203black
Popover foreground
#080109black
#f8f6f9whitesmoke
Primary
#c671d0orchid
#c671d0orchid
Primary foreground
#0b040bblack
#0b040bblack
Secondary
#d0c671darkkhaki
#d0c671darkkhaki
Secondary foreground
#0b0b04black
#0b0b04black
Muted
#ebeae5linen
#1a1914black
Muted foreground
#454545darkslategray
#bababasilver
Accent
#71d0c6mediumaquamarine
#71d0c6mediumaquamarine
Accent foreground
#040b0bblack
#040b0bblack
Destructive
#ac2c0cfirebrick
#f15c37tomato
Destructive foreground
#feefecseashell
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c671d0orchid
#c671d0orchid

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button6.46:1AA
Secondary button11.30:1AAA
Muted text7.98:1AAA
Accent10.90:1AAA
Destructive6.03:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button6.46:1AA
Secondary button11.30:1AAA
Muted text9.04:1AAA
Accent10.90:1AAA
Destructive6.32: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.104 0.035 325.062);
  --muted: oklch(0.937 0.007 101.408);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.104 0.035 325.062);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.104 0.035 325.062);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.678 0.161 323.425);
  --primary-foreground: oklch(0.124 0.025 324.03);
  --secondary: oklch(0.817 0.107 102.891);
  --secondary-foreground: oklch(0.146 0.017 103.921);
  --accent: oklch(0.796 0.091 187.122);
  --accent-foreground: oklch(0.142 0.014 189.035);
  --destructive: oklch(0.492 0.169 33.991);
  --destructive-foreground: oklch(0.964 0.016 34.298);
  --ring: oklch(0.678 0.161 323.425);
  --chart-1: oklch(0.678 0.161 323.425);
  --chart-2: oklch(0.817 0.107 102.891);
  --chart-3: oklch(0.796 0.091 187.122);
  --chart-4: oklch(0.832 0.1 102.808);
  --chart-5: oklch(0.678 0.17 323.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.012 323.741);
  --foreground: oklch(0.976 0.004 322.643);
  --muted: oklch(0.214 0.01 102.001);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.088 0.012 323.741);
  --popover-foreground: oklch(0.976 0.004 322.643);
  --card: oklch(0.088 0.012 323.741);
  --card-foreground: oklch(0.976 0.004 322.643);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.678 0.161 323.425);
  --primary-foreground: oklch(0.124 0.025 324.03);
  --secondary: oklch(0.817 0.107 102.891);
  --secondary-foreground: oklch(0.146 0.017 103.921);
  --accent: oklch(0.796 0.091 187.122);
  --accent-foreground: oklch(0.142 0.014 189.035);
  --destructive: oklch(0.665 0.191 35.083);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.678 0.161 323.425);
  --chart-1: oklch(0.678 0.161 323.425);
  --chart-2: oklch(0.817 0.107 102.891);
  --chart-3: oklch(0.796 0.091 187.122);
  --chart-4: oklch(0.832 0.1 102.808);
  --chart-5: oklch(0.678 0.17 323.455);
}