Wiry is a shadcn/ui theme built around a near-black primary color (#161519) with muted indigo accents (#b4b1c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#161519) on an indigo-tinted background (#05040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05040bblack |
| Foreground | #06050fblack | #f6f5f9whitesmoke |
| Card | #ffffffwhite | #05040bblack |
| Card foreground | #06050fblack | #f6f5f9whitesmoke |
| Popover | #ffffffwhite | #05040bblack |
| Popover foreground | #06050fblack | #f6f5f9whitesmoke |
| Primary | #161519black | #161519black |
| Primary foreground | #acaab5darkgray | #acaab5darkgray |
| Secondary | #d1d0d8lightgrey | #2e2e33darkslategray |
| Secondary foreground | #373540darkslategray | #c7c6cdsilver |
| Muted | #d9d8dfgainsboro | #212027black |
| Muted foreground | #46435bdarkslategray | #a7a4bcdarkgray |
| Accent | #b4b1c9silver | #413f50darkslategray |
| Accent foreground | #1f1d2ablack | #dedde4gainsboro |
| Destructive | #981701darkred | #f42601orangered |
| Destructive foreground | #ffd4ccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #161519black | #161519black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 7.60:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Wiry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.025 289.107);
--muted: oklch(0.884 0.01 291.572);
--muted-foreground: oklch(0.396 0.04 289.798);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.025 289.107);
--card: oklch(1 0 180);
--card-foreground: oklch(0.125 0.025 289.107);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.199 0.006 291.169);
--primary-foreground: oklch(0.744 0.016 291.377);
--secondary: oklch(0.86 0.011 291.544);
--secondary-foreground: oklch(0.336 0.018 290.723);
--accent: oklch(0.77 0.034 290.937);
--accent-foreground: oklch(0.24 0.024 289.765);
--destructive: oklch(0.438 0.165 31.958);
--destructive-foreground: oklch(0.904 0.05 29.762);
--ring: oklch(0.199 0.006 291.169);
--chart-1: oklch(0.199 0.006 291.169);
--chart-2: oklch(0.86 0.011 291.544);
--chart-3: oklch(0.77 0.034 290.937);
--chart-4: oklch(0.885 0.009 291.593);
--chart-5: oklch(0.197 0.009 290.888);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.019 290.074);
--foreground: oklch(0.973 0.005 291.677);
--muted: oklch(0.248 0.013 290.736);
--muted-foreground: oklch(0.729 0.034 290.883);
--popover: oklch(0.116 0.019 290.074);
--popover-foreground: oklch(0.973 0.005 291.677);
--card: oklch(0.116 0.019 290.074);
--card-foreground: oklch(0.973 0.005 291.677);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.199 0.006 291.169);
--primary-foreground: oklch(0.744 0.016 291.377);
--secondary: oklch(0.302 0.01 291.124);
--secondary-foreground: oklch(0.83 0.009 291.577);
--accent: oklch(0.376 0.029 290.271);
--accent-foreground: oklch(0.9 0.01 291.57);
--destructive: oklch(0.618 0.238 31.298);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.199 0.006 291.169);
--chart-1: oklch(0.199 0.006 291.169);
--chart-2: oklch(0.302 0.01 291.124);
--chart-3: oklch(0.376 0.029 290.271);
--chart-4: oklch(0.331 0.012 291.102);
--chart-5: oklch(0.197 0.009 290.888);
}