Jackfruit for shadcn/ui

Jackfruit is a shadcn/ui theme built around a light violet primary color (#bdaeea) with neutral gray accents (#e5e4e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#bdaeea) on a violet-tinted background (#08060f).

Color palette

TokenLightDark
Background
#ffffffwhite
#08060fblack
Foreground
#090514black
#fcfcfdwhite
Card
#ffffffwhite
#08060fblack
Card foreground
#090514black
#fcfcfdwhite
Popover
#ffffffwhite
#08060fblack
Popover foreground
#090514black
#fcfcfdwhite
Primary
#bdaeealightsteelblue
#bdaeealightsteelblue
Primary foreground
#241551midnightblue
#241551midnightblue
Secondary
#e5e4e7gainsboro
#252131darkslategray
Secondary foreground
#4a4752darkslategray
#bcb6cdsilver
Muted
#e7e4f1lavender
#110e1bblack
Muted foreground
#64626adimgray
#97959ddarkgray
Accent
#e5e4e7gainsboro
#252131darkslategray
Accent foreground
#4a4752darkslategray
#bcb6cdsilver
Destructive
#7c1a04maroon
#ed3207orangered
Destructive foreground
#fdc2b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bdaeealightsteelblue
#bdaeealightsteelblue

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button7.99:1AAA
Secondary button7.14:1AAA
Muted text4.80:1AA
Accent7.14:1AAA
Destructive6.78:1AA
Dark mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button7.99:1AAA
Secondary button7.99:1AAA
Muted text6.44:1AA
Accent7.99:1AAA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.034 294.72);
  --muted: oklch(0.925 0.018 297.482);
  --muted-foreground: oklch(0.501 0.013 297.362);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.034 294.72);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.134 0.034 294.72);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.784 0.086 295.828);
  --primary-foreground: oklch(0.258 0.104 288.382);
  --secondary: oklch(0.92 0.005 297.73);
  --secondary-foreground: oklch(0.405 0.018 297.03);
  --accent: oklch(0.92 0.005 297.73);
  --accent-foreground: oklch(0.405 0.018 297.03);
  --destructive: oklch(0.384 0.136 33.455);
  --destructive-foreground: oklch(0.863 0.07 32.916);
  --ring: oklch(0.784 0.086 295.828);
  --chart-1: oklch(0.784 0.086 295.828);
  --chart-2: oklch(0.92 0.005 297.73);
  --chart-3: oklch(0.92 0.005 297.73);
  --chart-4: oklch(0.944 0.003 297.761);
  --chart-5: oklch(0.781 0.09 295.712);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.022 296.622);
  --foreground: oklch(0.992 0.001 297.804);
  --muted: oklch(0.174 0.027 294.935);
  --muted-foreground: oklch(0.674 0.012 297.506);
  --popover: oklch(0.129 0.022 296.622);
  --popover-foreground: oklch(0.992 0.001 297.804);
  --card: oklch(0.129 0.022 296.622);
  --card-foreground: oklch(0.992 0.001 297.804);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.784 0.086 295.828);
  --primary-foreground: oklch(0.258 0.104 288.382);
  --secondary: oklch(0.259 0.029 295.772);
  --secondary-foreground: oklch(0.789 0.033 297.075);
  --accent: oklch(0.259 0.029 295.772);
  --accent-foreground: oklch(0.789 0.033 297.075);
  --destructive: oklch(0.614 0.226 32.533);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.784 0.086 295.828);
  --chart-1: oklch(0.784 0.086 295.828);
  --chart-2: oklch(0.259 0.029 295.772);
  --chart-3: oklch(0.259 0.029 295.772);
  --chart-4: oklch(0.287 0.034 295.673);
  --chart-5: oklch(0.781 0.09 295.712);
}