Tough is a shadcn/ui theme built around a light red primary color (#f7dee3) with light blue accents (#dee3f7). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the light red primary (#f7dee3) on a neutral background (#080203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #080203black |
| Foreground | #110306black | #f8f7f7whitesmoke |
| Card | #fdf7f8snow | #080203black |
| Card foreground | #110306black | #f8f7f7whitesmoke |
| Popover | #fdf7f8snow | #080203black |
| Popover foreground | #110306black | #f8f7f7whitesmoke |
| Primary | #f7dee3mistyrose | #f7dee3mistyrose |
| Primary foreground | #841f32brown | #841f32brown |
| Secondary | #e3f7debeige | #e3f7debeige |
| Secondary foreground | #13320cblack | #13320cblack |
| Muted | #ecefebwhitesmoke | #101410black |
| Muted foreground | #41523ddarkslategray | #b1c2adsilver |
| Accent | #dee3f7lavender | #dee3f7lavender |
| Accent foreground | #1f3284midnightblue | #1f3284midnightblue |
| Destructive | #79300bsaddlebrown | #ed763btomato |
| Destructive foreground | #f9d1bepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7dee3mistyrose | #f7dee3mistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 12.51:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 8.87:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 12.51:1 | AAA |
| Muted text | 9.90:1 | AAA |
| Accent | 8.87:1 | AAA |
| Destructive | 7.26:1 | AAA |
Paste this into your globals.css to use Tough in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 4.481);
--foreground: oklch(0.131 0.03 6.349);
--muted: oklch(0.949 0.007 139.985);
--muted-foreground: oklch(0.417 0.041 139.916);
--popover: oklch(0.981 0.006 4.481);
--popover-foreground: oklch(0.131 0.03 6.349);
--card: oklch(0.981 0.006 4.481);
--card-foreground: oklch(0.131 0.03 6.349);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.922 0.028 5.121);
--primary-foreground: oklch(0.411 0.135 15.399);
--secondary: oklch(0.955 0.04 139.954);
--secondary-foreground: oklch(0.282 0.073 140.179);
--accent: oklch(0.917 0.029 275.74);
--accent-foreground: oklch(0.357 0.14 268.482);
--destructive: oklch(0.408 0.112 42.863);
--destructive-foreground: oklch(0.891 0.052 48.114);
--ring: oklch(0.922 0.028 5.121);
--chart-1: oklch(0.922 0.028 5.121);
--chart-2: oklch(0.955 0.04 139.954);
--chart-3: oklch(0.917 0.029 275.74);
--chart-4: oklch(0.972 0.025 139.968);
--chart-5: oklch(0.922 0.03 5.161);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.019 4.746);
--foreground: oklch(0.976 0.002 4.362);
--muted: oklch(0.186 0.01 139.944);
--muted-foreground: oklch(0.796 0.035 139.952);
--popover: oklch(0.104 0.019 4.746);
--popover-foreground: oklch(0.976 0.002 4.362);
--card: oklch(0.104 0.019 4.746);
--card-foreground: oklch(0.976 0.002 4.362);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.922 0.028 5.121);
--primary-foreground: oklch(0.411 0.135 15.399);
--secondary: oklch(0.955 0.04 139.954);
--secondary-foreground: oklch(0.282 0.073 140.179);
--accent: oklch(0.917 0.029 275.74);
--accent-foreground: oklch(0.357 0.14 268.482);
--destructive: oklch(0.695 0.163 44.96);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.922 0.028 5.121);
--chart-1: oklch(0.922 0.028 5.121);
--chart-2: oklch(0.955 0.04 139.954);
--chart-3: oklch(0.917 0.029 275.74);
--chart-4: oklch(0.972 0.025 139.968);
--chart-5: oklch(0.922 0.03 5.161);
}