Stormy for shadcn/ui

Stormy is a shadcn/ui theme built around a vivid light purple primary color (#f9c3fd) with vivid light pink accents (#fdc3e5). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid light purple primary (#f9c3fd) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fdfbfewhite
#030203black
Foreground
#000000black
#fdfbfdsnow
Card
#fcf8fcsnow
#070307black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf8fcsnow
#070307black
Popover foreground
#000000black
#ffffffwhite
Primary
#f9c3fdlavender
#f9c3fdlavender
Primary foreground
#80048bdarkmagenta
#80048bdarkmagenta
Secondary
#dcc3fdlavender
#dcc3fdlavender
Secondary foreground
#3c048bindigo
#3c048bindigo
Muted
#e7e4eclavender
#16131bblack
Muted foreground
#3e3748darkslategray
#beb7c8silver
Accent
#fdc3e5pink
#fdc3e5pink
Accent foreground
#8b0453purple
#8b0453purple
Destructive
#b03707firebrick
#f04b0aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9c3fdlavender
#f9c3fdlavender

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card19.91:1AAA
Primary button6.18:1AA
Secondary button8.39:1AAA
Muted text9.07:1AAA
Accent6.32:1AA
Destructive6.16:1AA
Dark mode
Text on background20.13:1AAA
Text on card20.46:1AAA
Primary button6.18:1AA
Secondary button8.39:1AAA
Muted text9.43:1AAA
Accent6.32:1AA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 323.153);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.924 0.011 304.88);
  --muted-foreground: oklch(0.352 0.03 303.875);
  --popover: oklch(0.982 0.008 323.171);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 323.171);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.883 0.097 323.614);
  --primary-foreground: oklch(0.43 0.2 323.918);
  --secondary: oklch(0.858 0.083 303.692);
  --secondary-foreground: oklch(0.332 0.185 289.775);
  --accent: oklch(0.88 0.079 342.993);
  --accent-foreground: oklch(0.419 0.17 354.103);
  --destructive: oklch(0.512 0.165 37.628);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.883 0.097 323.614);
  --chart-1: oklch(0.883 0.097 323.614);
  --chart-2: oklch(0.858 0.083 303.692);
  --chart-3: oklch(0.88 0.079 342.993);
  --chart-4: oklch(0.893 0.062 304.084);
  --chart-5: oklch(0.883 0.1 323.628);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.012 324.172);
  --foreground: oklch(0.991 0.003 323.15);
  --muted: oklch(0.195 0.016 303.887);
  --muted-foreground: oklch(0.79 0.024 304.62);
  --popover: oklch(0.111 0.015 324.172);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.015 324.172);
  --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.883 0.097 323.614);
  --primary-foreground: oklch(0.43 0.2 323.918);
  --secondary: oklch(0.858 0.083 303.692);
  --secondary-foreground: oklch(0.332 0.185 289.775);
  --accent: oklch(0.88 0.079 342.993);
  --accent-foreground: oklch(0.419 0.17 354.103);
  --destructive: oklch(0.641 0.21 37.122);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.883 0.097 323.614);
  --chart-1: oklch(0.883 0.097 323.614);
  --chart-2: oklch(0.858 0.083 303.692);
  --chart-3: oklch(0.88 0.079 342.993);
  --chart-4: oklch(0.893 0.062 304.084);
  --chart-5: oklch(0.883 0.1 323.628);
}