Electron vue for shadcn/ui

Electron vue is a shadcn/ui theme built around a vivid light blue primary color (#d1dfff) with muted blue accents (#3e4b65). The light mode uses a blue-tinted background (#212836). Dark mode keeps the vivid light blue primary (#d1dfff) on a blue-tinted background (#212836).

Color palette

TokenLightDark
Background
#212836darkslategray
#212836darkslategray
Foreground
#b9c7e4lightsteelblue
#b9c7e4lightsteelblue
Card
#1d232fdarkslategray
#1d232fdarkslategray
Card foreground
#ccd6ebgainsboro
#ccd6ebgainsboro
Popover
#1b212cdarkslategray
#1b212cdarkslategray
Popover foreground
#dee4f2lavender
#dee4f2lavender
Primary
#d1dffflavender
#d1dffflavender
Primary foreground
#002f9edarkblue
#002f9edarkblue
Secondary
#2d3853darkslategray
#2d3853darkslategray
Secondary foreground
#cdd4e4lightgrey
#cdd4e4lightgrey
Muted
#2f333cdarkslategray
#2f333cdarkslategray
Muted foreground
#acb2bedarkgray
#acb2bedarkgray
Accent
#3e4b65darkslategray
#3e4b65darkslategray
Accent foreground
#e6e9eflavender
#e6e9eflavender
Destructive
#ee553atomato
#ee553atomato
Destructive foreground
#000000black
#000000black
Border
#303540darkslategray
#303540darkslategray
Input
#373d49darkslategray
#373d49darkslategray
Ring
#d1dffflavender
#d1dffflavender

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background8.70:1AAA
Text on card10.76:1AAA
Primary button8.26:1AAA
Secondary button7.84:1AAA
Muted text5.91:1AA
Accent7.18:1AAA
Destructive5.98:1AA
Dark mode
Text on background8.70:1AAA
Text on card10.76:1AAA
Primary button8.26:1AAA
Secondary button7.84:1AAA
Muted text5.91:1AA
Accent7.18:1AAA
Destructive5.98:1AA

CSS variables

Paste this into your globals.css to use Electron vue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.276 0.028 263.961);
  --foreground: oklch(0.828 0.044 265.688);
  --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.919 0.02 265.896);
  --card: oklch(0.257 0.025 263.987);
  --card-foreground: oklch(0.874 0.032 265.806);
  --border: oklch(0.33 0.02 264.253);
  --input: oklch(0.358 0.022 264.243);
  --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.413 0.047 263.849);
  --accent-foreground: oklch(0.933 0.009 264.518);
  --destructive: oklch(0.651 0.193 32.306);
  --destructive-foreground: oklch(0 0 0);
  --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.413 0.047 263.849);
  --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.276 0.028 263.961);
  --foreground: oklch(0.828 0.044 265.688);
  --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.919 0.02 265.896);
  --card: oklch(0.257 0.025 263.987);
  --card-foreground: oklch(0.874 0.032 265.806);
  --border: oklch(0.33 0.02 264.253);
  --input: oklch(0.358 0.022 264.243);
  --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.413 0.047 263.849);
  --accent-foreground: oklch(0.933 0.009 264.518);
  --destructive: oklch(0.651 0.193 32.306);
  --destructive-foreground: oklch(0 0 0);
  --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.413 0.047 263.849);
  --chart-4: oklch(0.37 0.055 266.028);
  --chart-5: oklch(0.902 0.048 267.029);
}