E-reader is a shadcn/ui theme built around an orange primary color (#cc7824) with yellow accents (#cccc24). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the orange primary (#cc7824) on a neutral background (#080502).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #080502black |
| Foreground | #170d03black | #fbfaf9snow |
| Card | #fcf7f2floralwhite | #0c0803black |
| Card foreground | #120a02black | #fdfcfcsnow |
| Popover | #fcf7f2floralwhite | #0c0803black |
| Popover foreground | #120a02black | #fdfcfcsnow |
| Primary | #cc7824chocolate | #cc7824chocolate |
| Primary foreground | #000000black | #000000black |
| Secondary | #cc2424firebrick | #cc2424firebrick |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e2d0d0lightgrey | #2f1d1dblack |
| Muted foreground | #5a4949darkolivegreen | #b6a5a5darkgray |
| Accent | #cccc24goldenrod | #cccc24goldenrod |
| Accent foreground | #1e1e05black | #1e1e05black |
| Destructive | #882b0csaddlebrown | #eb4e19orangered |
| Destructive foreground | #fbd7cbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cc7824chocolate | #cc7824chocolate |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.42:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 5.47:1 | AA |
| Muted text | 5.69:1 | AA |
| Accent | 9.81:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 5.47:1 | AA |
| Muted text | 6.75:1 | AA |
| Accent | 9.81:1 | AAA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use E-reader in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.006 67.758);
--foreground: oklch(0.168 0.027 70.235);
--muted: oklch(0.872 0.02 17.535);
--muted-foreground: oklch(0.424 0.022 18.063);
--popover: oklch(0.98 0.009 67.725);
--popover-foreground: oklch(0.154 0.024 73.655);
--card: oklch(0.98 0.009 67.725);
--card-foreground: oklch(0.154 0.024 73.655);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.651 0.139 59.906);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.546 0.202 27.197);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.818 0.17 109.64);
--accent-foreground: oklch(0.23 0.041 109.244);
--destructive: oklch(0.426 0.133 37.007);
--destructive-foreground: oklch(0.906 0.043 39.292);
--ring: oklch(0.651 0.139 59.906);
--chart-1: oklch(0.651 0.139 59.906);
--chart-2: oklch(0.546 0.202 27.197);
--chart-3: oklch(0.818 0.17 109.64);
--chart-4: oklch(0.571 0.212 27.25);
--chart-5: oklch(0.655 0.143 59.265);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.013 75.912);
--foreground: oklch(0.985 0.001 67.807);
--muted: oklch(0.255 0.028 19.162);
--muted-foreground: oklch(0.737 0.019 17.592);
--popover: oklch(0.136 0.015 75.299);
--popover-foreground: oklch(0.993 0.001 67.814);
--card: oklch(0.136 0.015 75.299);
--card-foreground: oklch(0.993 0.001 67.814);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.651 0.139 59.906);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.546 0.202 27.197);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.818 0.17 109.64);
--accent-foreground: oklch(0.23 0.041 109.244);
--destructive: oklch(0.636 0.202 36.738);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.651 0.139 59.906);
--chart-1: oklch(0.651 0.139 59.906);
--chart-2: oklch(0.546 0.202 27.197);
--chart-3: oklch(0.818 0.17 109.64);
--chart-4: oklch(0.571 0.212 27.25);
--chart-5: oklch(0.655 0.143 59.265);
}