Illiteracy is a shadcn/ui theme built around a near-black primary color (#202222) with near-black accents (#222020). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the near-black primary (#202222) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #000000black |
| Foreground | #010909black | #ffffffwhite |
| Card | #f3fbfbmintcream | #030303black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #f3fbfbmintcream | #030303black |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #202222black | #202222black |
| Primary foreground | #b7bdbdsilver | #b7bdbdsilver |
| Secondary | #222020black | #222020black |
| Secondary foreground | #bdb7b8silver | #bdb7b8silver |
| Muted | #f1e4e5mistyrose | #1b0e0eblack |
| Muted foreground | #715b5cdimgray | #a48e8frosybrown |
| Accent | #222020black | #222020black |
| Accent foreground | #bdb7b8silver | #bdb7b8silver |
| Destructive | #6d1809maroon | #f05c42tomato |
| Destructive foreground | #f8baaflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #202222black | #202222black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 5.06:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 6.31:1 | AA |
Paste this into your globals.css to use Illiteracy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 194.684);
--foreground: oklch(0.128 0.018 193.17);
--muted: oklch(0.93 0.014 15.079);
--muted-foreground: oklch(0.493 0.029 15.95);
--popover: oklch(0.983 0.008 194.631);
--popover-foreground: oklch(0.102 0.014 193.17);
--card: oklch(0.983 0.008 194.631);
--card-foreground: oklch(0.102 0.014 193.17);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.251 0.004 194.5);
--primary-foreground: oklch(0.794 0.006 194.646);
--secondary: oklch(0.246 0.004 15.1);
--secondary-foreground: oklch(0.785 0.006 14.939);
--accent: oklch(0.246 0.004 15.1);
--accent-foreground: oklch(0.785 0.006 14.939);
--destructive: oklch(0.353 0.121 32.313);
--destructive-foreground: oklch(0.843 0.075 30.047);
--ring: oklch(0.251 0.004 194.5);
--chart-1: oklch(0.251 0.004 194.5);
--chart-2: oklch(0.246 0.004 15.1);
--chart-3: oklch(0.246 0.004 15.1);
--chart-4: oklch(0.277 0.005 15.119);
--chart-5: oklch(0.253 0.007 194.296);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.182 0.022 17.326);
--muted-foreground: oklch(0.666 0.027 15.567);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.251 0.004 194.5);
--primary-foreground: oklch(0.794 0.006 194.646);
--secondary: oklch(0.246 0.004 15.1);
--secondary-foreground: oklch(0.785 0.006 14.939);
--accent: oklch(0.246 0.004 15.1);
--accent-foreground: oklch(0.785 0.006 14.939);
--destructive: oklch(0.664 0.187 32.198);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.251 0.004 194.5);
--chart-1: oklch(0.251 0.004 194.5);
--chart-2: oklch(0.246 0.004 15.1);
--chart-3: oklch(0.246 0.004 15.1);
--chart-4: oklch(0.277 0.005 15.119);
--chart-5: oklch(0.253 0.007 194.296);
}