Fuzzy Duckling Pig for shadcn/ui

Fuzzy Duckling Pig is a shadcn/ui theme built around a vivid yellow primary color (#ffec70) with muted blue accents (#475962). The light mode uses a blue-tinted background (#273035). Dark mode keeps the vivid yellow primary (#ffec70) on a blue-tinted background (#273035).

Color palette

TokenLightDark
Background
#273035darkslategray
#273035darkslategray
Foreground
#f0fffbazure
#f0fffbazure
Card
#222b2fdarkslategray
#222b2fdarkslategray
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#20282cdarkslategray
#20282cdarkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#ffec70khaki
#ffec70khaki
Primary foreground
#3d3500darkolivegreen
#3d3500darkolivegreen
Secondary
#534e2ddarkolivegreen
#534e2ddarkolivegreen
Secondary foreground
#e4e1cdgainsboro
#e4e1cdgainsboro
Muted
#313a3fdarkslategray
#313a3fdarkslategray
Muted foreground
#afbac0silver
#afbac0silver
Accent
#475962darkslategray
#475962darkslategray
Accent foreground
#eaeef0lavender
#eaeef0lavender
Destructive
#ee3520orangered
#ee3520orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#373c3edarkslategray
#373c3edarkslategray
Input
#3e4446darkslategray
#3e4446darkslategray
Ring
#ffec70khaki
#ffec70khaki

Contrast

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

Light mode
Text on background13.03:1AAA
Text on card14.42:1AAA
Primary button10.23:1AAA
Secondary button6.41:1AA
Muted text5.84:1AA
Accent6.29:1AA
Destructive4.06:1AA Large
Dark mode
Text on background13.03:1AAA
Text on card14.42:1AAA
Primary button10.23:1AAA
Secondary button6.41:1AA
Muted text5.84:1AA
Accent6.29:1AA
Destructive4.06:1AA Large

CSS variables

Paste this into your globals.css to use Fuzzy Duckling Pig in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.303 0.016 229.578);
  --foreground: oklch(0.988 0.017 180.479);
  --muted: oklch(0.343 0.014 229.374);
  --muted-foreground: oklch(0.783 0.015 229.013);
  --popover: oklch(0.272 0.014 229.535);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.283 0.015 229.551);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.352 0.008 229.045);
  --input: oklch(0.381 0.008 229.052);
  --primary: oklch(0.935 0.145 100.663);
  --primary-foreground: oklch(0.328 0.068 99.794);
  --secondary: oklch(0.419 0.05 100.639);
  --secondary-foreground: oklch(0.907 0.027 99.757);
  --accent: oklch(0.451 0.027 229.697);
  --accent-foreground: oklch(0.947 0.005 228.817);
  --destructive: oklch(0.619 0.223 30.484);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.935 0.145 100.663);
  --chart-1: oklch(0.935 0.145 100.663);
  --chart-2: oklch(0.419 0.05 100.639);
  --chart-3: oklch(0.451 0.027 229.697);
  --chart-4: oklch(0.453 0.055 100.646);
  --chart-5: oklch(0.939 0.148 100.65);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.303 0.016 229.578);
  --foreground: oklch(0.988 0.017 180.479);
  --muted: oklch(0.343 0.014 229.374);
  --muted-foreground: oklch(0.783 0.015 229.013);
  --popover: oklch(0.272 0.014 229.535);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.283 0.015 229.551);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.352 0.008 229.045);
  --input: oklch(0.381 0.008 229.052);
  --primary: oklch(0.935 0.145 100.663);
  --primary-foreground: oklch(0.328 0.068 99.794);
  --secondary: oklch(0.419 0.05 100.639);
  --secondary-foreground: oklch(0.907 0.027 99.757);
  --accent: oklch(0.451 0.027 229.697);
  --accent-foreground: oklch(0.947 0.005 228.817);
  --destructive: oklch(0.619 0.223 30.484);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.935 0.145 100.663);
  --chart-1: oklch(0.935 0.145 100.663);
  --chart-2: oklch(0.419 0.05 100.639);
  --chart-3: oklch(0.451 0.027 229.697);
  --chart-4: oklch(0.453 0.055 100.646);
  --chart-5: oklch(0.939 0.148 100.65);
}