Klutzy for shadcn/ui

Klutzy is a shadcn/ui theme built around a neutral gray primary color (#b0b5b3) with neutral gray accents (#b0b5b5). The light mode uses a neutral background (#fbfefd). Dark mode keeps the neutral gray primary (#b0b5b3) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#fbfefdwhite
#010403black
Foreground
#010403black
#fcfdfcwhite
Card
#f7fdfamintcream
#030805black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefdwhite
#010403black
Popover foreground
#010403black
#fcfdfcwhite
Primary
#b0b5b3darkgray
#b0b5b3darkgray
Primary foreground
#191a1ablack
#191a1ablack
Secondary
#b0b5b0darkgray
#b0b5b0darkgray
Secondary foreground
#191a19black
#191a19black
Muted
#e3ede4gainsboro
#121c13black
Muted foreground
#525653darkslategray
#a9ada9darkgray
Accent
#b0b5b5darkgray
#b0b5b5darkgray
Accent foreground
#191a1ablack
#191a1ablack
Destructive
#9c2402firebrick
#fb3904orangered
Destructive foreground
#fedbd2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b0b5b3darkgray
#b0b5b3darkgray

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.34:1AAA
Primary button8.38:1AAA
Secondary button8.37:1AAA
Muted text6.21:1AA
Accent8.38:1AAA
Destructive6.12:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.22:1AAA
Primary button8.38:1AAA
Secondary button8.37:1AAA
Muted text7.70:1AAA
Accent8.38:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 167.72);
  --foreground: oklch(0.098 0.012 168.028);
  --muted: oklch(0.936 0.016 146.879);
  --muted-foreground: oklch(0.448 0.007 146.899);
  --popover: oklch(0.994 0.003 167.72);
  --popover-foreground: oklch(0.098 0.012 168.028);
  --card: oklch(0.988 0.007 167.626);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.768 0.006 167.599);
  --primary-foreground: oklch(0.217 0.003 167.466);
  --secondary: oklch(0.768 0.008 146.941);
  --secondary-foreground: oklch(0.217 0.004 146.881);
  --accent: oklch(0.768 0.005 200.811);
  --accent-foreground: oklch(0.217 0.002 200.764);
  --destructive: oklch(0.454 0.161 34.239);
  --destructive-foreground: oklch(0.919 0.041 35.945);
  --ring: oklch(0.768 0.006 167.599);
  --chart-1: oklch(0.768 0.006 167.599);
  --chart-2: oklch(0.768 0.008 146.941);
  --chart-3: oklch(0.768 0.005 200.811);
  --chart-4: oklch(0.791 0.007 146.955);
  --chart-5: oklch(0.771 0.012 167.386);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.011 168.01);
  --foreground: oklch(0.993 0.001 167.78);
  --muted: oklch(0.213 0.023 145.983);
  --muted-foreground: oklch(0.742 0.006 146.964);
  --popover: oklch(0.097 0.011 168.01);
  --popover-foreground: oklch(0.993 0.001 167.78);
  --card: oklch(0.123 0.014 168.01);
  --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.768 0.006 167.599);
  --primary-foreground: oklch(0.217 0.003 167.466);
  --secondary: oklch(0.768 0.008 146.941);
  --secondary-foreground: oklch(0.217 0.004 146.881);
  --accent: oklch(0.768 0.005 200.811);
  --accent-foreground: oklch(0.217 0.002 200.764);
  --destructive: oklch(0.644 0.234 33.429);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.768 0.006 167.599);
  --chart-1: oklch(0.768 0.006 167.599);
  --chart-2: oklch(0.768 0.008 146.941);
  --chart-3: oklch(0.768 0.005 200.811);
  --chart-4: oklch(0.791 0.007 146.955);
  --chart-5: oklch(0.771 0.012 167.386);
}