Darling for shadcn/ui

Darling is a shadcn/ui theme built around a teal primary color (#1ca086) with neutral gray accents (#dadddc). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the teal primary (#1ca086) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#010403black
Foreground
#030c0ablack
#f6f8f8whitesmoke
Card
#f3fcfamintcream
#030706black
Card foreground
#020807black
#f9fbfamintcream
Popover
#f7fdfcmintcream
#010403black
Popover foreground
#030c0ablack
#f6f8f8whitesmoke
Primary
#1ca086darkcyan
#1ca086darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dadddcgainsboro
#121716black
Secondary foreground
#404544darkslategray
#a4b7b3darkgray
Muted
#f0f4f4whitesmoke
#0b0f0eblack
Muted foreground
#4d5150darkslategray
#aeb2b1darkgray
Accent
#dadddcgainsboro
#121716black
Accent foreground
#404544darkslategray
#a4b7b3darkgray
Destructive
#b82c05firebrick
#f43a06orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1ca086darkcyan
#1ca086darkcyan

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.34:1AAA
Primary button3.25:1AA Large
Secondary button7.11:1AAA
Muted text7.28:1AAA
Accent7.11:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.46:1AAA
Primary button3.25:1AA Large
Secondary button8.63:1AAA
Muted text9.01:1AAA
Accent8.63:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 182.991);
  --foreground: oklch(0.143 0.016 182.424);
  --muted: oklch(0.965 0.005 183.05);
  --muted-foreground: oklch(0.432 0.006 182.783);
  --popover: oklch(0.989 0.007 182.991);
  --popover-foreground: oklch(0.143 0.016 182.424);
  --card: oklch(0.984 0.01 182.893);
  --card-foreground: oklch(0.125 0.014 183.031);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.634 0.114 174.721);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.894 0.003 183.087);
  --secondary-foreground: oklch(0.385 0.007 182.665);
  --accent: oklch(0.894 0.003 183.087);
  --accent-foreground: oklch(0.385 0.007 182.665);
  --destructive: oklch(0.514 0.182 34.025);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.634 0.114 174.721);
  --chart-1: oklch(0.634 0.114 174.721);
  --chart-2: oklch(0.894 0.003 183.087);
  --chart-3: oklch(0.894 0.003 183.087);
  --chart-4: oklch(0.917 0.002 183.11);
  --chart-5: oklch(0.642 0.117 174.392);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 183.063);
  --foreground: oklch(0.978 0.002 183.128);
  --muted: oklch(0.163 0.007 181.934);
  --muted-foreground: oklch(0.761 0.006 182.986);
  --popover: oklch(0.097 0.009 183.063);
  --popover-foreground: oklch(0.978 0.002 183.128);
  --card: oklch(0.123 0.011 183.063);
  --card-foreground: oklch(0.986 0.001 183.147);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.634 0.114 174.721);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.198 0.008 182.082);
  --secondary-foreground: oklch(0.764 0.022 182.369);
  --accent: oklch(0.198 0.008 182.082);
  --accent-foreground: oklch(0.764 0.022 182.369);
  --destructive: oklch(0.631 0.227 33.635);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.634 0.114 174.721);
  --chart-1: oklch(0.634 0.114 174.721);
  --chart-2: oklch(0.198 0.008 182.082);
  --chart-3: oklch(0.198 0.008 182.082);
  --chart-4: oklch(0.234 0.01 181.948);
  --chart-5: oklch(0.642 0.117 174.392);
}