Delectable for shadcn/ui

Delectable is a shadcn/ui theme built around a light red primary color (#f0e2e0) with light cyan accents (#e0eef0). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light red primary (#f0e2e0) on a red-tinted background (#0f0706).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0f0706black
Foreground
#080302black
#faf5f4whitesmoke
Card
#fcf8f7snow
#120907black
Card foreground
#040101black
#fcf8f8snow
Popover
#fefcfbsnow
#0f0706black
Popover foreground
#080302black
#faf5f4whitesmoke
Primary
#f0e2e0mistyrose
#f0e2e0mistyrose
Primary foreground
#6a3b34saddlebrown
#6a3b34saddlebrown
Secondary
#e0eef0lavender
#e0eef0lavender
Secondary foreground
#132326black
#132326black
Muted
#ecf2f3whitesmoke
#0c1213black
Muted foreground
#53595adimgray
#a5abacdarkgray
Accent
#e0eef0lavender
#e0eef0lavender
Accent foreground
#132326black
#132326black
Destructive
#641902maroon
#e63905orangered
Destructive foreground
#fdb29bburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0e2e0mistyrose
#f0e2e0mistyrose

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.74:1AAA
Primary button7.29:1AAA
Secondary button13.60:1AAA
Muted text6.32:1AA
Accent13.60:1AAA
Destructive7.15:1AAA
Dark mode
Text on background18.46:1AAA
Text on card18.66:1AAA
Primary button7.29:1AAA
Secondary button13.60:1AAA
Muted text8.11:1AAA
Accent13.60:1AAA
Destructive4.23: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.991 0.002 27.945);
  --foreground: oklch(0.108 0.015 33.862);
  --muted: oklch(0.958 0.007 207.903);
  --muted-foreground: oklch(0.46 0.008 207.87);
  --popover: oklch(0.991 0.002 27.945);
  --popover-foreground: oklch(0.108 0.015 33.862);
  --card: oklch(0.983 0.005 27.957);
  --card-foreground: oklch(0.086 0.012 33.862);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.924 0.015 28.022);
  --primary-foreground: oklch(0.409 0.067 29.596);
  --secondary: oklch(0.939 0.015 207.874);
  --secondary-foreground: oklch(0.243 0.023 208.106);
  --accent: oklch(0.939 0.015 207.874);
  --accent-foreground: oklch(0.243 0.023 208.106);
  --destructive: oklch(0.336 0.112 36.301);
  --destructive-foreground: oklch(0.829 0.094 37.636);
  --ring: oklch(0.924 0.015 28.022);
  --chart-1: oklch(0.924 0.015 28.022);
  --chart-2: oklch(0.939 0.015 207.874);
  --chart-3: oklch(0.939 0.015 207.874);
  --chart-4: oklch(0.959 0.01 207.892);
  --chart-5: oklch(0.923 0.016 28.031);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 31.268);
  --foreground: oklch(0.974 0.006 27.962);
  --muted: oklch(0.176 0.01 207.859);
  --muted-foreground: oklch(0.736 0.007 207.894);
  --popover: oklch(0.139 0.015 31.268);
  --popover-foreground: oklch(0.974 0.006 27.962);
  --card: oklch(0.152 0.018 30.331);
  --card-foreground: oklch(0.983 0.004 27.952);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.924 0.015 28.022);
  --primary-foreground: oklch(0.409 0.067 29.596);
  --secondary: oklch(0.939 0.015 207.874);
  --secondary-foreground: oklch(0.243 0.023 208.106);
  --accent: oklch(0.939 0.015 207.874);
  --accent-foreground: oklch(0.243 0.023 208.106);
  --destructive: oklch(0.607 0.215 34.298);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.015 28.022);
  --chart-1: oklch(0.924 0.015 28.022);
  --chart-2: oklch(0.939 0.015 207.874);
  --chart-3: oklch(0.939 0.015 207.874);
  --chart-4: oklch(0.959 0.01 207.892);
  --chart-5: oklch(0.923 0.016 28.031);
}