Grouse for shadcn/ui

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

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#000000black
Foreground
#060209black
#ffffffwhite
Card
#faf8fcghostwhite
#000000black
Card foreground
#060209black
#ffffffwhite
Popover
#faf8fcghostwhite
#000000black
Popover foreground
#060209black
#ffffffwhite
Primary
#b5b3b7silver
#b5b3b7silver
Primary foreground
#1c1b1dblack
#1c1b1dblack
Secondary
#b3b3b7darkgray
#b3b3b7darkgray
Secondary foreground
#1b1b1dblack
#1b1b1dblack
Muted
#eaeaeclavender
#141315black
Muted foreground
#3e3e42darkslategray
#bebdc1silver
Accent
#b7b3b7silver
#b7b3b7silver
Accent foreground
#1d1b1dblack
#1d1b1dblack
Destructive
#6f1a06maroon
#f35c39tomato
Destructive foreground
#fabbadlightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b5b3b7silver
#b5b3b7silver

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button8.24:1AAA
Secondary button8.22:1AAA
Muted text8.82:1AAA
Accent8.26:1AAA
Destructive7.01:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.24:1AAA
Secondary button8.22:1AAA
Muted text9.89:1AAA
Accent8.26:1AAA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 311.041);
  --foreground: oklch(0.1 0.028 313.344);
  --muted: oklch(0.936 0.003 289.424);
  --muted-foreground: oklch(0.365 0.006 289.142);
  --popover: oklch(0.982 0.005 311.041);
  --popover-foreground: oklch(0.1 0.028 313.344);
  --card: oklch(0.982 0.005 311.041);
  --card-foreground: oklch(0.1 0.028 313.344);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.77 0.007 311.007);
  --primary-foreground: oklch(0.225 0.004 310.948);
  --secondary: oklch(0.768 0.006 289.326);
  --secondary-foreground: oklch(0.224 0.003 289.207);
  --accent: oklch(0.771 0.008 327.643);
  --accent-foreground: oklch(0.226 0.004 327.716);
  --destructive: oklch(0.359 0.122 33.669);
  --destructive-foreground: oklch(0.847 0.076 32.966);
  --ring: oklch(0.77 0.007 311.007);
  --chart-1: oklch(0.77 0.007 311.007);
  --chart-2: oklch(0.768 0.006 289.326);
  --chart-3: oklch(0.771 0.008 327.643);
  --chart-4: oklch(0.793 0.006 289.347);
  --chart-5: oklch(0.766 0.014 310.929);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.19 0.004 289.071);
  --muted-foreground: oklch(0.801 0.005 289.354);
  --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.77 0.007 311.007);
  --primary-foreground: oklch(0.225 0.004 310.948);
  --secondary: oklch(0.768 0.006 289.326);
  --secondary-foreground: oklch(0.224 0.003 289.207);
  --accent: oklch(0.771 0.008 327.643);
  --accent-foreground: oklch(0.226 0.004 327.716);
  --destructive: oklch(0.668 0.193 34.136);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.77 0.007 311.007);
  --chart-1: oklch(0.77 0.007 311.007);
  --chart-2: oklch(0.768 0.006 289.326);
  --chart-3: oklch(0.771 0.008 327.643);
  --chart-4: oklch(0.793 0.006 289.347);
  --chart-5: oklch(0.766 0.014 310.929);
}