Droopy for shadcn/ui

Droopy is a shadcn/ui theme built around a vivid light indigo primary color (#c6c6fb) with vivid light yellow accents (#fbfbc6). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid light indigo primary (#c6c6fb) on an indigo-tinted background (#06060f).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#06060fblack
Foreground
#010104black
#fcfcfdwhite
Card
#f5f5fawhitesmoke
#070713black
Card foreground
#000000black
#ffffffwhite
Popover
#f5f5fawhitesmoke
#070713black
Popover foreground
#000000black
#ffffffwhite
Primary
#c6c6fblightsteelblue
#c6c6fblightsteelblue
Primary foreground
#0a0a85navy
#0a0a85navy
Secondary
#fbfbc6lemonchiffon
#fbfbc6lemonchiffon
Secondary foreground
#262603black
#262603black
Muted
#f3f3e8linen
#17170cblack
Muted foreground
#6c6c60dimgray
#9f9f93darkgray
Accent
#fbfbc6lemonchiffon
#fbfbc6lemonchiffon
Accent foreground
#262603black
#262603black
Destructive
#ba0b08firebrick
#f51814red
Destructive foreground
#fff5f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6c6fblightsteelblue
#c6c6fblightsteelblue

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.29:1AAA
Primary button9.23:1AAA
Secondary button14.45:1AAA
Muted text4.73:1AA
Accent14.45:1AAA
Destructive6.25:1AA
Dark mode
Text on background19.73:1AAA
Text on card20.03:1AAA
Primary button9.23:1AAA
Secondary button14.45:1AAA
Muted text6.73:1AA
Accent14.45:1AAA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 286.317);
  --foreground: oklch(0.076 0.016 281.82);
  --muted: oklch(0.96 0.014 106.663);
  --muted-foreground: oklch(0.528 0.019 107.022);
  --popover: oklch(0.971 0.007 286.274);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.971 0.007 286.274);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0.073 284.727);
  --primary-foreground: oklch(0.29 0.185 266.745);
  --secondary: oklch(0.974 0.068 107.591);
  --secondary-foreground: oklch(0.26 0.053 109.572);
  --accent: oklch(0.974 0.068 107.591);
  --accent-foreground: oklch(0.26 0.053 109.572);
  --destructive: oklch(0.499 0.2 29.037);
  --destructive-foreground: oklch(0.978 0.01 18.518);
  --ring: oklch(0.845 0.073 284.727);
  --chart-1: oklch(0.845 0.073 284.727);
  --chart-2: oklch(0.974 0.068 107.591);
  --chart-3: oklch(0.974 0.068 107.591);
  --chart-4: oklch(0.98 0.051 107.306);
  --chart-5: oklch(0.842 0.076 284.659);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.023 282.62);
  --foreground: oklch(0.991 0.002 286.369);
  --muted: oklch(0.202 0.02 108.061);
  --muted-foreground: oklch(0.699 0.017 106.842);
  --popover: oklch(0.135 0.026 282.304);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.026 282.304);
  --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.845 0.073 284.727);
  --primary-foreground: oklch(0.29 0.185 266.745);
  --secondary: oklch(0.974 0.068 107.591);
  --secondary-foreground: oklch(0.26 0.053 109.572);
  --accent: oklch(0.974 0.068 107.591);
  --accent-foreground: oklch(0.26 0.053 109.572);
  --destructive: oklch(0.616 0.244 28.854);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.073 284.727);
  --chart-1: oklch(0.845 0.073 284.727);
  --chart-2: oklch(0.974 0.068 107.591);
  --chart-3: oklch(0.974 0.068 107.591);
  --chart-4: oklch(0.98 0.051 107.306);
  --chart-5: oklch(0.842 0.076 284.659);
}