Electron vue darker is a shadcn/ui theme built around a vivid light blue primary color (#d1dfff) with muted deep blue accents (#38435c). The light mode uses a blue-tinted background (#1b202c). Dark mode keeps the vivid light blue primary (#d1dfff) on a blue-tinted background (#1b202c).
| Token | Light | Dark |
|---|---|---|
| Background | #1b202cblack | #1b202cblack |
| Foreground | #b9c7e4lightsteelblue | #b9c7e4lightsteelblue |
| Card | #171c26black | #171c26black |
| Card foreground | #ccd6ebgainsboro | #ccd6ebgainsboro |
| Popover | #151923black | #151923black |
| Popover foreground | #dee4f2lavender | #dee4f2lavender |
| Primary | #d1dffflavender | #d1dffflavender |
| Primary foreground | #002f9edarkblue | #002f9edarkblue |
| Secondary | #2d3853darkslategray | #2d3853darkslategray |
| Secondary foreground | #cdd4e4lightgrey | #cdd4e4lightgrey |
| Muted | #282c33darkslategray | #282c33darkslategray |
| Muted foreground | #a4a9b7darkgray | #a4a9b7darkgray |
| Accent | #38435cdarkslategray | #38435cdarkslategray |
| Accent foreground | #dce0eagainsboro | #dce0eagainsboro |
| Destructive | #df2c11orangered | #df2c11orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2a2e37darkslategray | #2a2e37darkslategray |
| Input | #303540darkslategray | #303540darkslategray |
| Ring | #d1dffflavender | #d1dffflavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.55:1 | AAA |
| Text on card | 11.71:1 | AAA |
| Primary button | 8.26:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 4.65:1 | AA |
| Text on background | 9.55:1 | AAA |
| Text on card | 11.71:1 | AAA |
| Primary button | 8.26:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 4.65:1 | AA |
Paste this into your globals.css to use Electron vue darker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.245 0.024 266.58);
--foreground: oklch(0.828 0.044 265.688);
--muted: oklch(0.292 0.015 267.05);
--muted-foreground: oklch(0.736 0.021 267.234);
--popover: oklch(0.215 0.02 266.66);
--popover-foreground: oklch(0.919 0.02 265.896);
--card: oklch(0.225 0.021 266.631);
--card-foreground: oklch(0.874 0.032 265.806);
--border: oklch(0.3 0.018 266.962);
--input: oklch(0.329 0.021 266.944);
--primary: oklch(0.903 0.047 267.043);
--primary-foreground: oklch(0.37 0.184 262.868);
--secondary: oklch(0.343 0.05 266.064);
--secondary-foreground: oklch(0.87 0.023 267.244);
--accent: oklch(0.384 0.045 266.382);
--accent-foreground: oklch(0.907 0.014 267.329);
--destructive: oklch(0.585 0.216 31.43);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.903 0.047 267.043);
--chart-1: oklch(0.903 0.047 267.043);
--chart-2: oklch(0.343 0.05 266.064);
--chart-3: oklch(0.384 0.045 266.382);
--chart-4: oklch(0.37 0.055 266.028);
--chart-5: oklch(0.902 0.048 267.029);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.245 0.024 266.58);
--foreground: oklch(0.828 0.044 265.688);
--muted: oklch(0.292 0.015 267.05);
--muted-foreground: oklch(0.736 0.021 267.234);
--popover: oklch(0.215 0.02 266.66);
--popover-foreground: oklch(0.919 0.02 265.896);
--card: oklch(0.225 0.021 266.631);
--card-foreground: oklch(0.874 0.032 265.806);
--border: oklch(0.3 0.018 266.962);
--input: oklch(0.329 0.021 266.944);
--primary: oklch(0.903 0.047 267.043);
--primary-foreground: oklch(0.37 0.184 262.868);
--secondary: oklch(0.343 0.05 266.064);
--secondary-foreground: oklch(0.87 0.023 267.244);
--accent: oklch(0.384 0.045 266.382);
--accent-foreground: oklch(0.907 0.014 267.329);
--destructive: oklch(0.585 0.216 31.43);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.903 0.047 267.043);
--chart-1: oklch(0.903 0.047 267.043);
--chart-2: oklch(0.343 0.05 266.064);
--chart-3: oklch(0.384 0.045 266.382);
--chart-4: oklch(0.37 0.055 266.028);
--chart-5: oklch(0.902 0.048 267.029);
}