Stormy for shadcn/ui

Stormy is a shadcn/ui theme built around a vivid light violet primary color (#be94f4) with vivid light purple accents (#ee94f4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#be94f4) on a violet-tinted background (#090410).

Color palette

TokenLightDark
Background
#ffffffwhite
#090410black
Foreground
#050209black
#ffffffwhite
Card
#ffffffwhite
#090410black
Card foreground
#050209black
#ffffffwhite
Popover
#ffffffwhite
#090410black
Popover foreground
#050209black
#ffffffwhite
Primary
#be94f4plum
#be94f4plum
Primary foreground
#27084fmidnightblue
#27084fmidnightblue
Secondary
#949bf4cornflowerblue
#949bf4cornflowerblue
Secondary foreground
#080d4fmidnightblue
#080d4fmidnightblue
Muted
#e2e2e4gainsboro
#1b1b1dblack
Muted foreground
#47474ddarkslategray
#b2b2b8darkgray
Accent
#ee94f4violet
#ee94f4violet
Accent foreground
#4a084findigo
#4a084findigo
Destructive
#812e0esaddlebrown
#eb7242tomato
Destructive foreground
#f9d6c8bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#be94f4plum
#be94f4plum

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button7.09:1AAA
Secondary button6.98:1AA
Muted text7.11:1AAA
Accent7.08:1AAA
Destructive6.61:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button7.09:1AAA
Secondary button6.98:1AA
Muted text8.16:1AAA
Accent7.08:1AAA
Destructive7.01:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.027 307.378);
  --muted: oklch(0.913 0.004 283.041);
  --muted-foreground: oklch(0.401 0.009 282.709);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.027 307.378);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.097 0.027 307.378);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.743 0.141 303.092);
  --primary-foreground: oklch(0.241 0.117 295.606);
  --secondary: oklch(0.72 0.13 279.478);
  --secondary-foreground: oklch(0.218 0.117 268.848);
  --accent: oklch(0.792 0.162 324.584);
  --accent-foreground: oklch(0.297 0.128 325.047);
  --destructive: oklch(0.419 0.122 39.429);
  --destructive-foreground: oklch(0.901 0.044 42.766);
  --ring: oklch(0.743 0.141 303.092);
  --chart-1: oklch(0.743 0.141 303.092);
  --chart-2: oklch(0.72 0.13 279.478);
  --chart-3: oklch(0.792 0.162 324.584);
  --chart-4: oklch(0.756 0.112 280.217);
  --chart-5: oklch(0.74 0.146 302.977);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.031 305.311);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.222 0.005 282.713);
  --muted-foreground: oklch(0.766 0.008 282.933);
  --popover: oklch(0.127 0.031 305.311);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.031 305.311);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.743 0.141 303.092);
  --primary-foreground: oklch(0.241 0.117 295.606);
  --secondary: oklch(0.72 0.13 279.478);
  --secondary-foreground: oklch(0.218 0.117 268.848);
  --accent: oklch(0.792 0.162 324.584);
  --accent-foreground: oklch(0.297 0.128 325.047);
  --destructive: oklch(0.686 0.163 41.19);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.743 0.141 303.092);
  --chart-1: oklch(0.743 0.141 303.092);
  --chart-2: oklch(0.72 0.13 279.478);
  --chart-3: oklch(0.792 0.162 324.584);
  --chart-4: oklch(0.756 0.112 280.217);
  --chart-5: oklch(0.74 0.146 302.977);
}