Puppy for shadcn/ui

Puppy is a shadcn/ui theme built around a green primary color (#5f7d40) with muted green accents (#c0ceb1). The light mode uses a neutral background (#fafdf7). Dark mode keeps the green primary (#5f7d40) on a green-tinted background (#0a0e07).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#0a0e07black
Foreground
#0a1004black
#fcfdfcwhite
Card
#f7fbf3whitesmoke
#0d1108black
Card foreground
#080c03black
#ffffffwhite
Popover
#fafdf7mintcream
#0a0e07black
Popover foreground
#0a1004black
#fcfdfcwhite
Primary
#5f7d40darkolivegreen
#5f7d40darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d1d8cblightgrey
#1c1c1cblack
Secondary foreground
#384030darkslategray
#b5b6b4silver
Muted
#dce6d1gainsboro
#242e19black
Muted foreground
#4a4b48darkslategray
#b5b7b4silver
Accent
#c0ceb1silver
#2b2e29darkslategray
Accent foreground
#272f1ddarkslategray
#c4c8c1silver
Destructive
#60270bmaroon
#e9743atomato
Destructive foreground
#f5c2a8lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f7d40darkolivegreen
#5f7d40darkolivegreen

Contrast

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

Light mode
Text on background18.74:1AAA
Text on card18.90:1AAA
Primary button4.69:1AA
Secondary button7.38:1AAA
Muted text6.78:1AA
Accent8.39:1AAA
Destructive7.31:1AAA
Dark mode
Text on background19.11:1AAA
Text on card19.06:1AAA
Primary button4.69:1AA
Secondary button8.34:1AAA
Muted text7.01:1AAA
Accent8.11:1AAA
Destructive7.03:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 127.879);
  --foreground: oklch(0.164 0.029 128.263);
  --muted: oklch(0.911 0.03 128.176);
  --muted-foreground: oklch(0.412 0.005 127.937);
  --popover: oklch(0.989 0.008 127.879);
  --popover-foreground: oklch(0.164 0.029 128.263);
  --card: oklch(0.984 0.011 127.926);
  --card-foreground: oklch(0.147 0.025 126.931);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.551 0.093 130.126);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.872 0.019 128.041);
  --secondary-foreground: oklch(0.359 0.028 128.747);
  --accent: oklch(0.832 0.043 128.407);
  --accent-foreground: oklch(0.292 0.033 129.214);
  --destructive: oklch(0.351 0.092 43.72);
  --destructive-foreground: oklch(0.852 0.069 47.89);
  --ring: oklch(0.551 0.093 130.126);
  --chart-1: oklch(0.551 0.093 130.126);
  --chart-2: oklch(0.872 0.019 128.041);
  --chart-3: oklch(0.832 0.043 128.407);
  --chart-4: oklch(0.894 0.015 127.993);
  --chart-5: oklch(0.557 0.1 130.343);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.016 128.128);
  --foreground: oklch(0.993 0.002 127.809);
  --muted: oklch(0.286 0.038 129.543);
  --muted-foreground: oklch(0.776 0.004 127.856);
  --popover: oklch(0.156 0.016 128.128);
  --popover-foreground: oklch(0.993 0.002 127.809);
  --card: oklch(0.17 0.019 129.011);
  --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.551 0.093 130.126);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.227 0.001 127.848);
  --secondary-foreground: oklch(0.775 0.002 127.823);
  --accent: oklch(0.297 0.01 128.184);
  --accent-foreground: oklch(0.828 0.01 127.936);
  --destructive: oklch(0.686 0.162 44.941);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.551 0.093 130.126);
  --chart-1: oklch(0.551 0.093 130.126);
  --chart-2: oklch(0.227 0.001 127.848);
  --chart-3: oklch(0.297 0.01 128.184);
  --chart-4: oklch(0.26 0.001 127.853);
  --chart-5: oklch(0.557 0.1 130.343);
}