Truthful is a shadcn/ui theme built around a deep blue primary color (#24364c) with deep indigo accents (#26244c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#24364c) on a blue-tinted background (#04070b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04070bblack |
| Foreground | #040c15black | #fcfcfdwhite |
| Card | #ffffffwhite | #04070bblack |
| Card foreground | #040c15black | #fcfcfdwhite |
| Popover | #ffffffwhite | #04070bblack |
| Popover foreground | #040c15black | #fcfcfdwhite |
| Primary | #24364cdarkslategray | #24364cdarkslategray |
| Primary foreground | #c1cfe1lightsteelblue | #c1cfe1lightsteelblue |
| Secondary | #244a4cdarkslategray | #244a4cdarkslategray |
| Secondary foreground | #c1e0e1powderblue | #c1e0e1powderblue |
| Muted | #f2f3f3whitesmoke | #0c0d0dblack |
| Muted foreground | #3f4040darkslategray | #bfc0c0silver |
| Accent | #26244cmidnightblue | #26244cmidnightblue |
| Accent foreground | #c3c1e1lightsteelblue | #c3c1e1lightsteelblue |
| Destructive | #b91904firebrick | #fa2b0forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #24364cdarkslategray | #24364cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 9.33:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 10.65:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Truthful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.024 250.531);
--muted: oklch(0.963 0.001 200.873);
--muted-foreground: oklch(0.372 0.002 200.835);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.024 250.531);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.024 250.531);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.328 0.045 253.954);
--primary-foreground: oklch(0.851 0.029 253.429);
--secondary: oklch(0.382 0.043 199.981);
--secondary-foreground: oklch(0.884 0.032 200.476);
--accent: oklch(0.286 0.07 283.285);
--accent-foreground: oklch(0.823 0.045 287.664);
--destructive: oklch(0.502 0.194 30.828);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.328 0.045 253.954);
--chart-1: oklch(0.328 0.045 253.954);
--chart-2: oklch(0.382 0.043 199.981);
--chart-3: oklch(0.286 0.07 283.285);
--chart-4: oklch(0.416 0.047 199.98);
--chart-5: oklch(0.328 0.049 254.03);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.012 246.576);
--foreground: oklch(0.992 0.001 253.227);
--muted: oklch(0.159 0.002 200.737);
--muted-foreground: oklch(0.806 0.001 200.869);
--popover: oklch(0.127 0.012 246.576);
--popover-foreground: oklch(0.992 0.001 253.227);
--card: oklch(0.127 0.012 246.576);
--card-foreground: oklch(0.992 0.001 253.227);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.328 0.045 253.954);
--primary-foreground: oklch(0.851 0.029 253.429);
--secondary: oklch(0.382 0.043 199.981);
--secondary-foreground: oklch(0.884 0.032 200.476);
--accent: oklch(0.286 0.07 283.285);
--accent-foreground: oklch(0.823 0.045 287.664);
--destructive: oklch(0.633 0.241 30.843);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.328 0.045 253.954);
--chart-1: oklch(0.328 0.045 253.954);
--chart-2: oklch(0.382 0.043 199.981);
--chart-3: oklch(0.286 0.07 283.285);
--chart-4: oklch(0.416 0.047 199.98);
--chart-5: oklch(0.328 0.049 254.03);
}