Dishonest is a shadcn/ui theme built around a muted green primary color (#b9c2b2) with neutral gray accents (#d1d2d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#b9c2b2) on a green-tinted background (#0a0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0e06black |
| Foreground | #020401black | #fafbf9snow |
| Card | #ffffffwhite | #0a0e06black |
| Card foreground | #020401black | #fafbf9snow |
| Popover | #ffffffwhite | #0a0e06black |
| Popover foreground | #020401black | #fafbf9snow |
| Primary | #b9c2b2silver | #b9c2b2silver |
| Primary foreground | #20251dblack | #20251dblack |
| Secondary | #d1d2d0lightgrey | #171717black |
| Secondary foreground | #383a36darkslategray | #b0b0b0darkgray |
| Muted | #e7ede3beige | #1c1212black |
| Muted foreground | #414b3adarkslategray | #c5b4b4silver |
| Accent | #d1d2d0lightgrey | #171717black |
| Accent foreground | #383a36darkslategray | #b0b0b0darkgray |
| Destructive | #cf3307firebrick | #f75022orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b9c2b2silver | #b9c2b2silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 8.52:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 18.74:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 8.52:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 9.21:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Dishonest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.016 130.325);
--muted: oklch(0.938 0.013 131.842);
--muted-foreground: oklch(0.398 0.031 132.393);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.016 130.325);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.016 130.325);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.803 0.025 131.983);
--primary-foreground: oklch(0.257 0.016 132.25);
--secondary: oklch(0.863 0.004 131.763);
--secondary-foreground: oklch(0.345 0.006 131.875);
--accent: oklch(0.863 0.004 131.763);
--accent-foreground: oklch(0.345 0.006 131.875);
--destructive: oklch(0.561 0.198 34.007);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.803 0.025 131.983);
--chart-1: oklch(0.803 0.025 131.983);
--chart-2: oklch(0.863 0.004 131.763);
--chart-3: oklch(0.863 0.004 131.763);
--chart-4: oklch(0.886 0.003 131.756);
--chart-5: oklch(0.807 0.031 132.047);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.019 131.589);
--foreground: oklch(0.986 0.003 131.75);
--muted: oklch(0.196 0.015 18.55);
--muted-foreground: oklch(0.785 0.02 17.581);
--popover: oklch(0.157 0.019 131.589);
--popover-foreground: oklch(0.986 0.003 131.75);
--card: oklch(0.157 0.019 131.589);
--card-foreground: oklch(0.986 0.003 131.75);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.803 0.025 131.983);
--primary-foreground: oklch(0.257 0.016 132.25);
--secondary: oklch(0.204 0 180);
--secondary-foreground: oklch(0.757 0 180);
--accent: oklch(0.204 0 180);
--accent-foreground: oklch(0.757 0 180);
--destructive: oklch(0.658 0.211 35.337);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.803 0.025 131.983);
--chart-1: oklch(0.803 0.025 131.983);
--chart-2: oklch(0.204 0 180);
--chart-3: oklch(0.204 0 180);
--chart-4: oklch(0.238 0 161.565);
--chart-5: oklch(0.807 0.031 132.047);
}