Misreading is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#d4bfbf). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #0a0505black |
| Foreground | #000000black | #fcf8f8snow |
| Card | #fdf7f7snow | #0a0505black |
| Card foreground | #000000black | #fcf8f8snow |
| Popover | #fdf7f7snow | #0a0505black |
| Popover foreground | #000000black | #fcf8f8snow |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #e0d7d7gainsboro | #1a1414black |
| Secondary foreground | #4a3a3adarkslategray | #bca4a4darkgray |
| Muted | #f1e9e9linen | #160e0eblack |
| Muted foreground | #5f4949darkolivegreen | #b6a0a0darkgray |
| Accent | #d4bfbfsilver | #342323darkslategray |
| Accent foreground | #3a2727darkslategray | #d0b9b9silver |
| Destructive | #c2290afirebrick | #f4502ftomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Misreading in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 17.257);
--foreground: oklch(0 0 0);
--muted: oklch(0.941 0.008 17.301);
--muted-foreground: oklch(0.429 0.03 18.385);
--popover: oklch(0.981 0.006 17.257);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 17.257);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.886 0.009 17.335);
--secondary-foreground: oklch(0.367 0.023 18.229);
--accent: oklch(0.823 0.023 17.631);
--accent-foreground: oklch(0.296 0.028 18.864);
--destructive: oklch(0.529 0.192 32.395);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.886 0.009 17.335);
--chart-3: oklch(0.823 0.023 17.631);
--chart-4: oklch(0.911 0.007 17.291);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.012 18.852);
--foreground: oklch(0.982 0.004 17.226);
--muted: oklch(0.174 0.013 18.464);
--muted-foreground: oklch(0.725 0.026 17.762);
--popover: oklch(0.125 0.012 18.852);
--popover-foreground: oklch(0.982 0.004 17.226);
--card: oklch(0.125 0.012 18.852);
--card-foreground: oklch(0.982 0.004 17.226);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.198 0.011 18.156);
--secondary-foreground: oklch(0.74 0.028 17.798);
--accent: oklch(0.276 0.027 18.916);
--accent-foreground: oklch(0.804 0.027 17.724);
--destructive: oklch(0.654 0.206 33.181);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.198 0.011 18.156);
--chart-3: oklch(0.276 0.027 18.916);
--chart-4: oklch(0.229 0.015 18.277);
--chart-5: oklch(1 0 180);
}