Misunderstand is a shadcn/ui theme built around a vivid blue primary color (#1b63de) with neutral gray accents (#d4d6d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#1b63de) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040910black | #f6f7f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #03060cblack | #f9fafbghostwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #03060cblack | #f9fafbghostwhite |
| Primary | #1b63deroyalblue | #1b63deroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d4d6d9lightgrey | #29303ddarkslategray |
| Secondary foreground | #3a3c41darkslategray | #c2c9d6lightgrey |
| Muted | #f1f2f4whitesmoke | #0b0c0eblack |
| Muted foreground | #565e6cdimgray | #939ba9darkgray |
| Accent | #d4d6d9lightgrey | #29303ddarkslategray |
| Accent foreground | #3a3c41darkslategray | #c2c9d6lightgrey |
| Destructive | #671804maroon | #ec3609orangered |
| Destructive foreground | #fcb4a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b63deroyalblue | #1b63deroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 5.39:1 | AA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 7.12:1 | AAA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 5.39:1 | AA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Misunderstand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.02 255.556);
--muted: oklch(0.96 0.003 261.514);
--muted-foreground: oklch(0.48 0.024 261.425);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.123 0.017 253.353);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.017 253.353);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.534 0.201 260.839);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.874 0.005 261.513);
--secondary-foreground: oklch(0.356 0.009 261.489);
--accent: oklch(0.874 0.005 261.513);
--accent-foreground: oklch(0.356 0.009 261.489);
--destructive: oklch(0.342 0.116 34.571);
--destructive-foreground: oklch(0.832 0.089 34.557);
--ring: oklch(0.534 0.201 260.839);
--chart-1: oklch(0.534 0.201 260.839);
--chart-2: oklch(0.874 0.005 261.513);
--chart-3: oklch(0.874 0.005 261.513);
--chart-4: oklch(0.898 0.004 261.513);
--chart-5: oklch(0.534 0.208 260.947);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 261.514);
--muted: oklch(0.156 0.004 261.485);
--muted-foreground: oklch(0.688 0.022 261.475);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.984 0.002 261.514);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.002 261.514);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.534 0.201 260.839);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.309 0.024 261.316);
--secondary-foreground: oklch(0.835 0.019 261.493);
--accent: oklch(0.309 0.024 261.316);
--accent-foreground: oklch(0.835 0.019 261.493);
--destructive: oklch(0.616 0.222 33.205);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.534 0.201 260.839);
--chart-1: oklch(0.534 0.201 260.839);
--chart-2: oklch(0.309 0.024 261.316);
--chart-3: oklch(0.309 0.024 261.316);
--chart-4: oklch(0.338 0.027 261.306);
--chart-5: oklch(0.534 0.208 260.947);
}