Tough is a shadcn/ui theme built around a purple primary color (#b861c2) with muted light purple accents (#dac6dc). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#b861c2) on a purple-tinted background (#0f0410).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0f0410black |
| Foreground | #100212black | #fdfcfdwhite |
| Card | #fefbfewhite | #0f0410black |
| Card foreground | #100212black | #fdfcfdwhite |
| Popover | #fefbfewhite | #0f0410black |
| Popover foreground | #100212black | #fdfcfdwhite |
| Primary | #b861c2mediumorchid | #b861c2mediumorchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #ebe4eclavender | #1f191fblack |
| Secondary foreground | #5a425cdimgray | #bcadbdsilver |
| Muted | #e3cbe6gainsboro | #311934darkslategray |
| Muted foreground | #584f59dimgray | #afa6b0darkgray |
| Accent | #dac6dcthistle | #3e2b40darkslategray |
| Accent foreground | #432b46darkslategray | #d6c5d8thistle |
| Destructive | #6c0404maroon | #f00a0ared |
| Destructive foreground | #fba7a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b861c2mediumorchid | #b861c2mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 5.52:1 | AA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 5.52:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use Tough in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 322.645);
--foreground: oklch(0.134 0.045 324.297);
--muted: oklch(0.871 0.045 322.829);
--muted-foreground: oklch(0.44 0.02 322.806);
--popover: oklch(0.991 0.004 322.645);
--popover-foreground: oklch(0.134 0.045 324.297);
--card: oklch(0.991 0.004 322.645);
--card-foreground: oklch(0.134 0.045 324.297);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.63 0.166 323.481);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.927 0.013 322.682);
--secondary-foreground: oklch(0.414 0.054 323.111);
--accent: oklch(0.85 0.037 322.799);
--accent-foreground: oklch(0.328 0.056 323.246);
--destructive: oklch(0.336 0.133 28.522);
--destructive-foreground: oklch(0.811 0.1 19.475);
--ring: oklch(0.63 0.166 323.481);
--chart-1: oklch(0.63 0.166 323.481);
--chart-2: oklch(0.927 0.013 322.682);
--chart-3: oklch(0.85 0.037 322.799);
--chart-4: oklch(0.952 0.009 322.663);
--chart-5: oklch(0.63 0.176 323.511);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.034 323.895);
--foreground: oklch(0.992 0.002 322.633);
--muted: oklch(0.258 0.058 323.398);
--muted-foreground: oklch(0.735 0.018 322.722);
--popover: oklch(0.136 0.034 323.895);
--popover-foreground: oklch(0.992 0.002 322.633);
--card: oklch(0.136 0.034 323.895);
--card-foreground: oklch(0.992 0.002 322.633);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.63 0.166 323.481);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.222 0.014 322.881);
--secondary-foreground: oklch(0.765 0.028 322.772);
--accent: oklch(0.32 0.043 323.129);
--accent-foreground: oklch(0.844 0.031 322.773);
--destructive: oklch(0.602 0.244 28.953);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.63 0.166 323.481);
--chart-1: oklch(0.63 0.166 323.481);
--chart-2: oklch(0.222 0.014 322.881);
--chart-3: oklch(0.32 0.043 323.129);
--chart-4: oklch(0.254 0.018 322.9);
--chart-5: oklch(0.63 0.176 323.511);
}