Delectable for shadcn/ui

Delectable is a shadcn/ui theme built around a deep indigo primary color (#120e20) with muted light indigo accents (#bcb8cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#120e20) on a neutral background (#030208).

Color palette

TokenLightDark
Background
#ffffffwhite
#030208black
Foreground
#030208black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#05030cblack
Card foreground
#020104black
#fcfcfdwhite
Popover
#ffffffwhite
#030208black
Popover foreground
#030208black
#f9f9fbghostwhite
Primary
#120e20black
#120e20black
Primary foreground
#9e90d0mediumpurple
#9e90d0mediumpurple
Secondary
#d5d3d9lightgrey
#161519black
Secondary foreground
#3b3941darkslategray
#aba8b8darkgray
Muted
#e7e5f0lavender
#110f1ablack
Muted foreground
#494559darkslategray
#aaa6badarkgray
Accent
#bcb8ccsilver
#242131darkslategray
Accent foreground
#25222fdarkslategray
#bbb6cesilver
Destructive
#b14506saddlebrown
#f77326tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#120e20black
#120e20black

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.37:1AAA
Primary button6.63:1AA
Secondary button7.67:1AAA
Muted text7.40:1AAA
Accent8.06:1AAA
Destructive5.63:1AA
Dark mode
Text on background19.63:1AAA
Text on card19.96:1AAA
Primary button6.63:1AA
Secondary button7.83:1AAA
Muted text8.02:1AAA
Accent8.02:1AAA
Destructive7.43:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.022 295.491);
  --muted: oklch(0.927 0.016 296.025);
  --muted-foreground: oklch(0.402 0.035 294.73);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.022 295.491);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.077 0.018 295.491);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.178 0.037 292.159);
  --primary-foreground: oklch(0.69 0.093 293.773);
  --secondary: oklch(0.871 0.008 296.165);
  --secondary-foreground: oklch(0.349 0.015 295.548);
  --accent: oklch(0.792 0.028 295.689);
  --accent-foreground: oklch(0.262 0.024 294.59);
  --destructive: oklch(0.53 0.154 43.001);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.178 0.037 292.159);
  --chart-1: oklch(0.178 0.037 292.159);
  --chart-2: oklch(0.871 0.008 296.165);
  --chart-3: oklch(0.792 0.028 295.689);
  --chart-4: oklch(0.895 0.006 296.201);
  --chart-5: oklch(0.177 0.04 291.751);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.022 295.513);
  --foreground: oklch(0.983 0.002 296.287);
  --muted: oklch(0.176 0.024 293.783);
  --muted-foreground: oklch(0.734 0.03 295.589);
  --popover: oklch(0.097 0.022 295.513);
  --popover-foreground: oklch(0.983 0.002 296.287);
  --card: oklch(0.111 0.025 295.328);
  --card-foreground: oklch(0.992 0.001 296.309);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.178 0.037 292.159);
  --primary-foreground: oklch(0.69 0.093 293.773);
  --secondary: oklch(0.197 0.009 295.473);
  --secondary-foreground: oklch(0.74 0.023 295.767);
  --accent: oklch(0.258 0.031 294.086);
  --accent-foreground: oklch(0.787 0.035 295.52);
  --destructive: oklch(0.703 0.182 45.907);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.178 0.037 292.159);
  --chart-1: oklch(0.178 0.037 292.159);
  --chart-2: oklch(0.197 0.009 295.473);
  --chart-3: oklch(0.258 0.031 294.086);
  --chart-4: oklch(0.229 0.012 295.377);
  --chart-5: oklch(0.177 0.04 291.751);
}