Kennel for shadcn/ui

Kennel is a shadcn/ui theme built around a yellow primary color (#ccac2e) with purple accents (#ac2ecc). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#ccac2e) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080702black
Foreground
#131106black
#ffffffwhite
Card
#fcfbf8snow
#0c0a03black
Card foreground
#100d05black
#ffffffwhite
Popover
#fefdfbsnow
#080702black
Popover foreground
#131106black
#ffffffwhite
Primary
#ccac2egoldenrod
#ccac2egoldenrod
Primary foreground
#252008black
#252008black
Secondary
#2eccaclightseagreen
#2eccaclightseagreen
Secondary foreground
#082520black
#082520black
Muted
#d9ede9gainsboro
#122622black
Muted foreground
#485b57darkslategray
#a4b7b3darkgray
Accent
#ac2eccdarkorchid
#ac2eccdarkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#690d07maroon
#f34b3ftomato
Destructive foreground
#f9aea9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccac2egoldenrod
#ccac2egoldenrod

Contrast

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

Light mode
Text on background18.60:1AAA
Text on card18.78:1AAA
Primary button7.38:1AAA
Secondary button7.96:1AAA
Muted text5.91:1AA
Accent5.22:1AA
Destructive6.98:1AA
Dark mode
Text on background20.16:1AAA
Text on card19.76:1AAA
Primary button7.38:1AAA
Secondary button7.96:1AAA
Muted text7.55:1AAA
Accent5.22:1AA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 95.063);
  --foreground: oklch(0.176 0.021 96.399);
  --muted: oklch(0.93 0.021 182.546);
  --muted-foreground: oklch(0.455 0.025 181.613);
  --popover: oklch(0.994 0.002 95.063);
  --popover-foreground: oklch(0.176 0.021 96.399);
  --card: oklch(0.989 0.005 95.092);
  --card-foreground: oklch(0.16 0.019 97.189);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.752 0.141 94.14);
  --primary-foreground: oklch(0.243 0.038 95.399);
  --secondary: oklch(0.759 0.133 175.268);
  --secondary-foreground: oklch(0.242 0.036 177.593);
  --accent: oklch(0.564 0.237 318.475);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.337 0.126 29.663);
  --destructive-foreground: oklch(0.822 0.089 23.747);
  --ring: oklch(0.752 0.141 94.14);
  --chart-1: oklch(0.752 0.141 94.14);
  --chart-2: oklch(0.759 0.133 175.268);
  --chart-3: oklch(0.564 0.237 318.475);
  --chart-4: oklch(0.777 0.133 175.791);
  --chart-5: oklch(0.76 0.144 93.892);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.016 99.499);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.25 0.027 179.73);
  --muted-foreground: oklch(0.764 0.022 182.369);
  --popover: oklch(0.127 0.016 99.499);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.019 98.867);
  --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.752 0.141 94.14);
  --primary-foreground: oklch(0.243 0.038 95.399);
  --secondary: oklch(0.759 0.133 175.268);
  --secondary-foreground: oklch(0.242 0.036 177.593);
  --accent: oklch(0.564 0.237 318.475);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.649 0.206 28.284);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.752 0.141 94.14);
  --chart-1: oklch(0.752 0.141 94.14);
  --chart-2: oklch(0.759 0.133 175.268);
  --chart-3: oklch(0.564 0.237 318.475);
  --chart-4: oklch(0.777 0.133 175.791);
  --chart-5: oklch(0.76 0.144 93.892);
}