Waist for shadcn/ui

Waist is a shadcn/ui theme built around a neutral gray primary color (#666a62) with neutral gray accents (#626a62). The light mode uses a neutral background (#fafdf7). Dark mode keeps the neutral gray primary (#666a62) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#000000black
Foreground
#030401black
#f7faf4whitesmoke
Card
#fafdf7mintcream
#000000black
Card foreground
#030401black
#f7faf4whitesmoke
Popover
#fafdf7mintcream
#000000black
Popover foreground
#030401black
#f7faf4whitesmoke
Primary
#666a62dimgray
#666a62dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6a6a62dimgray
#6a6a62dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f4eblinen
#14140bblack
Muted foreground
#666666dimgray
#999999darkgray
Accent
#626a62dimgray
#626a62dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bd0e05firebrick
#e01106red
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#666a62dimgray
#666a62dimgray

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button5.51:1AA
Secondary button5.45:1AA
Muted text5.20:1AA
Accent5.58:1AA
Destructive6.11:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button5.51:1AA
Secondary button5.45:1AA
Muted text6.50:1AA
Accent5.58:1AA
Destructive4.95:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.009 127.893);
  --foreground: oklch(0.101 0.015 126.72);
  --muted: oklch(0.966 0.012 105.842);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(0.99 0.009 127.893);
  --popover-foreground: oklch(0.101 0.015 126.72);
  --card: oklch(0.99 0.009 127.893);
  --card-foreground: oklch(0.101 0.015 126.72);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.519 0.013 128.097);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.522 0.012 106.03);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.016 144.88);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.505 0.202 29.583);
  --destructive-foreground: oklch(0.979 0.01 21.018);
  --ring: oklch(0.519 0.013 128.097);
  --chart-1: oklch(0.519 0.013 128.097);
  --chart-2: oklch(0.522 0.012 106.03);
  --chart-3: oklch(0.515 0.016 144.88);
  --chart-4: oklch(0.549 0.013 106.033);
  --chart-5: oklch(0.525 0.023 128.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.008 127.887);
  --muted: oklch(0.188 0.018 107.174);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.008 127.887);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.982 0.008 127.887);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.519 0.013 128.097);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.522 0.012 106.03);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.016 144.88);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.573 0.23 29.546);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.519 0.013 128.097);
  --chart-1: oklch(0.519 0.013 128.097);
  --chart-2: oklch(0.522 0.012 106.03);
  --chart-3: oklch(0.515 0.016 144.88);
  --chart-4: oklch(0.549 0.013 106.033);
  --chart-5: oklch(0.525 0.023 128.323);
}