Jackfruit for shadcn/ui

Jackfruit is a shadcn/ui theme built around a light violet primary color (#e6ddf8) with light purple accents (#f3ddf8). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the light violet primary (#e6ddf8) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#fcfbfewhite
#07050ablack
Foreground
#06020dblack
#ffffffwhite
Card
#f9f8fcghostwhite
#09070dblack
Card foreground
#040109black
#ffffffwhite
Popover
#fcfbfewhite
#07050ablack
Popover foreground
#06020dblack
#ffffffwhite
Primary
#e6ddf8lavender
#e6ddf8lavender
Primary foreground
#401d87indigo
#401d87indigo
Secondary
#dde2f8lavender
#dde2f8lavender
Secondary foreground
#1d2e87midnightblue
#1d2e87midnightblue
Muted
#dfdfe2gainsboro
#1d1e20black
Muted foreground
#4b4f62darkslategray
#9da1b4darkgray
Accent
#f3ddf8lavender
#f3ddf8lavender
Accent foreground
#751d87purple
#751d87purple
Destructive
#d25004chocolate
#e65705orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6ddf8lavender
#e6ddf8lavender

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.55:1AAA
Primary button9.23:1AAA
Secondary button9.08:1AAA
Muted text6.10:1AA
Accent7.25:1AAA
Destructive4.30:1AA Large
Dark mode
Text on background20.27:1AAA
Text on card20.03:1AAA
Primary button9.23:1AAA
Secondary button9.08:1AAA
Muted text6.52:1AA
Accent7.25:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 301.441);
  --foreground: oklch(0.107 0.034 301.794);
  --muted: oklch(0.905 0.003 277.207);
  --muted-foreground: oklch(0.432 0.031 276.143);
  --popover: oklch(0.99 0.003 301.441);
  --popover-foreground: oklch(0.107 0.034 301.794);
  --card: oklch(0.98 0.006 301.388);
  --card-foreground: oklch(0.093 0.03 302.305);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.914 0.037 300.842);
  --primary-foreground: oklch(0.352 0.162 290.723);
  --secondary: oklch(0.915 0.03 276.779);
  --secondary-foreground: oklch(0.351 0.148 268.507);
  --accent: oklch(0.924 0.043 320.602);
  --accent-foreground: oklch(0.422 0.175 320.232);
  --destructive: oklch(0.597 0.178 42.096);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.037 300.842);
  --chart-1: oklch(0.914 0.037 300.842);
  --chart-2: oklch(0.915 0.03 276.779);
  --chart-3: oklch(0.924 0.043 320.602);
  --chart-4: oklch(0.947 0.019 276.979);
  --chart-5: oklch(0.912 0.039 300.811);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.013 301.762);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.234 0.005 276.961);
  --muted-foreground: oklch(0.711 0.028 276.694);
  --popover: oklch(0.123 0.013 301.762);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.015 300.955);
  --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.914 0.037 300.842);
  --primary-foreground: oklch(0.352 0.162 290.723);
  --secondary: oklch(0.915 0.03 276.779);
  --secondary-foreground: oklch(0.351 0.148 268.507);
  --accent: oklch(0.924 0.043 320.602);
  --accent-foreground: oklch(0.422 0.175 320.232);
  --destructive: oklch(0.639 0.192 41.881);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.037 300.842);
  --chart-1: oklch(0.914 0.037 300.842);
  --chart-2: oklch(0.915 0.03 276.779);
  --chart-3: oklch(0.924 0.043 320.602);
  --chart-4: oklch(0.947 0.019 276.979);
  --chart-5: oklch(0.912 0.039 300.811);
}