Trustworthy is a shadcn/ui theme built around a vivid deep pink primary color (#2e0511) with vivid deep teal accents (#052e22). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#2e0511) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #160309black | #fdfcfcsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #160309black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #160309black | #fdfcfcsnow |
| Primary | #2e0511black | #2e0511black |
| Primary foreground | #f0759apalevioletred | #f0759apalevioletred |
| Secondary | #052e22black | #052e22black |
| Secondary foreground | #1ae6a8mediumspringgreen | #1ae6a8mediumspringgreen |
| Muted | #e3edealavender | #121c19black |
| Muted foreground | #4c5250darkslategray | #adb3b1darkgray |
| Accent | #052e22black | #052e22black |
| Accent foreground | #1ae6a8mediumspringgreen | #1ae6a8mediumspringgreen |
| Destructive | #bd4805chocolate | #fa7c33coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2e0511black | #2e0511black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 9.11:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 9.11:1 | AAA |
| Destructive | 5.12:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 9.11:1 | AAA |
| Muted text | 8.16:1 | AAA |
| Accent | 9.11:1 | AAA |
| Destructive | 7.98: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.143 0.04 0.406);
--muted: oklch(0.938 0.012 176.283);
--muted-foreground: oklch(0.433 0.009 176.065);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.04 0.406);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.04 0.406);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.203 0.067 6.932);
--primary-foreground: oklch(0.715 0.154 2.803);
--secondary: oklch(0.269 0.05 168.285);
--secondary-foreground: oklch(0.82 0.169 164.98);
--accent: oklch(0.269 0.05 168.285);
--accent-foreground: oklch(0.82 0.169 164.98);
--destructive: oklch(0.554 0.163 42.522);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.203 0.067 6.932);
--chart-1: oklch(0.203 0.067 6.932);
--chart-2: oklch(0.269 0.05 168.285);
--chart-3: oklch(0.269 0.05 168.285);
--chart-4: oklch(0.317 0.06 167.417);
--chart-5: oklch(0.203 0.07 7.255);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 356.698);
--muted: oklch(0.216 0.016 174.202);
--muted-foreground: oklch(0.762 0.008 176.366);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 356.698);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 356.698);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.203 0.067 6.932);
--primary-foreground: oklch(0.715 0.154 2.803);
--secondary: oklch(0.269 0.05 168.285);
--secondary-foreground: oklch(0.82 0.169 164.98);
--accent: oklch(0.269 0.05 168.285);
--accent-foreground: oklch(0.82 0.169 164.98);
--destructive: oklch(0.721 0.174 47.031);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.203 0.067 6.932);
--chart-1: oklch(0.203 0.067 6.932);
--chart-2: oklch(0.269 0.05 168.285);
--chart-3: oklch(0.269 0.05 168.285);
--chart-4: oklch(0.317 0.06 167.417);
--chart-5: oklch(0.203 0.07 7.255);
}