Dragonfruit for shadcn/ui

Dragonfruit is a shadcn/ui theme built around a neutral gray primary color (#434644) with neutral gray accents (#464346). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#434644) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#000000black
Foreground
#030c03black
#fbfdfcwhite
Card
#f8fcf8mintcream
#000000black
Card foreground
#030c03black
#fbfdfcwhite
Popover
#f8fcf8mintcream
#000000black
Popover foreground
#030c03black
#fbfdfcwhite
Primary
#434644darkslategray
#434644darkslategray
Primary foreground
#dddfddgainsboro
#dddfddgainsboro
Secondary
#464346darkslategray
#464346darkslategray
Secondary foreground
#dfdddegainsboro
#dfdddegainsboro
Muted
#f1dff1lavender
#200e20black
Muted foreground
#4d4c4ddarkslategray
#b3b2b3darkgray
Accent
#464346darkslategray
#464346darkslategray
Accent foreground
#dfdddegainsboro
#dfdddegainsboro
Destructive
#781508maroon
#f24731tomato
Destructive foreground
#fabfb7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#434644darkslategray
#434644darkslategray

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button7.10:1AAA
Secondary button7.17:1AAA
Muted text6.74:1AA
Accent7.17:1AAA
Destructive6.92:1AA
Dark mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button7.10:1AAA
Secondary button7.17:1AAA
Muted text8.68:1AAA
Accent7.17:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.008 145.988);
  --foreground: oklch(0.141 0.03 144.301);
  --muted: oklch(0.923 0.03 326.316);
  --muted-foreground: oklch(0.418 0.003 326.115);
  --popover: oklch(0.987 0.008 145.988);
  --popover-foreground: oklch(0.141 0.03 144.301);
  --card: oklch(0.987 0.008 145.988);
  --card-foreground: oklch(0.141 0.03 144.301);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.391 0.006 145.933);
  --primary-foreground: oklch(0.901 0.002 146.033);
  --secondary: oklch(0.388 0.006 326.174);
  --secondary-foreground: oklch(0.9 0.002 326.074);
  --accent: oklch(0.388 0.006 326.174);
  --accent-foreground: oklch(0.9 0.002 326.074);
  --destructive: oklch(0.372 0.135 31.074);
  --destructive-foreground: oklch(0.856 0.07 27.198);
  --ring: oklch(0.391 0.006 145.933);
  --chart-1: oklch(0.391 0.006 145.933);
  --chart-2: oklch(0.388 0.006 326.174);
  --chart-3: oklch(0.388 0.006 326.174);
  --chart-4: oklch(0.417 0.006 326.176);
  --chart-5: oklch(0.394 0.014 145.752);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.003 146.027);
  --muted: oklch(0.199 0.043 327.643);
  --muted-foreground: oklch(0.764 0.003 326.082);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.003 146.027);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.003 146.027);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.391 0.006 145.933);
  --primary-foreground: oklch(0.901 0.002 146.033);
  --secondary: oklch(0.388 0.006 326.174);
  --secondary-foreground: oklch(0.9 0.002 326.074);
  --accent: oklch(0.388 0.006 326.174);
  --accent-foreground: oklch(0.9 0.002 326.074);
  --destructive: oklch(0.643 0.21 30.876);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.006 145.933);
  --chart-1: oklch(0.391 0.006 145.933);
  --chart-2: oklch(0.388 0.006 326.174);
  --chart-3: oklch(0.388 0.006 326.174);
  --chart-4: oklch(0.417 0.006 326.176);
  --chart-5: oklch(0.394 0.014 145.752);
}