Misguided is a shadcn/ui theme built around a muted deep red primary color (#3d3533) with muted deep yellow accents (#3d3a33). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#3d3533) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040201black |
| Foreground | #050101black | #fdfcfcsnow |
| Card | #ffffffwhite | #040201black |
| Card foreground | #050101black | #fdfcfcsnow |
| Popover | #ffffffwhite | #040201black |
| Popover foreground | #050101black | #fdfcfcsnow |
| Primary | #3d3533darkslategray | #3d3533darkslategray |
| Primary foreground | #d5cfcdlightgrey | #d5cfcdlightgrey |
| Secondary | #3d3336darkslategray | #3d3336darkslategray |
| Secondary foreground | #d5cdcflightgrey | #d5cdcflightgrey |
| Muted | #e8dee1gainsboro | #21171ablack |
| Muted foreground | #6c6063dimgray | #9f9396rosybrown |
| Accent | #3d3a33darkslategray | #3d3a33darkslategray |
| Accent foreground | #d5d3cdlightgrey | #d5d3cdlightgrey |
| Destructive | #642807maroon | #ee6217chocolate |
| Destructive foreground | #f8c2a5navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3d3533darkslategray | #3d3533darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 4.56:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 7.19:1 | AAA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.37:1 | AA |
Paste this into your globals.css to use Misguided in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.087 0.016 49.642);
--muted: oklch(0.909 0.012 359.145);
--muted-foreground: oklch(0.501 0.016 359.701);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.087 0.016 49.642);
--card: oklch(1 0 180);
--card-foreground: oklch(0.087 0.016 49.642);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.338 0.012 37.619);
--primary-foreground: oklch(0.859 0.008 37.7);
--secondary: oklch(0.333 0.015 0.043);
--secondary-foreground: oklch(0.855 0.01 359.103);
--accent: oklch(0.35 0.013 90.354);
--accent-foreground: oklch(0.867 0.009 90.195);
--destructive: oklch(0.357 0.096 44.299);
--destructive-foreground: oklch(0.855 0.074 49.647);
--ring: oklch(0.338 0.012 37.619);
--chart-1: oklch(0.338 0.012 37.619);
--chart-2: oklch(0.333 0.015 0.043);
--chart-3: oklch(0.35 0.013 90.354);
--chart-4: oklch(0.362 0.017 0.075);
--chart-5: oklch(0.337 0.016 37.601);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.011 44.944);
--foreground: oklch(0.992 0.001 37.736);
--muted: oklch(0.218 0.017 0.915);
--muted-foreground: oklch(0.674 0.015 359.418);
--popover: oklch(0.088 0.011 44.944);
--popover-foreground: oklch(0.992 0.001 37.736);
--card: oklch(0.088 0.011 44.944);
--card-foreground: oklch(0.992 0.001 37.736);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.338 0.012 37.619);
--primary-foreground: oklch(0.859 0.008 37.7);
--secondary: oklch(0.333 0.015 0.043);
--secondary-foreground: oklch(0.855 0.01 359.103);
--accent: oklch(0.35 0.013 90.354);
--accent-foreground: oklch(0.867 0.009 90.195);
--destructive: oklch(0.664 0.189 42.983);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.338 0.012 37.619);
--chart-1: oklch(0.338 0.012 37.619);
--chart-2: oklch(0.333 0.015 0.043);
--chart-3: oklch(0.35 0.013 90.354);
--chart-4: oklch(0.362 0.017 0.075);
--chart-5: oklch(0.337 0.016 37.601);
}