Truthful is a shadcn/ui theme built around a near-white primary color (#fdfcfc) with near-white accents (#fdfcfc). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the near-white primary (#fdfcfc) on a red-tinted background (#100407).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #100407black |
| Foreground | #090103black | #fdfcfcsnow |
| Card | #fcf8f9snow | #100407black |
| Card foreground | #090103black | #fdfcfcsnow |
| Popover | #fcf8f9snow | #100407black |
| Popover foreground | #090103black | #fdfcfcsnow |
| Primary | #fdfcfcsnow | #fdfcfcsnow |
| Primary foreground | #72555bdimgray | #72555bdimgray |
| Secondary | #fdfcfdwhite | #fdfcfdwhite |
| Secondary foreground | #72556adimgray | #72556adimgray |
| Muted | #ead2e4gainsboro | #2d1527black |
| Muted foreground | #6a6268dimgray | #9d959bdarkgray |
| Accent | #fdfcfcsnow | #fdfcfcsnow |
| Accent foreground | #725c55dimgray | #725c55dimgray |
| Destructive | #8c1e03darkred | #fb4e23orangered |
| Destructive foreground | #fecfc3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdfcfcsnow | #fdfcfcsnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.36:1 | AA |
| Muted text | 4.15:1 | AA Large |
| Accent | 6.07:1 | AA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.36:1 | AA |
| Muted text | 5.76:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Truthful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 1.083);
--foreground: oklch(0.1 0.027 0.993);
--muted: oklch(0.888 0.036 335.223);
--muted-foreground: oklch(0.505 0.014 334.999);
--popover: oklch(0.982 0.004 1.083);
--popover-foreground: oklch(0.1 0.027 0.993);
--card: oklch(0.982 0.004 1.083);
--card-foreground: oklch(0.1 0.027 0.993);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.992 0.001 0.984);
--primary-foreground: oklch(0.481 0.041 3.252);
--secondary: oklch(0.992 0.001 334.547);
--secondary-foreground: oklch(0.487 0.051 336.262);
--accent: oklch(0.992 0.001 41.299);
--accent-foreground: oklch(0.496 0.031 40.956);
--destructive: oklch(0.42 0.149 33.829);
--destructive-foreground: oklch(0.891 0.056 34.37);
--ring: oklch(0.992 0.001 0.984);
--chart-1: oklch(0.992 0.001 0.984);
--chart-2: oklch(0.992 0.001 334.547);
--chart-3: oklch(0.992 0.001 41.299);
--chart-4: oklch(1.016 0.002 154.49);
--chart-5: oklch(0.992 0.001 0.989);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.026 2.497);
--foreground: oklch(0.992 0.001 0.999);
--muted: oklch(0.238 0.049 337.866);
--muted-foreground: oklch(0.678 0.013 334.855);
--popover: oklch(0.133 0.026 2.497);
--popover-foreground: oklch(0.992 0.001 0.999);
--card: oklch(0.133 0.026 2.497);
--card-foreground: oklch(0.992 0.001 0.999);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.992 0.001 0.984);
--primary-foreground: oklch(0.481 0.041 3.252);
--secondary: oklch(0.992 0.001 334.547);
--secondary-foreground: oklch(0.487 0.051 336.262);
--accent: oklch(0.992 0.001 41.299);
--accent-foreground: oklch(0.496 0.031 40.956);
--destructive: oklch(0.663 0.215 34.533);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.992 0.001 0.984);
--chart-1: oklch(0.992 0.001 0.984);
--chart-2: oklch(0.992 0.001 334.547);
--chart-3: oklch(0.992 0.001 41.299);
--chart-4: oklch(1.016 0.002 154.49);
--chart-5: oklch(0.992 0.001 0.989);
}