Thunderbolt for shadcn/ui

Thunderbolt is a shadcn/ui theme built around a light violet primary color (#e6d9f7) with light green accents (#eaf7d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#e6d9f7) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#07050ablack
Foreground
#090510black
#faf8fbghostwhite
Card
#fcfcfcsnow
#0a070dblack
Card foreground
#07040cblack
#fcfcfdwhite
Popover
#ffffffwhite
#07050ablack
Popover foreground
#090510black
#faf8fbghostwhite
Primary
#e6d9f7lavender
#e6d9f7lavender
Primary foreground
#481c82indigo
#481c82indigo
Secondary
#eaf7d9beige
#eaf7d9beige
Secondary foreground
#1e2e0ablack
#1e2e0ablack
Muted
#eef2e8linen
#13170dblack
Muted foreground
#656f58dimgray
#9da790darkseagreen
Accent
#eaf7d9beige
#eaf7d9beige
Accent foreground
#1e2e0ablack
#1e2e0ablack
Destructive
#8d390csaddlebrown
#eb661echocolate
Destructive foreground
#fbdfd0blanchedalmond
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6d9f7lavender
#e6d9f7lavender

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card19.91:1AAA
Primary button8.87:1AAA
Secondary button12.96:1AAA
Muted text4.67:1AA
Accent12.96:1AAA
Destructive6.08:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.52:1AAA
Primary button8.87:1AAA
Secondary button12.96:1AAA
Muted text7.24:1AAA
Accent12.96:1AAA
Destructive6.45:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.027 305.333);
  --muted: oklch(0.956 0.014 125.943);
  --muted-foreground: oklch(0.527 0.038 126.743);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.027 305.333);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.117 0.023 306.713);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.905 0.042 305.116);
  --primary-foreground: oklch(0.356 0.159 297.191);
  --secondary: oklch(0.959 0.042 126.327);
  --secondary-foreground: oklch(0.279 0.061 129.68);
  --accent: oklch(0.959 0.042 126.327);
  --accent-foreground: oklch(0.279 0.061 129.68);
  --destructive: oklch(0.454 0.125 43.692);
  --destructive-foreground: oklch(0.923 0.037 50.173);
  --ring: oklch(0.905 0.042 305.116);
  --chart-1: oklch(0.905 0.042 305.116);
  --chart-2: oklch(0.959 0.042 126.327);
  --chart-3: oklch(0.959 0.042 126.327);
  --chart-4: oklch(0.972 0.028 126.123);
  --chart-5: oklch(0.904 0.044 305.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 306.364);
  --foreground: oklch(0.982 0.004 305.682);
  --muted: oklch(0.196 0.021 127.264);
  --muted-foreground: oklch(0.715 0.036 126.42);
  --popover: oklch(0.124 0.013 306.364);
  --popover-foreground: oklch(0.982 0.004 305.682);
  --card: oklch(0.136 0.015 305.429);
  --card-foreground: oklch(0.991 0.002 305.711);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.905 0.042 305.116);
  --primary-foreground: oklch(0.356 0.159 297.191);
  --secondary: oklch(0.959 0.042 126.327);
  --secondary-foreground: oklch(0.279 0.061 129.68);
  --accent: oklch(0.959 0.042 126.327);
  --accent-foreground: oklch(0.279 0.061 129.68);
  --destructive: oklch(0.667 0.182 43.858);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.905 0.042 305.116);
  --chart-1: oklch(0.905 0.042 305.116);
  --chart-2: oklch(0.959 0.042 126.327);
  --chart-3: oklch(0.959 0.042 126.327);
  --chart-4: oklch(0.972 0.028 126.123);
  --chart-5: oklch(0.904 0.044 305.086);
}