Delightful for shadcn/ui

Delightful is a shadcn/ui theme built around a vivid light green primary color (#bffdda) with muted green accents (#b8c7be). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid light green primary (#bffdda) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#fbfefcwhite
#030705black
Foreground
#03170bblack
#ffffffwhite
Card
#fbfefcwhite
#030705black
Card foreground
#03170bblack
#ffffffwhite
Popover
#fbfefcwhite
#030705black
Popover foreground
#03170bblack
#ffffffwhite
Primary
#bffddapaleturquoise
#bffddapaleturquoise
Primary foreground
#012310black
#012310black
Secondary
#ced4d1lightgrey
#1f2e25darkslategray
Secondary foreground
#353b38darkslategray
#b3cbbesilver
Muted
#e3f2eahoneydew
#0d1c13black
Muted foreground
#455e50darkslategray
#a1baacdarkgray
Accent
#b8c7besilver
#2a4636darkslategray
Accent foreground
#222b26darkslategray
#c6ddd0lightgrey
Destructive
#cf470cchocolate
#ec500eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bffddapaleturquoise
#bffddapaleturquoise

Contrast

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

Light mode
Text on background18.28:1AAA
Text on card18.28:1AAA
Primary button14.62:1AAA
Secondary button7.60:1AAA
Muted text6.10:1AA
Accent8.27:1AAA
Destructive4.60:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button14.62:1AAA
Secondary button8.30:1AAA
Muted text8.52:1AAA
Accent7.21:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 161.712);
  --foreground: oklch(0.182 0.037 157.486);
  --muted: oklch(0.947 0.019 161.329);
  --muted-foreground: oklch(0.457 0.037 159.666);
  --popover: oklch(0.994 0.004 161.712);
  --popover-foreground: oklch(0.182 0.037 157.486);
  --card: oklch(0.994 0.004 161.712);
  --card-foreground: oklch(0.182 0.037 157.486);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.943 0.079 159.597);
  --primary-foreground: oklch(0.224 0.054 154.633);
  --secondary: oklch(0.864 0.007 161.602);
  --secondary-foreground: oklch(0.346 0.011 161.007);
  --accent: oklch(0.815 0.021 161.186);
  --accent-foreground: oklch(0.278 0.016 160.34);
  --destructive: oklch(0.582 0.182 38.742);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.943 0.079 159.597);
  --chart-1: oklch(0.943 0.079 159.597);
  --chart-2: oklch(0.864 0.007 161.602);
  --chart-3: oklch(0.815 0.021 161.186);
  --chart-4: oklch(0.887 0.006 161.642);
  --chart-5: oklch(0.944 0.081 159.526);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.013 161.793);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.208 0.026 158.336);
  --muted-foreground: oklch(0.765 0.033 160.717);
  --popover: oklch(0.122 0.013 161.793);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.013 161.793);
  --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.943 0.079 159.597);
  --primary-foreground: oklch(0.224 0.054 154.633);
  --secondary: oklch(0.283 0.025 159.481);
  --secondary-foreground: oklch(0.821 0.032 160.822);
  --accent: oklch(0.367 0.044 158.46);
  --accent-foreground: oklch(0.876 0.03 160.949);
  --destructive: oklch(0.641 0.202 38.547);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.943 0.079 159.597);
  --chart-1: oklch(0.943 0.079 159.597);
  --chart-2: oklch(0.283 0.025 159.481);
  --chart-3: oklch(0.367 0.044 158.46);
  --chart-4: oklch(0.317 0.029 159.372);
  --chart-5: oklch(0.944 0.081 159.526);
}