Trusty for shadcn/ui

Trusty is a shadcn/ui theme built around a neutral gray primary color (#bfbfbf) with neutral gray accents (#bfbfbf). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the neutral gray primary (#bfbfbf) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdf7f7snow
#040101black
Foreground
#040101black
#f9f6f6whitesmoke
Card
#fcf2f2lavenderblush
#070303black
Card foreground
#000000black
#fbf9f9snow
Popover
#fdf7f7snow
#040101black
Popover foreground
#040101black
#f9f6f6whitesmoke
Primary
#bfbfbfsilver
#bfbfbfsilver
Primary foreground
#262626darkslategray
#262626darkslategray
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#e7dedegainsboro
#211818black
Muted foreground
#493636darkslategray
#c9b6b6silver
Accent
#bfbfbfsilver
#bfbfbfsilver
Accent foreground
#262626darkslategray
#262626darkslategray
Destructive
#781807maroon
#f3492btomato
Destructive foreground
#fbc1b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfbfbfsilver
#bfbfbfsilver

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.17:1AAA
Primary button8.25:1AAA
Secondary button8.25:1AAA
Muted text8.56:1AAA
Accent8.25:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.57:1AAA
Primary button8.25:1AAA
Secondary button8.25:1AAA
Muted text9.01:1AAA
Accent8.25:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.28);
  --foreground: oklch(0.083 0.013 20.215);
  --muted: oklch(0.909 0.01 17.337);
  --muted-foreground: oklch(0.355 0.028 18.534);
  --popover: oklch(0.98 0.007 17.28);
  --popover-foreground: oklch(0.083 0.013 20.215);
  --card: oklch(0.97 0.011 17.344);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.805 0 169.695);
  --primary-foreground: oklch(0.27 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.805 0 169.695);
  --accent-foreground: oklch(0.27 0 180);
  --destructive: oklch(0.376 0.133 32.226);
  --destructive-foreground: oklch(0.86 0.068 29.964);
  --ring: oklch(0.805 0 169.695);
  --chart-1: oklch(0.805 0 169.695);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.805 0 169.695);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.803 0.004 17.247);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 19.788);
  --foreground: oklch(0.975 0.003 17.216);
  --muted: oklch(0.218 0.015 18.324);
  --muted-foreground: oklch(0.791 0.022 17.625);
  --popover: oklch(0.084 0.012 19.788);
  --popover-foreground: oklch(0.975 0.003 17.216);
  --card: oklch(0.106 0.015 19.788);
  --card-foreground: oklch(0.983 0.002 17.196);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.805 0 169.695);
  --primary-foreground: oklch(0.27 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.805 0 169.695);
  --accent-foreground: oklch(0.27 0 180);
  --destructive: oklch(0.645 0.211 32.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0 169.695);
  --chart-1: oklch(0.805 0 169.695);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.805 0 169.695);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.803 0.004 17.247);
}