Chime for shadcn/ui

Chime is a shadcn/ui theme built around a neutral gray primary color (#787473) with neutral gray accents (#787673). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the neutral gray primary (#787473) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#070403black
Foreground
#080302black
#ffffffwhite
Card
#fdfcfcsnow
#070403black
Card foreground
#080302black
#ffffffwhite
Popover
#fdfcfcsnow
#070403black
Popover foreground
#080302black
#ffffffwhite
Primary
#787473gray
#787473gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#787375gray
#787375gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6d1d9gainsboro
#2e1921black
Muted foreground
#554e51darkslategray
#b1aaaddarkgray
Accent
#787673gray
#787673gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9a280ebrown
#eb502dtomato
Destructive foreground
#fce4demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#787473gray
#787473gray

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 button4.64:1AA
Secondary button4.66:1AA
Muted text5.57:1AA
Accent4.54:1AA
Destructive6.44:1AA
Dark mode
Text on background20.45:1AAA
Text on card20.45:1AAA
Primary button4.64:1AA
Secondary button4.66:1AA
Muted text7.20:1AAA
Accent4.54:1AA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 26.451);
  --foreground: oklch(0.107 0.017 32.67);
  --muted: oklch(0.88 0.025 352.395);
  --muted-foreground: oklch(0.432 0.009 352.209);
  --popover: oklch(0.992 0.002 26.451);
  --popover-foreground: oklch(0.107 0.017 32.67);
  --card: oklch(0.992 0.002 26.451);
  --card-foreground: oklch(0.107 0.017 32.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.561 0.005 26.503);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.56 0.006 351.914);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.566 0.005 79.918);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.456 0.154 33.594);
  --destructive-foreground: oklch(0.936 0.028 32.693);
  --ring: oklch(0.561 0.005 26.503);
  --chart-1: oklch(0.561 0.005 26.503);
  --chart-2: oklch(0.56 0.006 351.914);
  --chart-3: oklch(0.566 0.005 79.918);
  --chart-4: oklch(0.586 0.007 351.916);
  --chart-5: oklch(0.557 0.013 26.612);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.009 29.108);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.246 0.035 355.449);
  --muted-foreground: oklch(0.745 0.008 351.906);
  --popover: oklch(0.111 0.009 29.108);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.009 29.108);
  --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.561 0.005 26.503);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.56 0.006 351.914);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.566 0.005 79.918);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.641 0.198 34.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.561 0.005 26.503);
  --chart-1: oklch(0.561 0.005 26.503);
  --chart-2: oklch(0.56 0.006 351.914);
  --chart-3: oklch(0.566 0.005 79.918);
  --chart-4: oklch(0.586 0.007 351.916);
  --chart-5: oklch(0.557 0.013 26.612);
}