Squant Rat for shadcn/ui

Squant Rat is a shadcn/ui theme built around a neutral gray primary color (#666666) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#666666) on a neutral background (#ffffff).

Color palette

TokenLightDark
Background
#ffffffwhite
#ffffffwhite
Foreground
#565f6cdimgray
#565f6cdimgray
Card
#fafafasnow
#fafafasnow
Card foreground
#4b535ddarkslategray
#4b535ddarkslategray
Popover
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Popover foreground
#40464fdarkslategray
#40464fdarkslategray
Primary
#666666dimgray
#666666dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d9d9d9gainsboro
#d9d9d9gainsboro
Accent foreground
#404040darkslategray
#404040darkslategray
Destructive
#7d1707maroon
#7d1707maroon
Destructive foreground
#fbc4bclightpink
#fbc4bclightpink
Border
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Input
#ebebeblinen
#ebebeblinen
Ring
#666666dimgray
#666666dimgray

Contrast

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

Light mode
Text on background6.46:1AA
Text on card7.46:1AAA
Primary button5.74:1AA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.85:1AA
Dark mode
Text on background6.46:1AA
Text on card7.46:1AAA
Primary button5.74:1AA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.484 0.023 255.157);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.393 0.018 255.15);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.439 0.02 255.154);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.51 0 171.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.385 0.139 31.605);
  --destructive-foreground: oklch(0.867 0.065 28.498);
  --ring: oklch(0.51 0 171.87);
  --chart-1: oklch(0.51 0 171.87);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.505 0.008 17.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.484 0.023 255.157);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.393 0.018 255.15);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.439 0.02 255.154);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.51 0 171.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.385 0.139 31.605);
  --destructive-foreground: oklch(0.867 0.065 28.498);
  --ring: oklch(0.51 0 171.87);
  --chart-1: oklch(0.51 0 171.87);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.505 0.008 17.414);
}