True is a shadcn/ui theme built around a muted orange primary color (#624e3c) with muted violet accents (#4e3c62). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#624e3c) on an orange-tinted background (#0c0703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0703black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #100a04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #100a04black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #624e3cdarkolivegreen | #624e3cdarkolivegreen |
| Primary foreground | #eee8e3linen | #eee8e3linen |
| Secondary | #3c624edarkslategray | #3c624edarkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dae7e0gainsboro | #18251eblack |
| Muted foreground | #47524cdarkslategray | #adb8b2darkgray |
| Accent | #4e3c62darkslategray | #4e3c62darkslategray |
| Accent foreground | #e8e3eelavender | #e8e3eelavender |
| Destructive | #cb510bchocolate | #e95d0cchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #624e3cdarkolivegreen | #624e3cdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.88:1 | AA |
| Muted text | 6.39:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 4.42:1 | AA Large |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.88:1 | AA |
| Muted text | 7.74:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use True in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.017 162.961);
--muted-foreground: oklch(0.427 0.017 162.43);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.439 0.039 62.732);
--primary-foreground: oklch(0.933 0.009 63.961);
--secondary: oklch(0.461 0.055 159.944);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.392 0.066 304.984);
--accent-foreground: oklch(0.922 0.016 306.903);
--destructive: oklch(0.589 0.17 43.199);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.039 62.732);
--chart-1: oklch(0.439 0.039 62.732);
--chart-2: oklch(0.461 0.055 159.944);
--chart-3: oklch(0.392 0.066 304.984);
--chart-4: oklch(0.492 0.059 159.897);
--chart-5: oklch(0.441 0.044 62.512);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.016 72.188);
--foreground: oklch(0.993 0.001 64.078);
--muted: oklch(0.251 0.023 160.853);
--muted-foreground: oklch(0.772 0.014 162.968);
--popover: oklch(0.15 0.018 68.743);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.018 68.743);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.439 0.039 62.732);
--primary-foreground: oklch(0.933 0.009 63.961);
--secondary: oklch(0.461 0.055 159.944);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.392 0.066 304.984);
--accent-foreground: oklch(0.922 0.016 306.903);
--destructive: oklch(0.65 0.189 42.942);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.039 62.732);
--chart-1: oklch(0.439 0.039 62.732);
--chart-2: oklch(0.461 0.055 159.944);
--chart-3: oklch(0.392 0.066 304.984);
--chart-4: oklch(0.492 0.059 159.897);
--chart-5: oklch(0.441 0.044 62.512);
}