Eyestrain is a shadcn/ui theme built around a muted violet primary color (#746c89) with muted purple accents (#826c89). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted violet primary (#746c89) on a violet-tinted background (#070410).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #070410black |
| Foreground | #06040cblack | #fcfcfdwhite |
| Card | #fcfcfdwhite | #070410black |
| Card foreground | #06040cblack | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #070410black |
| Popover foreground | #06040cblack | #fcfcfdwhite |
| Primary | #746c89slategray | #746c89slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6c7389slategray | #6c7389slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eeeff1whitesmoke | #0e0f11black |
| Muted foreground | #505258darkslategray | #a7a9afdarkgray |
| Accent | #826c89gray | #826c89gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7c0909maroon | #ef1a1acrimson |
| Destructive foreground | #fabcbclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #746c89slategray | #746c89slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 4.96:1 | AA |
| Secondary button | 4.74:1 | AA |
| Muted text | 6.79:1 | AA |
| Accent | 4.72:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 4.96:1 | AA |
| Secondary button | 4.74:1 | AA |
| Muted text | 8.18:1 | AAA |
| Accent | 4.72:1 | AA |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Eyestrain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 298.526);
--foreground: oklch(0.115 0.023 298.303);
--muted: oklch(0.952 0.003 272.625);
--muted-foreground: oklch(0.439 0.011 272.387);
--popover: oklch(0.991 0.002 298.526);
--popover-foreground: oklch(0.115 0.023 298.303);
--card: oklch(0.991 0.002 298.526);
--card-foreground: oklch(0.115 0.023 298.303);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.548 0.046 297.079);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.556 0.036 271.88);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.562 0.052 318.235);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.373 0.146 28.244);
--destructive-foreground: oklch(0.852 0.072 18.669);
--ring: oklch(0.548 0.046 297.079);
--chart-1: oklch(0.548 0.046 297.079);
--chart-2: oklch(0.556 0.036 271.88);
--chart-3: oklch(0.562 0.052 318.235);
--chart-4: oklch(0.582 0.036 271.912);
--chart-5: oklch(0.54 0.058 296.659);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.031 297.011);
--foreground: oklch(0.991 0.001 298.542);
--muted: oklch(0.167 0.005 272.359);
--muted-foreground: oklch(0.734 0.01 272.52);
--popover: oklch(0.123 0.031 297.011);
--popover-foreground: oklch(0.991 0.001 298.542);
--card: oklch(0.123 0.031 297.011);
--card-foreground: oklch(0.991 0.001 298.542);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.548 0.046 297.079);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.556 0.036 271.88);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.562 0.052 318.235);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.605 0.238 28.311);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.548 0.046 297.079);
--chart-1: oklch(0.548 0.046 297.079);
--chart-2: oklch(0.556 0.036 271.88);
--chart-3: oklch(0.562 0.052 318.235);
--chart-4: oklch(0.582 0.036 271.912);
--chart-5: oklch(0.54 0.058 296.659);
}