Droopy for shadcn/ui

Droopy is a shadcn/ui theme built around a muted light green primary color (#f4f6f4) with muted light purple accents (#f6f4f5). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the muted light green primary (#f4f6f4) on a green-tinted background (#041008).

Color palette

TokenLightDark
Background
#f7fcf9mintcream
#041008black
Foreground
#010502black
#f8fcf9mintcream
Card
#f7fcf9mintcream
#041008black
Card foreground
#010502black
#f8fcf9mintcream
Popover
#f7fcf9mintcream
#041008black
Popover foreground
#010502black
#f8fcf9mintcream
Primary
#f4f6f4whitesmoke
#f4f6f4whitesmoke
Primary foreground
#242d27darkslategray
#242d27darkslategray
Secondary
#f6f4f5whitesmoke
#f6f4f5whitesmoke
Secondary foreground
#665260dimgray
#665260dimgray
Muted
#e4dde2gainsboro
#221b20black
Muted foreground
#6c6069dimgray
#9f939cdarkgray
Accent
#f6f4f5whitesmoke
#f6f4f5whitesmoke
Accent foreground
#665260dimgray
#665260dimgray
Destructive
#940c00darkred
#ff1a05red
Destructive foreground
#ffccc7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4f6f4whitesmoke
#f4f6f4whitesmoke

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button13.05:1AAA
Secondary button6.50:1AA
Muted text4.47:1AA Large
Accent6.50:1AA
Destructive6.36:1AA
Dark mode
Text on background18.71:1AAA
Text on card18.71:1AAA
Primary button13.05:1AAA
Secondary button6.50:1AA
Muted text5.71:1AA
Accent6.50:1AA
Destructive3.88: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.987 0.007 155.062);
  --foreground: oklch(0.1 0.021 154.452);
  --muted: oklch(0.904 0.01 335.386);
  --muted-foreground: oklch(0.503 0.021 335.916);
  --popover: oklch(0.987 0.007 155.062);
  --popover-foreground: oklch(0.1 0.021 154.452);
  --card: oklch(0.987 0.007 155.062);
  --card-foreground: oklch(0.1 0.021 154.452);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.971 0.003 155.131);
  --primary-foreground: oklch(0.287 0.017 154.051);
  --secondary: oklch(0.968 0.003 335.251);
  --secondary-foreground: oklch(0.463 0.035 336.494);
  --accent: oklch(0.968 0.003 335.251);
  --accent-foreground: oklch(0.463 0.035 336.494);
  --destructive: oklch(0.423 0.167 30.527);
  --destructive-foreground: oklch(0.888 0.059 24.354);
  --ring: oklch(0.971 0.003 155.131);
  --chart-1: oklch(0.971 0.003 155.131);
  --chart-2: oklch(0.968 0.003 335.251);
  --chart-3: oklch(0.968 0.003 335.251);
  --chart-4: oklch(0.992 0.001 335.205);
  --chart-5: oklch(0.971 0.004 155.115);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.026 153.553);
  --foreground: oklch(0.987 0.005 155.095);
  --muted: oklch(0.233 0.014 336.224);
  --muted-foreground: oklch(0.676 0.019 335.696);
  --popover: oklch(0.158 0.026 153.553);
  --popover-foreground: oklch(0.987 0.005 155.095);
  --card: oklch(0.158 0.026 153.553);
  --card-foreground: oklch(0.987 0.005 155.095);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.971 0.003 155.131);
  --primary-foreground: oklch(0.287 0.017 154.051);
  --secondary: oklch(0.968 0.003 335.251);
  --secondary-foreground: oklch(0.463 0.035 336.494);
  --accent: oklch(0.968 0.003 335.251);
  --accent-foreground: oklch(0.463 0.035 336.494);
  --destructive: oklch(0.634 0.252 29.989);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.003 155.131);
  --chart-1: oklch(0.971 0.003 155.131);
  --chart-2: oklch(0.968 0.003 335.251);
  --chart-3: oklch(0.968 0.003 335.251);
  --chart-4: oklch(0.992 0.001 335.205);
  --chart-5: oklch(0.971 0.004 155.115);
}