Crushing for shadcn/ui

Crushing is a shadcn/ui theme built around a light teal primary color (#afdad3) with near-white accents (#e9eceb). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the light teal primary (#afdad3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f8fcfbmintcream
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcfbmintcream
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#afdad3lightblue
#afdad3lightblue
Primary foreground
#1b3b36darkslategray
#1b3b36darkslategray
Secondary
#e9eceblavender
#202726darkslategray
Secondary foreground
#4d5655darkslategray
#b7c3c1silver
Muted
#cde5e1gainsboro
#1a322edarkslategray
Muted foreground
#4a645fdimgray
#9bb5b1darkgray
Accent
#e9eceblavender
#202726darkslategray
Accent foreground
#4d5655darkslategray
#b7c3c1silver
Destructive
#9c2b02saddlebrown
#ec4204orangered
Destructive foreground
#feded2blanchedalmond
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#afdad3lightblue
#afdad3lightblue

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button7.99:1AAA
Secondary button6.35:1AA
Muted text4.83:1AA
Accent6.35:1AA
Destructive6.01:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.99:1AAA
Secondary button8.39:1AAA
Muted text6.24:1AA
Accent8.39:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 185.336);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.902 0.026 184.692);
  --muted-foreground: oklch(0.48 0.032 183.609);
  --popover: oklch(0.988 0.004 185.336);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 185.336);
  --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.856 0.046 183.964);
  --primary-foreground: oklch(0.327 0.039 181.661);
  --secondary: oklch(0.941 0.003 185.375);
  --secondary-foreground: oklch(0.446 0.013 184.695);
  --accent: oklch(0.941 0.003 185.375);
  --accent-foreground: oklch(0.446 0.013 184.695);
  --destructive: oklch(0.462 0.154 36.552);
  --destructive-foreground: oklch(0.923 0.04 41.037);
  --ring: oklch(0.856 0.046 183.964);
  --chart-1: oklch(0.856 0.046 183.964);
  --chart-2: oklch(0.941 0.003 185.375);
  --chart-3: oklch(0.941 0.003 185.375);
  --chart-4: oklch(0.963 0.002 185.404);
  --chart-5: oklch(0.859 0.05 183.849);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.297 0.031 182.327);
  --muted-foreground: oklch(0.753 0.029 184.408);
  --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.856 0.046 183.964);
  --primary-foreground: oklch(0.327 0.039 181.661);
  --secondary: oklch(0.266 0.009 184.503);
  --secondary-foreground: oklch(0.806 0.013 185.011);
  --accent: oklch(0.266 0.009 184.503);
  --accent-foreground: oklch(0.806 0.013 185.011);
  --destructive: oklch(0.625 0.214 35.663);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.856 0.046 183.964);
  --chart-1: oklch(0.856 0.046 183.964);
  --chart-2: oklch(0.266 0.009 184.503);
  --chart-3: oklch(0.266 0.009 184.503);
  --chart-4: oklch(0.298 0.011 184.455);
  --chart-5: oklch(0.859 0.05 183.849);
}