Squash for shadcn/ui

Squash is a shadcn/ui theme built around a yellow primary color (#bdc280) with neutral gray accents (#cfcfce). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#bdc280) on a yellow-tinted background (#0f1005).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f1005black
Foreground
#080901black
#ffffffwhite
Card
#ffffffwhite
#0f1005black
Card foreground
#080901black
#ffffffwhite
Popover
#ffffffwhite
#0f1005black
Popover foreground
#080901black
#ffffffwhite
Primary
#bdc280darkkhaki
#bdc280darkkhaki
Primary foreground
#0a0a05black
#0a0a05black
Secondary
#cfcfcelightgrey
#323329darkslategray
Secondary foreground
#363635darkslategray
#cccdc1silver
Muted
#eeeeecwhitesmoke
#131311black
Muted foreground
#5c5d51dimgray
#aeaea2darkgray
Accent
#cfcfcelightgrey
#323329darkslategray
Accent foreground
#363635darkslategray
#cccdc1silver
Destructive
#5f1a07maroon
#ef4c1forangered
Destructive foreground
#f8b3a0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bdc280darkkhaki
#bdc280darkkhaki

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button10.55:1AAA
Secondary button7.76:1AAA
Muted text5.76:1AA
Accent7.76:1AAA
Destructive7.28:1AAA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button10.55:1AAA
Secondary button7.96:1AAA
Muted text8.31:1AAA
Accent7.96:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.135 0.023 111.493);
  --muted: oklch(0.949 0.003 109.534);
  --muted-foreground: oklch(0.473 0.019 110.216);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.023 111.493);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.135 0.023 111.493);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.794 0.087 111.456);
  --primary-foreground: oklch(0.144 0.013 110.598);
  --secondary: oklch(0.854 0.001 109.507);
  --secondary-foreground: oklch(0.333 0.002 109.582);
  --accent: oklch(0.854 0.001 109.507);
  --accent-foreground: oklch(0.333 0.002 109.582);
  --destructive: oklch(0.329 0.105 35.56);
  --destructive-foreground: oklch(0.827 0.086 36.066);
  --ring: oklch(0.794 0.087 111.456);
  --chart-1: oklch(0.794 0.087 111.456);
  --chart-2: oklch(0.854 0.001 109.507);
  --chart-3: oklch(0.854 0.001 109.507);
  --chart-4: oklch(0.878 0.001 109.502);
  --chart-5: oklch(0.802 0.094 111.586);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.166 0.023 111.622);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.004 109.904);
  --muted-foreground: oklch(0.748 0.017 109.9);
  --popover: oklch(0.166 0.023 111.622);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.166 0.023 111.622);
  --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.794 0.087 111.456);
  --primary-foreground: oklch(0.144 0.013 110.598);
  --secondary: oklch(0.317 0.017 110.479);
  --secondary-foreground: oklch(0.844 0.017 109.848);
  --accent: oklch(0.317 0.017 110.479);
  --accent-foreground: oklch(0.844 0.017 109.848);
  --destructive: oklch(0.642 0.207 35.274);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.087 111.456);
  --chart-1: oklch(0.794 0.087 111.456);
  --chart-2: oklch(0.317 0.017 110.479);
  --chart-3: oklch(0.317 0.017 110.479);
  --chart-4: oklch(0.349 0.02 110.51);
  --chart-5: oklch(0.802 0.094 111.586);
}