Delightful for shadcn/ui

Delightful is a shadcn/ui theme built around a muted deep teal primary color (#324849) with neutral gray accents (#d9dddd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#324849) on a teal-tinted background (#050f10).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f10black
Foreground
#030c0cblack
#f6f9f9whitesmoke
Card
#fcfcfcsnow
#061314black
Card foreground
#020808black
#f9fbfbghostwhite
Popover
#fcfcfcsnow
#061314black
Popover foreground
#020808black
#f9fbfbghostwhite
Primary
#324849darkslategray
#324849darkslategray
Primary foreground
#cededegainsboro
#cededegainsboro
Secondary
#d9ddddgainsboro
#2e3333darkslategray
Secondary foreground
#3e4646darkslategray
#c6cdcdlightgrey
Muted
#eef2f2whitesmoke
#0d1111black
Muted foreground
#585f5fdimgray
#a0a7a7darkgray
Accent
#d9ddddgainsboro
#2e3333darkslategray
Accent foreground
#3e4646darkslategray
#c6cdcdlightgrey
Destructive
#dc0909red
#f62828crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#324849darkslategray
#324849darkslategray

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.74:1AAA
Primary button6.97:1AA
Secondary button7.09:1AAA
Muted text5.77:1AA
Accent7.09:1AAA
Destructive5.12:1AA
Dark mode
Text on background18.29:1AAA
Text on card18.17:1AAA
Primary button6.97:1AA
Secondary button7.93:1AAA
Muted text7.74:1AAA
Accent7.93:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.017 196.595);
  --muted: oklch(0.957 0.004 198.292);
  --muted-foreground: oklch(0.48 0.009 198.085);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.126 0.015 196.484);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.015 196.484);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.385 0.028 197.364);
  --primary-foreground: oklch(0.888 0.016 198.09);
  --secondary: oklch(0.895 0.005 198.286);
  --secondary-foreground: oklch(0.388 0.01 197.977);
  --accent: oklch(0.895 0.005 198.286);
  --accent-foreground: oklch(0.388 0.01 197.977);
  --destructive: oklch(0.565 0.228 28.921);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.385 0.028 197.364);
  --chart-1: oklch(0.385 0.028 197.364);
  --chart-2: oklch(0.895 0.005 198.286);
  --chart-3: oklch(0.895 0.005 198.286);
  --chart-4: oklch(0.918 0.004 198.304);
  --chart-5: oklch(0.389 0.032 197.257);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.017 196.865);
  --foreground: oklch(0.979 0.003 198.311);
  --muted: oklch(0.175 0.007 197.816);
  --muted-foreground: oklch(0.722 0.008 198.193);
  --popover: oklch(0.176 0.019 196.901);
  --popover-foreground: oklch(0.986 0.002 198.328);
  --card: oklch(0.176 0.019 196.901);
  --card-foreground: oklch(0.986 0.002 198.328);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.385 0.028 197.364);
  --primary-foreground: oklch(0.888 0.016 198.09);
  --secondary: oklch(0.317 0.008 197.998);
  --secondary-foreground: oklch(0.842 0.007 198.239);
  --accent: oklch(0.317 0.008 197.998);
  --accent-foreground: oklch(0.842 0.007 198.239);
  --destructive: oklch(0.625 0.237 27.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.385 0.028 197.364);
  --chart-1: oklch(0.385 0.028 197.364);
  --chart-2: oklch(0.317 0.008 197.998);
  --chart-3: oklch(0.317 0.008 197.998);
  --chart-4: oklch(0.348 0.009 197.987);
  --chart-5: oklch(0.389 0.032 197.257);
}