Truth is a shadcn/ui theme built around a light orange primary color (#e8d8ba) with muted light orange accents (#ebe9e6). The light mode uses a neutral background (#fcfbf7). Dark mode keeps the light orange primary (#e8d8ba) on an orange-tinted background (#0a0805).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf7snow | #0a0805black |
| Foreground | #130f06black | #f9f8f6whitesmoke |
| Card | #fbf8f4floralwhite | #0e0b06black |
| Card foreground | #100c05black | #fbfaf9snow |
| Popover | #fcfbf7snow | #0a0805black |
| Popover foreground | #130f06black | #f9f8f6whitesmoke |
| Primary | #e8d8bawheat | #e8d8bawheat |
| Primary foreground | #54411cdarkolivegreen | #54411cdarkolivegreen |
| Secondary | #ebe9e6linen | #171512black |
| Secondary foreground | #585246darkolivegreen | #b6b0a4darkgray |
| Muted | #f0e9dbantiquewhite | #241d0fblack |
| Muted foreground | #4c4942darkslategray | #bdb9b3silver |
| Accent | #ebe9e6linen | #171512black |
| Accent foreground | #585246darkolivegreen | #b6b0a4darkgray |
| Destructive | #6b1105maroon | #f4381forangered |
| Destructive foreground | #fbb1a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8d8bawheat | #e8d8bawheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.44:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 6.37:1 | AA |
| Muted text | 7.40:1 | AAA |
| Accent | 6.37:1 | AA |
| Destructive | 6.99:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 8.58:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Truth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 83.059);
--foreground: oklch(0.17 0.019 83.721);
--muted: oklch(0.935 0.019 83.064);
--muted-foreground: oklch(0.406 0.012 83.055);
--popover: oklch(0.988 0.005 83.059);
--popover-foreground: oklch(0.17 0.019 83.721);
--card: oklch(0.981 0.007 83.062);
--card-foreground: oklch(0.155 0.017 85.559);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.888 0.043 82.997);
--primary-foreground: oklch(0.386 0.059 80.957);
--secondary: oklch(0.934 0.005 83.06);
--secondary-foreground: oklch(0.44 0.02 83.014);
--accent: oklch(0.934 0.005 83.06);
--accent-foreground: oklch(0.44 0.02 83.014);
--destructive: oklch(0.343 0.125 31.272);
--destructive-foreground: oklch(0.828 0.088 27.509);
--ring: oklch(0.888 0.043 82.997);
--chart-1: oklch(0.888 0.043 82.997);
--chart-2: oklch(0.934 0.005 83.06);
--chart-3: oklch(0.934 0.005 83.06);
--chart-4: oklch(0.956 0.003 83.058);
--chart-5: oklch(0.889 0.046 82.985);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.01 87.27);
--foreground: oklch(0.979 0.003 83.058);
--muted: oklch(0.233 0.026 82.318);
--muted-foreground: oklch(0.787 0.01 83.065);
--popover: oklch(0.138 0.01 87.27);
--popover-foreground: oklch(0.979 0.003 83.058);
--card: oklch(0.153 0.012 84.769);
--card-foreground: oklch(0.986 0.002 83.057);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.888 0.043 82.997);
--primary-foreground: oklch(0.386 0.059 80.957);
--secondary: oklch(0.197 0.006 83.05);
--secondary-foreground: oklch(0.759 0.018 83.061);
--accent: oklch(0.197 0.006 83.05);
--accent-foreground: oklch(0.759 0.018 83.061);
--destructive: oklch(0.632 0.227 31.04);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.043 82.997);
--chart-1: oklch(0.888 0.043 82.997);
--chart-2: oklch(0.197 0.006 83.05);
--chart-3: oklch(0.197 0.006 83.05);
--chart-4: oklch(0.232 0.008 83.042);
--chart-5: oklch(0.889 0.046 82.985);
}