Electron Highlighter is a shadcn/ui theme built around a blue primary color (#a8b5d1) with muted blue accents (#3a465f). The light mode uses a blue-tinted background (#1d232f). Dark mode keeps the blue primary (#a8b5d1) on a blue-tinted background (#1d232f).
| Token | Light | Dark |
|---|---|---|
| Background | #1d232fdarkslategray | #1d232fdarkslategray |
| Foreground | #a8b5d1lightsteelblue | #a8b5d1lightsteelblue |
| Card | #191e29black | #191e29black |
| Card foreground | #b9c3dalightsteelblue | #b9c3dalightsteelblue |
| Popover | #171c26black | #171c26black |
| Popover foreground | #cad2e3lightgrey | #cad2e3lightgrey |
| Primary | #a8b5d1lightsteelblue | #a8b5d1lightsteelblue |
| Primary foreground | #19202fdarkslategray | #19202fdarkslategray |
| Secondary | #323b4ddarkslategray | #323b4ddarkslategray |
| Secondary foreground | #d1d6e1gainsboro | #d1d6e1gainsboro |
| Muted | #2b2f36darkslategray | #2b2f36darkslategray |
| Muted foreground | #a6adb9darkgray | #a6adb9darkgray |
| Accent | #3a465fdarkslategray | #3a465fdarkslategray |
| Accent foreground | #dfe3eclavender | #dfe3eclavender |
| Destructive | #f5310aorangered | #f5310aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2c313adarkslategray | #2c313adarkslategray |
| Input | #323843darkslategray | #323843darkslategray |
| Ring | #a8b5d1lightsteelblue | #a8b5d1lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.62:1 | AAA |
| Text on card | 9.39:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 3.94:1 | AA Large |
| Text on background | 7.62:1 | AAA |
| Text on card | 9.39:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Electron Highlighter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.257 0.025 263.987);
--foreground: oklch(0.773 0.043 265.667);
--muted: oklch(0.303 0.015 264.32);
--muted-foreground: oklch(0.746 0.02 264.45);
--popover: oklch(0.227 0.021 264.037);
--popover-foreground: oklch(0.862 0.025 265.849);
--card: oklch(0.237 0.022 264.019);
--card-foreground: oklch(0.817 0.034 265.768);
--border: oklch(0.311 0.018 264.261);
--input: oklch(0.34 0.021 264.249);
--primary: oklch(0.773 0.043 265.667);
--primary-foreground: oklch(0.243 0.031 265.018);
--secondary: oklch(0.352 0.034 265.313);
--secondary-foreground: oklch(0.875 0.016 265.916);
--accent: oklch(0.395 0.045 263.859);
--accent-foreground: oklch(0.916 0.012 264.507);
--destructive: oklch(0.627 0.233 32.106);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0.043 265.667);
--chart-1: oklch(0.773 0.043 265.667);
--chart-2: oklch(0.352 0.034 265.313);
--chart-3: oklch(0.395 0.045 263.859);
--chart-4: oklch(0.379 0.037 265.294);
--chart-5: oklch(0.771 0.047 265.623);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.257 0.025 263.987);
--foreground: oklch(0.773 0.043 265.667);
--muted: oklch(0.303 0.015 264.32);
--muted-foreground: oklch(0.746 0.02 264.45);
--popover: oklch(0.227 0.021 264.037);
--popover-foreground: oklch(0.862 0.025 265.849);
--card: oklch(0.237 0.022 264.019);
--card-foreground: oklch(0.817 0.034 265.768);
--border: oklch(0.311 0.018 264.261);
--input: oklch(0.34 0.021 264.249);
--primary: oklch(0.773 0.043 265.667);
--primary-foreground: oklch(0.243 0.031 265.018);
--secondary: oklch(0.352 0.034 265.313);
--secondary-foreground: oklch(0.875 0.016 265.916);
--accent: oklch(0.395 0.045 263.859);
--accent-foreground: oklch(0.916 0.012 264.507);
--destructive: oklch(0.627 0.233 32.106);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0.043 265.667);
--chart-1: oklch(0.773 0.043 265.667);
--chart-2: oklch(0.352 0.034 265.313);
--chart-3: oklch(0.395 0.045 263.859);
--chart-4: oklch(0.379 0.037 265.294);
--chart-5: oklch(0.771 0.047 265.623);
}