Crushing for shadcn/ui

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

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#cccccclightgrey
#cccccclightgrey
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#cccccclightgrey
#cccccclightgrey
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#e5dcdcgainsboro
#231a1ablack
Muted foreground
#725a5adimgray
#a58d8drosybrown
Accent
#cccccclightgrey
#cccccclightgrey
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#5e1b08maroon
#d33c12firebrick
Destructive foreground
#f7b4a1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cccccclightgrey
#cccccclightgrey

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.86:1AAA
Secondary button7.86:1AAA
Muted text4.68:1AA
Accent7.86:1AAA
Destructive7.35:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.86:1AAA
Secondary button7.86:1AAA
Muted text5.50:1AA
Accent7.86:1AAA
Destructive4.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.901 0.01 17.343);
  --muted-foreground: oklch(0.492 0.032 18.31);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.845 0 164.055);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.845 0 164.055);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(0.845 0 164.055);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.327 0.102 35.642);
  --destructive-foreground: oklch(0.827 0.083 36.054);
  --ring: oklch(0.845 0 164.055);
  --chart-1: oklch(0.845 0 164.055);
  --chart-2: oklch(0.845 0 164.055);
  --chart-3: oklch(0.845 0 164.055);
  --chart-4: oklch(0.869 0 165.964);
  --chart-5: oklch(0.843 0.003 17.225);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.229 0.015 18.277);
  --muted-foreground: oklch(0.665 0.03 17.922);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.845 0 164.055);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.845 0 164.055);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(0.845 0 164.055);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.578 0.194 34.806);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0 164.055);
  --chart-1: oklch(0.845 0 164.055);
  --chart-2: oklch(0.845 0 164.055);
  --chart-3: oklch(0.845 0 164.055);
  --chart-4: oklch(0.869 0 165.964);
  --chart-5: oklch(0.843 0.003 17.225);
}