Trustworthy is a shadcn/ui theme built around a deep green primary color (#0f1b0d) with deep green accents (#0d1b13). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#0f1b0d) on a green-tinted background (#061005).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #061005black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #071406black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #061005black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0f1b0dblack | #0f1b0dblack |
| Primary foreground | #96c992darkseagreen | #96c992darkseagreen |
| Secondary | #161b0dblack | #161b0dblack |
| Secondary foreground | #81a451olivedrab | #81a451olivedrab |
| Muted | #dbe5ccgainsboro | #28331adarkslategray |
| Muted foreground | #667255dimgray | #9eaa8ddarkseagreen |
| Accent | #0d1b13black | #0d1b13black |
| Accent foreground | #92c9a9darkseagreen | #92c9a9darkseagreen |
| Destructive | #ca5216chocolate | #ea7b43coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f1b0dblack | #0f1b0dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 9.33:1 | AAA |
| Secondary button | 6.14:1 | AA |
| Muted text | 3.93:1 | AA Large |
| Accent | 9.39:1 | AAA |
| Destructive | 4.43:1 | AA Large |
| Text on background | 19.40:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 9.33:1 | AAA |
| Secondary button | 6.14:1 | AA |
| Muted text | 5.44:1 | AA |
| Accent | 9.39:1 | AAA |
| Destructive | 7.39:1 | AAA |
Paste this into your globals.css to use Trustworthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.908 0.036 125.594);
--muted-foreground: oklch(0.534 0.047 126.326);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.207 0.032 142.389);
--primary-foreground: oklch(0.786 0.094 142.564);
--secondary: oklch(0.213 0.027 126.971);
--secondary-foreground: oklch(0.674 0.118 127.907);
--accent: oklch(0.208 0.025 157.69);
--accent-foreground: oklch(0.789 0.074 158.571);
--destructive: oklch(0.589 0.166 42.398);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.207 0.032 142.389);
--chart-1: oklch(0.207 0.032 142.389);
--chart-2: oklch(0.213 0.027 126.971);
--chart-3: oklch(0.208 0.025 157.69);
--chart-4: oklch(0.253 0.036 127.2);
--chart-5: oklch(0.208 0.035 142.336);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.03 141.596);
--foreground: oklch(1 0 180);
--muted: oklch(0.303 0.045 127.334);
--muted-foreground: oklch(0.721 0.044 125.916);
--popover: oklch(0.157 0.03 141.596);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.173 0.035 141.746);
--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.207 0.032 142.389);
--primary-foreground: oklch(0.786 0.094 142.564);
--secondary: oklch(0.213 0.027 126.971);
--secondary-foreground: oklch(0.674 0.118 127.907);
--accent: oklch(0.208 0.025 157.69);
--accent-foreground: oklch(0.789 0.074 158.571);
--destructive: oklch(0.698 0.154 45.463);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.207 0.032 142.389);
--chart-1: oklch(0.207 0.032 142.389);
--chart-2: oklch(0.213 0.027 126.971);
--chart-3: oklch(0.208 0.025 157.69);
--chart-4: oklch(0.253 0.036 127.2);
--chart-5: oklch(0.208 0.035 142.336);
}