Maelstrom for shadcn/ui

Maelstrom is a shadcn/ui theme built around a vivid indigo primary color (#272ae7) with vivid violet accents (#8427e7). The light mode uses a neutral background (#f8f8fb). Dark mode keeps the vivid indigo primary (#272ae7) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#f8f8fbghostwhite
#030307black
Foreground
#02020dblack
#f6f6f9whitesmoke
Card
#f5f5fawhitesmoke
#04040bblack
Card foreground
#010209black
#f9f9fbghostwhite
Popover
#f8f8fbghostwhite
#030307black
Popover foreground
#02020dblack
#f6f6f9whitesmoke
Primary
#272ae7blue
#272ae7blue
Primary foreground
#dfdffblavender
#dfdffblavender
Secondary
#278ae7dodgerblue
#278ae7dodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edf0f2whitesmoke
#0d0f12black
Muted foreground
#3a434adarkslategray
#b5bdc5silver
Accent
#8427e7blueviolet
#8427e7blueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cf0f0cfirebrick
#f2201ccrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#272ae7blue
#272ae7blue

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.06:1AAA
Primary button6.23:1AA
Secondary button3.56:1AA Large
Muted text8.80:1AAA
Accent6.12:1AA
Destructive5.62:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.41:1AAA
Primary button6.23:1AA
Secondary button3.56:1AA Large
Muted text10.08:1AAA
Accent6.12:1AA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 285.542);
  --foreground: oklch(0.1 0.033 277.211);
  --muted: oklch(0.953 0.004 246.02);
  --muted-foreground: oklch(0.377 0.017 246.482);
  --popover: oklch(0.981 0.004 285.542);
  --popover-foreground: oklch(0.1 0.033 277.211);
  --card: oklch(0.972 0.006 285.503);
  --card-foreground: oklch(0.087 0.028 277.315);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.456 0.266 268.723);
  --primary-foreground: oklch(0.913 0.038 284.846);
  --secondary: oklch(0.626 0.165 251.389);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.528 0.257 298.432);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.541 0.216 28.959);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.456 0.266 268.723);
  --chart-1: oklch(0.456 0.266 268.723);
  --chart-2: oklch(0.626 0.165 251.389);
  --chart-3: oklch(0.528 0.257 298.432);
  --chart-4: oklch(0.647 0.156 250.455);
  --chart-5: oklch(0.455 0.273 268.034);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.017 281.894);
  --foreground: oklch(0.974 0.004 285.544);
  --muted: oklch(0.168 0.007 246.428);
  --muted-foreground: oklch(0.794 0.014 246.172);
  --popover: oklch(0.099 0.017 281.894);
  --popover-foreground: oklch(0.974 0.004 285.544);
  --card: oklch(0.114 0.019 281.884);
  --card-foreground: oklch(0.982 0.003 285.569);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.456 0.266 268.723);
  --primary-foreground: oklch(0.913 0.038 284.846);
  --secondary: oklch(0.626 0.165 251.389);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.528 0.257 298.432);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.613 0.238 28.503);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.456 0.266 268.723);
  --chart-1: oklch(0.456 0.266 268.723);
  --chart-2: oklch(0.626 0.165 251.389);
  --chart-3: oklch(0.528 0.257 298.432);
  --chart-4: oklch(0.647 0.156 250.455);
  --chart-5: oklch(0.455 0.273 268.034);
}