Wreck is a shadcn/ui theme built around a muted green primary color (#526b5e) with neutral gray accents (#d2d5d4). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the muted green primary (#526b5e) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #020805black |
| Foreground | #05150cblack | #f5faf7whitesmoke |
| Card | #f8fcfamintcream | #020805black |
| Card foreground | #05150cblack | #f5faf7whitesmoke |
| Popover | #f8fcfamintcream | #020805black |
| Popover foreground | #05150cblack | #f5faf7whitesmoke |
| Primary | #526b5edimgray | #526b5edimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d2d5d4lightgrey | #151917black |
| Secondary foreground | #383d3bdarkslategray | #a9b7b0darkgray |
| Muted | #eef7f2whitesmoke | #08110dblack |
| Muted foreground | #4a5951darkslategray | #a6b5addarkgray |
| Accent | #d2d5d4lightgrey | #151917black |
| Accent foreground | #383d3bdarkslategray | #a9b7b0darkgray |
| Destructive | #761904maroon | #e73108orangered |
| Destructive foreground | #fcbeb0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #526b5edimgray | #526b5edimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.09:1 | AAA |
| Text on card | 18.09:1 | AAA |
| Primary button | 5.82:1 | AA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 5.82:1 | AA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 8.95:1 | AAA |
| Accent | 8.52:1 | AAA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Wreck in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 164.176);
--foreground: oklch(0.177 0.029 160.286);
--muted: oklch(0.967 0.011 163.985);
--muted-foreground: oklch(0.449 0.022 162.954);
--popover: oklch(0.987 0.004 164.176);
--popover-foreground: oklch(0.177 0.029 160.286);
--card: oklch(0.987 0.004 164.176);
--card-foreground: oklch(0.177 0.029 160.286);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.503 0.035 162.322);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.871 0.004 164.153);
--secondary-foreground: oklch(0.355 0.008 163.727);
--accent: oklch(0.871 0.004 164.153);
--accent-foreground: oklch(0.355 0.008 163.727);
--destructive: oklch(0.373 0.13 33.548);
--destructive-foreground: oklch(0.855 0.075 32.95);
--ring: oklch(0.503 0.035 162.322);
--chart-1: oklch(0.503 0.035 162.322);
--chart-2: oklch(0.871 0.004 164.153);
--chart-3: oklch(0.871 0.004 164.153);
--chart-4: oklch(0.894 0.004 164.18);
--chart-5: oklch(0.508 0.043 161.868);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 164.39);
--foreground: oklch(0.981 0.007 164.099);
--muted: oklch(0.168 0.017 161.623);
--muted-foreground: oklch(0.759 0.02 163.607);
--popover: oklch(0.123 0.016 164.39);
--popover-foreground: oklch(0.981 0.007 164.099);
--card: oklch(0.123 0.016 164.39);
--card-foreground: oklch(0.981 0.007 164.099);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.503 0.035 162.322);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.208 0.008 163.318);
--secondary-foreground: oklch(0.766 0.019 163.638);
--accent: oklch(0.208 0.008 163.318);
--accent-foreground: oklch(0.766 0.019 163.638);
--destructive: oklch(0.603 0.221 32.628);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.035 162.322);
--chart-1: oklch(0.503 0.035 162.322);
--chart-2: oklch(0.208 0.008 163.318);
--chart-3: oklch(0.208 0.008 163.318);
--chart-4: oklch(0.243 0.01 163.216);
--chart-5: oklch(0.508 0.043 161.868);
}