Trusty for shadcn/ui

Trusty is a shadcn/ui theme built around a muted green primary color (#94bca7) with muted orange accents (#bca794). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#94bca7) on a neutral background (#020805).

Color palette

TokenLightDark
Background
#ffffffwhite
#020805black
Foreground
#05100ablack
#fcfdfcwhite
Card
#fcfcfcsnow
#040c07black
Card foreground
#040c07black
#ffffffwhite
Popover
#fcfcfcsnow
#040c07black
Popover foreground
#040c07black
#ffffffwhite
Primary
#94bca7darkseagreen
#94bca7darkseagreen
Primary foreground
#0c130fblack
#0c130fblack
Secondary
#a794bcdarkgray
#a794bcdarkgray
Secondary foreground
#0f0c13black
#0f0c13black
Muted
#f0eff1whitesmoke
#0f0e10black
Muted foreground
#443f4bdarkslategray
#bab4c0silver
Accent
#bca794rosybrown
#bca794rosybrown
Accent foreground
#130f0cblack
#130f0cblack
Destructive
#903c0esaddlebrown
#eb7637tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#94bca7darkseagreen
#94bca7darkseagreen

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card19.36:1AAA
Primary button8.99:1AAA
Secondary button7.04:1AAA
Muted text8.87:1AAA
Accent8.26:1AAA
Destructive7.42:1AAA
Dark mode
Text on background19.81:1AAA
Text on card19.82:1AAA
Primary button8.99:1AAA
Secondary button7.04:1AAA
Muted text9.49:1AAA
Accent8.26:1AAA
Destructive7.20:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.021 161.6);
  --muted: oklch(0.952 0.003 307.073);
  --muted-foreground: oklch(0.377 0.022 306.395);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.141 0.018 163.271);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.018 163.271);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.761 0.052 161.567);
  --primary-foreground: oklch(0.177 0.013 161.384);
  --secondary: oklch(0.698 0.061 306.041);
  --secondary-foreground: oklch(0.161 0.015 305.93);
  --accent: oklch(0.742 0.036 63.43);
  --accent-foreground: oklch(0.172 0.009 63.359);
  --destructive: oklch(0.463 0.126 43.949);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.761 0.052 161.567);
  --chart-1: oklch(0.761 0.052 161.567);
  --chart-2: oklch(0.698 0.061 306.041);
  --chart-3: oklch(0.742 0.036 63.43);
  --chart-4: oklch(0.725 0.055 306.183);
  --chart-5: oklch(0.765 0.059 161.321);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.016 163.512);
  --foreground: oklch(0.993 0.001 163.413);
  --muted: oklch(0.167 0.005 306.768);
  --muted-foreground: oklch(0.778 0.018 306.822);
  --popover: oklch(0.141 0.019 163.253);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.019 163.253);
  --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.761 0.052 161.567);
  --primary-foreground: oklch(0.177 0.013 161.384);
  --secondary: oklch(0.698 0.061 306.041);
  --secondary-foreground: oklch(0.161 0.015 305.93);
  --accent: oklch(0.742 0.036 63.43);
  --accent-foreground: oklch(0.172 0.009 63.359);
  --destructive: oklch(0.692 0.163 46.198);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.761 0.052 161.567);
  --chart-1: oklch(0.761 0.052 161.567);
  --chart-2: oklch(0.698 0.061 306.041);
  --chart-3: oklch(0.742 0.036 63.43);
  --chart-4: oklch(0.725 0.055 306.183);
  --chart-5: oklch(0.765 0.059 161.321);
}