Pet for shadcn/ui

Pet is a shadcn/ui theme built around a muted deep indigo primary color (#1b1a23) with muted deep green accents (#1a231b). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted deep indigo primary (#1b1a23) on an indigo-tinted background (#05040b).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#05040bblack
Foreground
#070515black
#f9f8fcghostwhite
Card
#f9f8fcghostwhite
#07060fblack
Card foreground
#050410black
#fcfcfdwhite
Popover
#f9f8fcghostwhite
#07060fblack
Popover foreground
#050410black
#fcfcfdwhite
Primary
#1b1a23black
#1b1a23black
Primary foreground
#afadc2silver
#afadc2silver
Secondary
#231b1ablack
#231b1ablack
Secondary foreground
#c2afadsilver
#c2afadsilver
Muted
#e3dad9gainsboro
#261d1cblack
Muted foreground
#6f5a58dimgray
#a79290rosybrown
Accent
#1a231bblack
#1a231bblack
Accent foreground
#adc2afsilver
#adc2afsilver
Destructive
#6a1306maroon
#f24126orangered
Destructive foreground
#fab3a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b1a23black
#1b1a23black

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.25:1AAA
Primary button7.85:1AAA
Secondary button8.05:1AAA
Muted text4.65:1AA
Accent8.53:1AAA
Destructive7.05:1AAA
Dark mode
Text on background19.29:1AAA
Text on card19.70:1AAA
Primary button7.85:1AAA
Secondary button8.05:1AAA
Muted text5.60:1AA
Accent8.53:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 291.736);
  --foreground: oklch(0.13 0.036 287.199);
  --muted: oklch(0.895 0.01 26.52);
  --muted-foreground: oklch(0.489 0.028 26.931);
  --popover: oklch(0.981 0.005 291.691);
  --popover-foreground: oklch(0.12 0.031 288.15);
  --card: oklch(0.981 0.005 291.691);
  --card-foreground: oklch(0.12 0.031 288.15);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.223 0.018 290.227);
  --primary-foreground: oklch(0.756 0.03 291.009);
  --secondary: oklch(0.232 0.013 26.917);
  --secondary-foreground: oklch(0.771 0.022 26.656);
  --accent: oklch(0.245 0.02 148.117);
  --accent-foreground: oklch(0.793 0.035 148.597);
  --destructive: oklch(0.343 0.122 31.758);
  --destructive-foreground: oklch(0.831 0.085 28.795);
  --ring: oklch(0.223 0.018 290.227);
  --chart-1: oklch(0.223 0.018 290.227);
  --chart-2: oklch(0.232 0.013 26.917);
  --chart-3: oklch(0.245 0.02 148.117);
  --chart-4: oklch(0.263 0.016 26.959);
  --chart-5: oklch(0.221 0.021 289.869);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.019 289.957);
  --foreground: oklch(0.981 0.004 291.694);
  --muted: oklch(0.242 0.015 26.976);
  --muted-foreground: oklch(0.679 0.026 26.736);
  --popover: oklch(0.127 0.023 289.406);
  --popover-foreground: oklch(0.991 0.002 291.737);
  --card: oklch(0.127 0.023 289.406);
  --card-foreground: oklch(0.991 0.002 291.737);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.223 0.018 290.227);
  --primary-foreground: oklch(0.756 0.03 291.009);
  --secondary: oklch(0.232 0.013 26.917);
  --secondary-foreground: oklch(0.771 0.022 26.656);
  --accent: oklch(0.245 0.02 148.117);
  --accent-foreground: oklch(0.793 0.035 148.597);
  --destructive: oklch(0.637 0.217 31.661);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.223 0.018 290.227);
  --chart-1: oklch(0.223 0.018 290.227);
  --chart-2: oklch(0.232 0.013 26.917);
  --chart-3: oklch(0.245 0.02 148.117);
  --chart-4: oklch(0.263 0.016 26.959);
  --chart-5: oklch(0.221 0.021 289.869);
}