Waveform for shadcn/ui

Waveform is a shadcn/ui theme built around a muted purple primary color (#a581a7) with muted green accents (#83a781). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted purple primary (#a581a7) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fefbfewhite
#0a050ablack
Foreground
#0d020eblack
#ffffffwhite
Card
#fefbfewhite
#0a050ablack
Card foreground
#0d020eblack
#ffffffwhite
Popover
#fefbfewhite
#0a050ablack
Popover foreground
#0d020eblack
#ffffffwhite
Primary
#a581a7rosybrown
#a581a7rosybrown
Primary foreground
#000000black
#000000black
Secondary
#83a781darkseagreen
#83a781darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#e0f1dfgainsboro
#0f200eblack
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#83a781darkseagreen
#83a781darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#8a2a0fsaddlebrown
#ea6743tomato
Destructive foreground
#fadad1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a581a7rosybrown
#a581a7rosybrown

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button6.28:1AA
Secondary button7.81:1AAA
Muted text6.95:1AA
Accent7.81:1AAA
Destructive6.64:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button6.28:1AA
Secondary button7.81:1AAA
Muted text7.84:1AAA
Accent7.81:1AAA
Destructive6.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.006 324.164);
  --foreground: oklch(0.12 0.042 326.312);
  --muted: oklch(0.941 0.031 143.938);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.991 0.006 324.164);
  --popover-foreground: oklch(0.12 0.042 326.312);
  --card: oklch(0.991 0.006 324.164);
  --card-foreground: oklch(0.12 0.042 326.312);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.65 0.07 324.726);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.691 0.069 143.529);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.691 0.069 143.529);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.428 0.135 35.466);
  --destructive-foreground: oklch(0.912 0.038 35.944);
  --ring: oklch(0.65 0.07 324.726);
  --chart-1: oklch(0.65 0.07 324.726);
  --chart-2: oklch(0.691 0.069 143.529);
  --chart-3: oklch(0.691 0.069 143.529);
  --chart-4: oklch(0.714 0.063 143.594);
  --chart-5: oklch(0.648 0.082 324.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.018 325.187);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.042 142.968);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.127 0.018 325.187);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.018 325.187);
  --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.65 0.07 324.726);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.691 0.069 143.529);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.691 0.069 143.529);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.67 0.171 36.313);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.65 0.07 324.726);
  --chart-1: oklch(0.65 0.07 324.726);
  --chart-2: oklch(0.691 0.069 143.529);
  --chart-3: oklch(0.691 0.069 143.529);
  --chart-4: oklch(0.714 0.063 143.594);
  --chart-5: oklch(0.648 0.082 324.818);
}