Canine for shadcn/ui

Canine is a shadcn/ui theme built around a neutral gray primary color (#555354) with neutral gray accents (#535455). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the neutral gray primary (#555354) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#000000black
Foreground
#040103black
#fbf9fasnow
Card
#fdfcfdwhite
#000000black
Card foreground
#040103black
#fbf9fasnow
Popover
#fdfcfdwhite
#000000black
Popover foreground
#040103black
#fbf9fasnow
Primary
#555354dimgray
#555354dimgray
Primary foreground
#edededwhitesmoke
#edededwhitesmoke
Secondary
#545553dimgray
#545553dimgray
Secondary foreground
#edededwhitesmoke
#edededwhitesmoke
Muted
#ebf0e6beige
#151a0fblack
Muted foreground
#40423ddarkslategray
#c0c2bdsilver
Accent
#535455dimgray
#535455dimgray
Accent foreground
#edededwhitesmoke
#edededwhitesmoke
Destructive
#962503saddlebrown
#fa3e05orangered
Destructive foreground
#fed8cdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#555354dimgray
#555354dimgray

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button6.49:1AA
Secondary button6.39:1AA
Muted text8.76:1AAA
Accent6.45:1AA
Destructive6.20:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button6.49:1AA
Secondary button6.39:1AA
Muted text9.89:1AAA
Accent6.45:1AA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 342.67);
  --foreground: oklch(0.083 0.021 342.576);
  --muted: oklch(0.948 0.014 126.624);
  --muted-foreground: oklch(0.376 0.009 126.739);
  --popover: oklch(0.991 0.002 342.67);
  --popover-foreground: oklch(0.083 0.021 342.576);
  --card: oklch(0.991 0.002 342.67);
  --card-foreground: oklch(0.083 0.021 342.576);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.445 0.003 342.763);
  --primary-foreground: oklch(0.946 0 342.63);
  --secondary: oklch(0.448 0.003 126.511);
  --secondary-foreground: oklch(0.947 0.001 126.435);
  --accent: oklch(0.446 0.002 242.245);
  --accent-foreground: oklch(0.947 0 242.198);
  --destructive: oklch(0.445 0.153 35.09);
  --destructive-foreground: oklch(0.912 0.045 37.599);
  --ring: oklch(0.445 0.003 342.763);
  --chart-1: oklch(0.445 0.003 342.763);
  --chart-2: oklch(0.448 0.003 126.511);
  --chart-3: oklch(0.446 0.002 242.245);
  --chart-4: oklch(0.476 0.003 126.512);
  --chart-5: oklch(0.442 0.011 343.196);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 342.67);
  --muted: oklch(0.207 0.021 127.781);
  --muted-foreground: oklch(0.81 0.007 126.547);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 342.67);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 342.67);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.445 0.003 342.763);
  --primary-foreground: oklch(0.946 0 342.63);
  --secondary: oklch(0.448 0.003 126.511);
  --secondary-foreground: oklch(0.947 0.001 126.435);
  --accent: oklch(0.446 0.002 242.245);
  --accent-foreground: oklch(0.947 0 242.198);
  --destructive: oklch(0.646 0.229 34.182);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.445 0.003 342.763);
  --chart-1: oklch(0.445 0.003 342.763);
  --chart-2: oklch(0.448 0.003 126.511);
  --chart-3: oklch(0.446 0.002 242.245);
  --chart-4: oklch(0.476 0.003 126.512);
  --chart-5: oklch(0.442 0.011 343.196);
}