LaserWave for shadcn/ui

LaserWave is a shadcn/ui theme built around a neutral gray primary color (#dedede) with muted violet accents (#4c4059). The light mode uses a violet-tinted background (#26202c). Dark mode keeps the neutral gray primary (#dedede) on a violet-tinted background (#26202c).

Color palette

TokenLightDark
Background
#26202cdarkslategray
#26202cdarkslategray
Foreground
#ffffffwhite
#ffffffwhite
Card
#211c26black
#211c26black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#1e1a23black
#1e1a23black
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#dededegainsboro
#dededegainsboro
Primary foreground
#454545darkslategray
#454545darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#302b36darkslategray
#302b36darkslategray
Muted foreground
#afa6b9darkgray
#afa6b9darkgray
Accent
#4c4059darkslategray
#4c4059darkslategray
Accent foreground
#e5e1ealavender
#e5e1ealavender
Destructive
#e94e2ftomato
#e94e2ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#333036darkslategray
#333036darkslategray
Input
#3a373edarkslategray
#3a373edarkslategray
Ring
#dededegainsboro
#dededegainsboro

Contrast

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

Light mode
Text on background15.82:1AAA
Text on card16.70:1AAA
Primary button7.11:1AAA
Secondary button7.37:1AAA
Muted text5.90:1AA
Accent7.44:1AAA
Destructive3.74:1AA Large
Dark mode
Text on background15.82:1AAA
Text on card16.70:1AAA
Primary button7.11:1AAA
Secondary button7.37:1AAA
Muted text5.90:1AA
Accent7.44:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.256 0.024 305.961);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.298 0.022 306.21);
  --muted-foreground: oklch(0.74 0.029 306.639);
  --popover: oklch(0.226 0.02 306.038);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.236 0.021 306.009);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.314 0.011 306.667);
  --input: oklch(0.343 0.013 306.654);
  --primary: oklch(0.9 0 188.746);
  --primary-foreground: oklch(0.39 0 165.964);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.394 0.043 305.767);
  --accent-foreground: oklch(0.916 0.012 306.956);
  --destructive: oklch(0.635 0.196 33.201);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0 188.746);
  --chart-1: oklch(0.9 0 188.746);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.394 0.043 305.767);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.899 0.002 17.198);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.256 0.024 305.961);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.298 0.022 306.21);
  --muted-foreground: oklch(0.74 0.029 306.639);
  --popover: oklch(0.226 0.02 306.038);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.236 0.021 306.009);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.314 0.011 306.667);
  --input: oklch(0.343 0.013 306.654);
  --primary: oklch(0.9 0 188.746);
  --primary-foreground: oklch(0.39 0 165.964);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.394 0.043 305.767);
  --accent-foreground: oklch(0.916 0.012 306.956);
  --destructive: oklch(0.635 0.196 33.201);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0 188.746);
  --chart-1: oklch(0.9 0 188.746);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.394 0.043 305.767);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.899 0.002 17.198);
}