Misrepresentation is a shadcn/ui theme built around a deep yellow primary color (#241f0a) with muted light yellow accents (#e2e0da). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#241f0a) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #141106black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #0b0a04black |
| Card foreground | #100e05black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0b0a04black |
| Popover foreground | #100e05black | #ffffffwhite |
| Primary | #241f0ablack | #241f0ablack |
| Primary foreground | #c5ab34goldenrod | #c5ab34goldenrod |
| Secondary | #e2e0dagainsboro | #181711black |
| Secondary foreground | #4d4a3ddarkslategray | #bbb6a0darkgray |
| Muted | #e6e5e0gainsboro | #1f1e19black |
| Muted foreground | #4c4a43darkslategray | #bcbab3silver |
| Accent | #e2e0dagainsboro | #181711black |
| Accent foreground | #4d4a3ddarkslategray | #bbb6a0darkgray |
| Destructive | #691802maroon | #fb5a2dtomato |
| Destructive foreground | #fdb4a0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #241f0ablack | #241f0ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.87:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 6.74:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 8.84:1 | AAA |
| Muted text | 8.57:1 | AAA |
| Accent | 8.84:1 | AAA |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Misrepresentation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.177 0.022 97.67);
--muted: oklch(0.922 0.007 96.267);
--muted-foreground: oklch(0.409 0.012 96.502);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.161 0.02 98.38);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.161 0.02 98.38);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.241 0.036 96.858);
--primary-foreground: oklch(0.743 0.135 96.015);
--secondary: oklch(0.907 0.009 96.287);
--secondary-foreground: oklch(0.408 0.022 96.755);
--accent: oklch(0.907 0.009 96.287);
--accent-foreground: oklch(0.408 0.022 96.755);
--destructive: oklch(0.346 0.118 35.328);
--destructive-foreground: oklch(0.834 0.09 36.079);
--ring: oklch(0.241 0.036 96.858);
--chart-1: oklch(0.241 0.036 96.858);
--chart-2: oklch(0.907 0.009 96.287);
--chart-3: oklch(0.907 0.009 96.287);
--chart-4: oklch(0.929 0.007 96.257);
--chart-5: oklch(0.243 0.038 96.807);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 99.624);
--foreground: oklch(0.993 0.001 96.177);
--muted: oklch(0.235 0.01 96.664);
--muted-foreground: oklch(0.789 0.01 96.321);
--popover: oklch(0.143 0.015 99.394);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.015 99.394);
--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.241 0.036 96.858);
--primary-foreground: oklch(0.743 0.135 96.015);
--secondary: oklch(0.202 0.011 96.76);
--secondary-foreground: oklch(0.775 0.032 96.634);
--accent: oklch(0.202 0.011 96.76);
--accent-foreground: oklch(0.775 0.032 96.634);
--destructive: oklch(0.676 0.205 35.765);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.241 0.036 96.858);
--chart-1: oklch(0.241 0.036 96.858);
--chart-2: oklch(0.202 0.011 96.76);
--chart-3: oklch(0.202 0.011 96.76);
--chart-4: oklch(0.239 0.014 96.811);
--chart-5: oklch(0.243 0.038 96.807);
}