Dandelion Yellow Sloth for shadcn/ui

Dandelion Yellow Sloth is a shadcn/ui theme built around a vivid yellow primary color (#fdd93a) with vivid green accents (#bffd3a). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid yellow primary (#fdd93a) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fcfbf8snow
#040401black
Foreground
#141205black
#fcfbf8snow
Card
#faf9f4whitesmoke
#080702black
Card foreground
#100e04black
#fdfdfcwhite
Popover
#fcfbf8snow
#040401black
Popover foreground
#141205black
#fcfbf8snow
Primary
#fdd93agold
#fdd93agold
Primary foreground
#050400black
#050400black
Secondary
#fd783acoral
#fd783acoral
Secondary foreground
#050200black
#050200black
Muted
#e8dad3gainsboro
#2c1d17black
Muted foreground
#46413edarkslategray
#c1bbb9silver
Accent
#bffd3agreenyellow
#bffd3agreenyellow
Accent foreground
#030500black
#030500black
Destructive
#d01711firebrick
#ef3f39tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e6e5e0gainsboro
#24231eblack
Input
#e6e5e0gainsboro
#24231eblack
Ring
#fdd93agold
#fdd93agold

Contrast

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

Light mode
Text on background18.16:1AAA
Text on card18.38:1AAA
Primary button14.83:1AAA
Secondary button7.79:1AAA
Muted text7.38:1AAA
Accent16.90:1AAA
Destructive5.52:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.80:1AAA
Primary button14.83:1AAA
Secondary button7.79:1AAA
Muted text8.54:1AAA
Accent16.90:1AAA
Destructive3.86:1AA Large

CSS variables

Paste this into your globals.css to use Dandelion Yellow Sloth in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 96.222);
  --foreground: oklch(0.179 0.024 97.808);
  --muted: oklch(0.898 0.018 46.633);
  --muted-foreground: oklch(0.379 0.009 46.612);
  --popover: oklch(0.988 0.004 96.222);
  --popover-foreground: oklch(0.179 0.024 97.808);
  --card: oklch(0.982 0.007 96.251);
  --card-foreground: oklch(0.163 0.021 98.555);
  --border: oklch(0.921 0.006 96.251);
  --input: oklch(0.921 0.006 96.251);
  --primary: oklch(0.891 0.168 95.614);
  --primary-foreground: oklch(0.107 0.022 102.512);
  --secondary: oklch(0.72 0.179 43.234);
  --secondary-foreground: oklch(0.089 0.02 63.825);
  --accent: oklch(0.92 0.218 126.349);
  --accent-foreground: oklch(0.108 0.025 120.4);
  --destructive: oklch(0.545 0.213 29.054);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.891 0.168 95.614);
  --chart-1: oklch(0.891 0.168 95.614);
  --chart-2: oklch(0.72 0.179 43.234);
  --chart-3: oklch(0.92 0.218 126.349);
  --chart-4: oklch(0.737 0.166 44.015);
  --chart-5: oklch(0.897 0.171 95.471);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.013 100.48);
  --foreground: oklch(0.988 0.004 96.217);
  --muted: oklch(0.248 0.026 45.895);
  --muted-foreground: oklch(0.797 0.007 46.756);
  --popover: oklch(0.101 0.013 100.48);
  --popover-foreground: oklch(0.988 0.004 96.217);
  --card: oklch(0.128 0.017 100.48);
  --card-foreground: oklch(0.994 0.002 96.191);
  --border: oklch(0.257 0.01 96.614);
  --input: oklch(0.257 0.01 96.614);
  --primary: oklch(0.891 0.168 95.614);
  --primary-foreground: oklch(0.107 0.022 102.512);
  --secondary: oklch(0.72 0.179 43.234);
  --secondary-foreground: oklch(0.089 0.02 63.825);
  --accent: oklch(0.92 0.218 126.349);
  --accent-foreground: oklch(0.108 0.025 120.4);
  --destructive: oklch(0.631 0.213 27.312);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.891 0.168 95.614);
  --chart-1: oklch(0.891 0.168 95.614);
  --chart-2: oklch(0.72 0.179 43.234);
  --chart-3: oklch(0.92 0.218 126.349);
  --chart-4: oklch(0.737 0.166 44.015);
  --chart-5: oklch(0.897 0.171 95.471);
}