Trusty is a shadcn/ui theme built around a green primary color (#b7d7a7) with muted light green accents (#ccd7c6). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the green primary (#b7d7a7) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #020302black |
| Foreground | #0a1504black | #ffffffwhite |
| Card | #f9fcf8mintcream | #020302black |
| Card foreground | #0a1504black | #ffffffwhite |
| Popover | #f9fcf8mintcream | #020302black |
| Popover foreground | #0a1504black | #ffffffwhite |
| Primary | #b7d7a7silver | #b7d7a7silver |
| Primary foreground | #213518darkgreen | #213518darkgreen |
| Secondary | #dde0dcgainsboro | #262726darkslategray |
| Secondary foreground | #434a40darkslategray | #bfc0bfsilver |
| Muted | #dfe4ddgainsboro | #1d221bblack |
| Muted foreground | #666666dimgray | #999999darkgray |
| Accent | #ccd7c6lightgrey | #3b4338darkslategray |
| Accent foreground | #333f2cdarkslategray | #d5dad3lightgrey |
| Destructive | #9f3004saddlebrown | #fa6f38tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b7d7a7silver | #b7d7a7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.12:1 | AAA |
| Text on card | 18.12:1 | AAA |
| Primary button | 8.40:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 4.44:1 | AA Large |
| Accent | 7.45:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 8.40:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.25:1 | AAA |
| Destructive | 7.39:1 | AAA |
Paste this into your globals.css to use Trusty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 134.861);
--foreground: oklch(0.18 0.038 134.938);
--muted: oklch(0.913 0.01 134.883);
--muted-foreground: oklch(0.51 0 171.87);
--popover: oklch(0.988 0.007 134.861);
--popover-foreground: oklch(0.18 0.038 134.938);
--card: oklch(0.988 0.007 134.861);
--card-foreground: oklch(0.18 0.038 134.938);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.844 0.074 135.296);
--primary-foreground: oklch(0.303 0.055 136.015);
--secondary: oklch(0.904 0.007 134.866);
--secondary-foreground: oklch(0.399 0.018 135.056);
--accent: oklch(0.866 0.025 134.974);
--accent-foreground: oklch(0.35 0.035 135.366);
--destructive: oklch(0.473 0.154 37.548);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.844 0.074 135.296);
--chart-1: oklch(0.844 0.074 135.296);
--chart-2: oklch(0.904 0.007 134.866);
--chart-3: oklch(0.866 0.025 134.974);
--chart-4: oklch(0.926 0.005 134.856);
--chart-5: oklch(0.848 0.08 135.335);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.009 133.922);
--foreground: oklch(1 0 180);
--muted: oklch(0.245 0.014 135.124);
--muted-foreground: oklch(0.683 0 180);
--popover: oklch(0.096 0.009 133.922);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.096 0.009 133.922);
--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.844 0.074 135.296);
--primary-foreground: oklch(0.303 0.055 136.015);
--secondary: oklch(0.27 0.002 134.856);
--secondary-foreground: oklch(0.806 0.002 134.839);
--accent: oklch(0.371 0.021 135.115);
--accent-foreground: oklch(0.882 0.011 134.89);
--destructive: oklch(0.703 0.183 40.588);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.844 0.074 135.296);
--chart-1: oklch(0.844 0.074 135.296);
--chart-2: oklch(0.27 0.002 134.856);
--chart-3: oklch(0.371 0.021 135.115);
--chart-4: oklch(0.302 0.002 134.857);
--chart-5: oklch(0.848 0.08 135.335);
}