Electron is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#3e4b65). The light mode uses a blue-tinted background (#212836). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#212836).
| Token | Light | Dark |
|---|---|---|
| Background | #212836darkslategray | #212836darkslategray |
| Foreground | #97a8c8darkgray | #97a8c8darkgray |
| Card | #1d232fdarkslategray | #1d232fdarkslategray |
| Card foreground | #a8b6d1lightsteelblue | #a8b6d1lightsteelblue |
| Popover | #1b212cdarkslategray | #1b212cdarkslategray |
| Popover foreground | #b9c4dalightsteelblue | #b9c4dalightsteelblue |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2f333cdarkslategray | #2f333cdarkslategray |
| Muted foreground | #acb2bedarkgray | #acb2bedarkgray |
| Accent | #3e4b65darkslategray | #3e4b65darkslategray |
| Accent foreground | #e6e9eflavender | #e6e9eflavender |
| Destructive | #eb4c3dtomato | #eb4c3dtomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #303540darkslategray | #303540darkslategray |
| Input | #373d49darkslategray | #373d49darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 6.16:1 | AA |
| Text on card | 7.68:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 7.18:1 | AAA |
| Destructive | 3.74:1 | AA Large |
| Text on background | 6.16:1 | AA |
| Text on card | 7.68:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 7.18:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Electron in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.276 0.028 263.961);
--foreground: oklch(0.729 0.051 264.188);
--muted: oklch(0.322 0.016 264.313);
--muted-foreground: oklch(0.763 0.018 264.461);
--popover: oklch(0.247 0.023 264.002);
--popover-foreground: oklch(0.819 0.033 264.372);
--card: oklch(0.257 0.025 263.987);
--card-foreground: oklch(0.774 0.042 264.292);
--border: oklch(0.33 0.02 264.253);
--input: oklch(0.358 0.022 264.243);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.413 0.047 263.849);
--accent-foreground: oklch(0.933 0.009 264.518);
--destructive: oklch(0.636 0.198 28.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.413 0.047 263.849);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.276 0.028 263.961);
--foreground: oklch(0.729 0.051 264.188);
--muted: oklch(0.322 0.016 264.313);
--muted-foreground: oklch(0.763 0.018 264.461);
--popover: oklch(0.247 0.023 264.002);
--popover-foreground: oklch(0.819 0.033 264.372);
--card: oklch(0.257 0.025 263.987);
--card-foreground: oklch(0.774 0.042 264.292);
--border: oklch(0.33 0.02 264.253);
--input: oklch(0.358 0.022 264.243);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.413 0.047 263.849);
--accent-foreground: oklch(0.933 0.009 264.518);
--destructive: oklch(0.636 0.198 28.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.413 0.047 263.849);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}