Rusty for shadcn/ui

Rusty is a shadcn/ui theme built around a neutral gray primary color (#b1aaac) with neutral gray accents (#b1abaa). The light mode uses a neutral background (#fefbfc). Dark mode keeps the neutral gray primary (#b1aaac) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfcsnow
#000000black
Foreground
#100408black
#fbf8f9snow
Card
#fcf7f9snow
#030303black
Card foreground
#0c0306black
#fdfcfcsnow
Popover
#fcf7f9snow
#030303black
Popover foreground
#0c0306black
#fdfcfcsnow
Primary
#b1aaacdarkgray
#b1aaacdarkgray
Primary foreground
#151414black
#151414black
Secondary
#b1aab0darkgray
#b1aab0darkgray
Secondary foreground
#151415black
#151415black
Muted
#ebd1e7gainsboro
#2e142ablack
Muted foreground
#5d4b5bdimgray
#b4a2b1darkgray
Accent
#b1abaadarkgray
#b1abaadarkgray
Accent foreground
#151414black
#151414black
Destructive
#da3c0borangered
#f45d2ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b1aaacdarkgray
#b1aaacdarkgray

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.27:1AAA
Primary button8.07:1AAA
Secondary button8.09:1AAA
Muted text5.63:1AA
Accent8.12:1AAA
Destructive4.53:1AA
Dark mode
Text on background19.89:1AAA
Text on card20.19:1AAA
Primary button8.07:1AAA
Secondary button8.09:1AAA
Muted text6.98:1AA
Accent8.12:1AAA
Destructive6.44:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 353.656);
  --foreground: oklch(0.134 0.026 355.053);
  --muted: oklch(0.888 0.041 330.826);
  --muted-foreground: oklch(0.437 0.035 331.236);
  --popover: oklch(0.982 0.006 353.74);
  --popover-foreground: oklch(0.121 0.023 353.475);
  --card: oklch(0.982 0.006 353.74);
  --card-foreground: oklch(0.121 0.023 353.475);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.745 0.008 353.887);
  --primary-foreground: oklch(0.192 0.003 354);
  --secondary: oklch(0.746 0.011 330.432);
  --secondary-foreground: oklch(0.192 0.004 330.499);
  --accent: oklch(0.746 0.007 29.498);
  --accent-foreground: oklch(0.192 0.002 29.511);
  --destructive: oklch(0.589 0.201 34.97);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.745 0.008 353.887);
  --chart-1: oklch(0.745 0.008 353.887);
  --chart-2: oklch(0.746 0.011 330.432);
  --chart-3: oklch(0.746 0.007 29.498);
  --chart-4: oklch(0.77 0.01 330.408);
  --chart-5: oklch(0.741 0.014 354.123);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.004 353.678);
  --muted: oklch(0.24 0.055 332.957);
  --muted-foreground: oklch(0.732 0.031 330.777);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.002 353.625);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 353.625);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.745 0.008 353.887);
  --primary-foreground: oklch(0.192 0.003 354);
  --secondary: oklch(0.746 0.011 330.432);
  --secondary-foreground: oklch(0.192 0.004 330.499);
  --accent: oklch(0.746 0.007 29.498);
  --accent-foreground: oklch(0.192 0.002 29.511);
  --destructive: oklch(0.669 0.195 36.858);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.745 0.008 353.887);
  --chart-1: oklch(0.745 0.008 353.887);
  --chart-2: oklch(0.746 0.011 330.432);
  --chart-3: oklch(0.746 0.007 29.498);
  --chart-4: oklch(0.77 0.01 330.408);
  --chart-5: oklch(0.741 0.014 354.123);
}