Kitten for shadcn/ui

Kitten is a shadcn/ui theme built around a muted blue primary color (#4e5b65) with muted indigo accents (#4e5065). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#4e5b65) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#050b10black
#f8fafcghostwhite
Card
#fcfcfcsnow
#030507black
Card foreground
#04080cblack
#fcfdfdwhite
Popover
#fcfcfcsnow
#030507black
Popover foreground
#04080cblack
#fcfdfdwhite
Primary
#4e5b65dimgray
#4e5b65dimgray
Primary foreground
#f1f3f4whitesmoke
#f1f3f4whitesmoke
Secondary
#4e6563dimgray
#4e6563dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8f2f1whitesmoke
#0d1716black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#4e5065dimgray
#4e5065dimgray
Accent foreground
#f1f1f4whitesmoke
#f1f1f4whitesmoke
Destructive
#b63f0cfirebrick
#f15d1echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4e5b65dimgray
#4e5b65dimgray

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.65:1AAA
Primary button6.26:1AA
Secondary button6.25:1AA
Muted text5.26:1AA
Accent7.04:1AAA
Destructive5.66:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.99:1AAA
Primary button6.26:1AA
Secondary button6.25:1AA
Muted text6.65:1AA
Accent7.04:1AAA
Destructive6.30:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.015 235.856);
  --muted: oklch(0.954 0.01 191.014);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.131 0.013 232.103);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.013 232.103);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.464 0.023 239.113);
  --primary-foreground: oklch(0.962 0.003 238.403);
  --secondary: oklch(0.487 0.028 189.969);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.436 0.035 280.766);
  --accent-foreground: oklch(0.958 0.004 282.142);
  --destructive: oklch(0.531 0.164 39.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.464 0.023 239.113);
  --chart-1: oklch(0.464 0.023 239.113);
  --chart-2: oklch(0.487 0.028 189.969);
  --chart-3: oklch(0.436 0.035 280.766);
  --chart-4: oklch(0.516 0.03 189.956);
  --chart-5: oklch(0.464 0.028 239.305);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.008 232.262);
  --foreground: oklch(0.985 0.003 238.406);
  --muted: oklch(0.193 0.014 189.576);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.115 0.01 232.262);
  --popover-foreground: oklch(0.992 0.002 238.384);
  --card: oklch(0.115 0.01 232.262);
  --card-foreground: oklch(0.992 0.002 238.384);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.464 0.023 239.113);
  --primary-foreground: oklch(0.962 0.003 238.403);
  --secondary: oklch(0.487 0.028 189.969);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.436 0.035 280.766);
  --accent-foreground: oklch(0.958 0.004 282.142);
  --destructive: oklch(0.663 0.195 40.105);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.464 0.023 239.113);
  --chart-1: oklch(0.464 0.023 239.113);
  --chart-2: oklch(0.487 0.028 189.969);
  --chart-3: oklch(0.436 0.035 280.766);
  --chart-4: oklch(0.516 0.03 189.956);
  --chart-5: oklch(0.464 0.028 239.305);
}