Canine for shadcn/ui

Canine is a shadcn/ui theme built around a near-black primary color (#0a0003) with muted light pink accents (#ccb7bd). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0003) on a pink-tinted background (#100508).

Color palette

TokenLightDark
Background
#ffffffwhite
#100508black
Foreground
#160309black
#ffffffwhite
Card
#fcfcfcsnow
#14060ablack
Card foreground
#120307black
#ffffffwhite
Popover
#fcfcfcsnow
#14060ablack
Popover foreground
#120307black
#ffffffwhite
Primary
#0a0003black
#0a0003black
Primary foreground
#fb4176deeppink
#fb4176deeppink
Secondary
#dcd6d7gainsboro
#20181ablack
Secondary foreground
#453b3edarkslategray
#bfabb1darkgray
Muted
#e6cbd3thistle
#341920black
Muted foreground
#6f525bdimgray
#ad9098rosybrown
Accent
#ccb7bdsilver
#3a272cdarkslategray
Accent foreground
#302226darkslategray
#d4bfc5thistle
Destructive
#652201maroon
#f75402orangered
Destructive foreground
#febb9aburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a0003black
#0a0003black

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.72:1AAA
Primary button6.02:1AA
Secondary button7.49:1AAA
Muted text4.57:1AA
Accent8.04:1AAA
Destructive7.15:1AAA
Dark mode
Text on background20.08:1AAA
Text on card19.83:1AAA
Primary button6.02:1AA
Secondary button7.99:1AAA
Muted text5.53:1AA
Accent8.01:1AAA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.039 1.369);
  --muted: oklch(0.868 0.032 358.736);
  --muted-foreground: oklch(0.473 0.041 0.071);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.131 0.034 359.498);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.034 359.498);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.096 0.037 357.214);
  --primary-foreground: oklch(0.664 0.222 9.258);
  --secondary: oklch(0.88 0.007 357.945);
  --secondary-foreground: oklch(0.363 0.015 358.872);
  --accent: oklch(0.8 0.025 358.594);
  --accent-foreground: oklch(0.27 0.022 359.986);
  --destructive: oklch(0.351 0.104 42.203);
  --destructive-foreground: oklch(0.847 0.09 47.634);
  --ring: oklch(0.096 0.037 357.214);
  --chart-1: oklch(0.096 0.037 357.214);
  --chart-2: oklch(0.88 0.007 357.945);
  --chart-3: oklch(0.8 0.025 358.594);
  --chart-4: oklch(0.905 0.006 357.893);
  --chart-5: oklch(0.095 0.038 357.188);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.024 359.054);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.044 2.534);
  --muted-foreground: oklch(0.681 0.037 359.212);
  --popover: oklch(0.147 0.027 0.851);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.147 0.027 0.851);
  --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.096 0.037 357.214);
  --primary-foreground: oklch(0.664 0.222 9.258);
  --secondary: oklch(0.22 0.012 359.253);
  --secondary-foreground: oklch(0.761 0.023 358.58);
  --accent: oklch(0.297 0.03 0.526);
  --accent-foreground: oklch(0.824 0.026 358.588);
  --destructive: oklch(0.663 0.211 39.148);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.096 0.037 357.214);
  --chart-1: oklch(0.096 0.037 357.214);
  --chart-2: oklch(0.22 0.012 359.253);
  --chart-3: oklch(0.297 0.03 0.526);
  --chart-4: oklch(0.252 0.015 359.374);
  --chart-5: oklch(0.095 0.038 357.188);
}