Illiterate is a shadcn/ui theme built around a light purple primary color (#d2a3e1) with muted light purple accents (#d8c5dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#d2a3e1) on a purple-tinted background (#0d0410).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0410black |
| Foreground | #0d050fblack | #f9f4fawhitesmoke |
| Card | #ffffffwhite | #0d0410black |
| Card foreground | #0d050fblack | #f9f4fawhitesmoke |
| Popover | #ffffffwhite | #0d0410black |
| Popover foreground | #0d050fblack | #f9f4fawhitesmoke |
| Primary | #d2a3e1plum | #d2a3e1plum |
| Primary foreground | #34143emidnightblue | #34143emidnightblue |
| Secondary | #eae4eclavender | #312f31darkslategray |
| Secondary foreground | #57415ddarkslategray | #cac8cblightgrey |
| Muted | #e6e4e7gainsboro | #1a181bblack |
| Muted foreground | #66576bdimgray | #a394a8darkgray |
| Accent | #d8c5ddthistle | #4c404fdarkslategray |
| Accent foreground | #402947darkslategray | #e2dde4gainsboro |
| Destructive | #cb1d06firebrick | #f94f39tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2a3e1plum | #d2a3e1plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.08:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 5.65:1 | AA |
| Text on background | 18.54:1 | AAA |
| Text on card | 18.54:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 6.21:1 | AA |
Paste this into your globals.css to use Illiterate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.135 0.028 318.906);
--muted: oklch(0.922 0.004 318.326);
--muted-foreground: oklch(0.479 0.036 318.255);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.135 0.028 318.906);
--card: oklch(1 0 180);
--card-foreground: oklch(0.135 0.028 318.906);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.779 0.101 318.186);
--primary-foreground: oklch(0.261 0.083 317.648);
--secondary: oklch(0.926 0.013 318.316);
--secondary-foreground: oklch(0.409 0.054 318.183);
--accent: oklch(0.846 0.04 318.284);
--accent-foreground: oklch(0.322 0.06 318.087);
--destructive: oklch(0.539 0.207 30.771);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.779 0.101 318.186);
--chart-1: oklch(0.779 0.101 318.186);
--chart-2: oklch(0.926 0.013 318.316);
--chart-3: oklch(0.846 0.04 318.284);
--chart-4: oklch(0.951 0.009 318.321);
--chart-5: oklch(0.777 0.107 318.175);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.033 319.04);
--foreground: oklch(0.973 0.009 318.321);
--muted: oklch(0.213 0.006 318.303);
--muted-foreground: oklch(0.687 0.033 318.283);
--popover: oklch(0.134 0.033 319.04);
--popover-foreground: oklch(0.973 0.009 318.321);
--card: oklch(0.134 0.033 319.04);
--card-foreground: oklch(0.973 0.009 318.321);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.779 0.101 318.186);
--primary-foreground: oklch(0.261 0.083 317.648);
--secondary: oklch(0.309 0.004 318.317);
--secondary-foreground: oklch(0.836 0.003 318.326);
--accent: oklch(0.388 0.03 318.25);
--accent-foreground: oklch(0.904 0.011 318.318);
--destructive: oklch(0.663 0.209 30.743);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.779 0.101 318.186);
--chart-1: oklch(0.779 0.101 318.186);
--chart-2: oklch(0.309 0.004 318.317);
--chart-3: oklch(0.388 0.03 318.25);
--chart-4: oklch(0.339 0.005 318.317);
--chart-5: oklch(0.777 0.107 318.175);
}