Delectable for shadcn/ui

Delectable is a shadcn/ui theme built around a deep purple primary color (#582349) with neutral gray accents (#dbd6d6). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the deep purple primary (#582349) on a purple-tinted background (#0f050c).

Color palette

TokenLightDark
Background
#fbf8fbsnow
#0f050cblack
Foreground
#040103black
#ffffffwhite
Card
#fbf8fbsnow
#0f050cblack
Card foreground
#040103black
#ffffffwhite
Popover
#fbf8fbsnow
#0f050cblack
Popover foreground
#040103black
#ffffffwhite
Primary
#582349darkslategray
#582349darkslategray
Primary foreground
#e8c5dethistle
#e8c5dethistle
Secondary
#ebebeblinen
#201d1fblack
Secondary foreground
#525252darkslategray
#bbb4b9silver
Muted
#f3e7e7linen
#180c15black
Muted foreground
#4e4646darkslategray
#b9b1b7silver
Accent
#dbd6d6gainsboro
#332930darkslategray
Accent foreground
#443c3cdarkslategray
#cdc1casilver
Destructive
#8d3501saddlebrown
#e35502orangered
Destructive foreground
#fed8c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#582349darkslategray
#582349darkslategray

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button7.72:1AAA
Secondary button6.53:1AA
Muted text7.60:1AAA
Accent7.48:1AAA
Destructive5.98:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button7.72:1AAA
Secondary button8.21:1AAA
Muted text9.12:1AAA
Accent8.05:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 335.274);
  --foreground: oklch(0.083 0.023 335.947);
  --muted: oklch(0.938 0.014 17.399);
  --muted-foreground: oklch(0.402 0.01 17.576);
  --popover: oklch(0.983 0.004 335.274);
  --popover-foreground: oklch(0.083 0.023 335.947);
  --card: oklch(0.983 0.004 335.274);
  --card-foreground: oklch(0.083 0.023 335.947);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.346 0.093 339.737);
  --primary-foreground: oklch(0.86 0.052 336.244);
  --secondary: oklch(0.939 0 180);
  --secondary-foreground: oklch(0.437 0 180);
  --accent: oklch(0.881 0.005 17.253);
  --accent-foreground: oklch(0.364 0.011 17.653);
  --destructive: oklch(0.448 0.132 43.078);
  --destructive-foreground: oklch(0.91 0.052 51.854);
  --ring: oklch(0.346 0.093 339.737);
  --chart-1: oklch(0.346 0.093 339.737);
  --chart-2: oklch(0.939 0 180);
  --chart-3: oklch(0.881 0.005 17.253);
  --chart-4: oklch(0.962 0 180);
  --chart-5: oklch(0.347 0.098 340.031);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.026 337.205);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.175 0.027 337.819);
  --muted-foreground: oklch(0.769 0.011 335.453);
  --popover: oklch(0.138 0.026 337.205);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.026 337.205);
  --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.346 0.093 339.737);
  --primary-foreground: oklch(0.86 0.052 336.244);
  --secondary: oklch(0.235 0.006 335.663);
  --secondary-foreground: oklch(0.777 0.011 335.44);
  --accent: oklch(0.294 0.019 336.344);
  --accent-foreground: oklch(0.823 0.018 335.591);
  --destructive: oklch(0.631 0.191 41.587);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.346 0.093 339.737);
  --chart-1: oklch(0.346 0.093 339.737);
  --chart-2: oklch(0.235 0.006 335.663);
  --chart-3: oklch(0.294 0.019 336.344);
  --chart-4: oklch(0.267 0.008 335.695);
  --chart-5: oklch(0.347 0.098 340.031);
}