Wrench is a shadcn/ui theme built around a vivid yellow primary color (#deb202) with muted light yellow accents (#d4d2c9). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the vivid yellow primary (#deb202) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #070603black |
| Foreground | #080702black | #fdfdfcwhite |
| Card | #fbfaf3floralwhite | #0b0905black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fdfbf7snow | #070603black |
| Popover foreground | #080702black | #fdfdfcwhite |
| Primary | #deb202goldenrod | #deb202goldenrod |
| Primary foreground | #141000black | #141000black |
| Secondary | #e4e4e2gainsboro | #1e1c15black |
| Secondary foreground | #4e4c46darkslategray | #c0baa5silver |
| Muted | #efece1beige | #1e1b10black |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #d4d2c9lightgrey | #373220darkslategray |
| Accent foreground | #3c392fdarkslategray | #d4cdb5silver |
| Destructive | #7e260csaddlebrown | #eb5224chocolate |
| Destructive foreground | #f9cfc2peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #deb202goldenrod | #deb202goldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 9.50:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 8.10:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 9.50:1 | AAA |
| Secondary button | 8.76:1 | AAA |
| Muted text | 8.88:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Wrench in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 95.102);
--foreground: oklch(0.127 0.017 99.623);
--muted: oklch(0.942 0.014 95.209);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(0.989 0.006 95.102);
--popover-foreground: oklch(0.127 0.017 99.623);
--card: oklch(0.984 0.009 95.136);
--card-foreground: oklch(0.101 0.013 99.623);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.781 0.159 90.756);
--primary-foreground: oklch(0.174 0.035 98.664);
--secondary: oklch(0.918 0.003 95.074);
--secondary-foreground: oklch(0.417 0.01 95.297);
--accent: oklch(0.863 0.013 95.205);
--accent-foreground: oklch(0.345 0.018 95.548);
--destructive: oklch(0.403 0.126 36.249);
--destructive-foreground: oklch(0.888 0.051 37.593);
--ring: oklch(0.781 0.159 90.756);
--chart-1: oklch(0.781 0.159 90.756);
--chart-2: oklch(0.918 0.003 95.074);
--chart-3: oklch(0.863 0.013 95.205);
--chart-4: oklch(0.941 0.002 95.062);
--chart-5: oklch(0.789 0.161 90.447);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 98.106);
--foreground: oklch(0.994 0.002 95.056);
--muted: oklch(0.221 0.02 95.766);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0.123 0.011 98.106);
--popover-foreground: oklch(0.994 0.002 95.056);
--card: oklch(0.141 0.012 98.059);
--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.781 0.159 90.756);
--primary-foreground: oklch(0.174 0.035 98.664);
--secondary: oklch(0.226 0.013 95.602);
--secondary-foreground: oklch(0.788 0.029 95.429);
--accent: oklch(0.317 0.03 95.782);
--accent-foreground: oklch(0.848 0.034 95.452);
--destructive: oklch(0.641 0.197 36.464);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0.159 90.756);
--chart-1: oklch(0.781 0.159 90.756);
--chart-2: oklch(0.226 0.013 95.602);
--chart-3: oklch(0.317 0.03 95.782);
--chart-4: oklch(0.262 0.016 95.634);
--chart-5: oklch(0.789 0.161 90.447);
}