Wavy for shadcn/ui

Wavy is a shadcn/ui theme built around a vivid violet primary color (#6e0bf9) with muted light violet accents (#c0b4cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#6e0bf9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#07020dblack
#f7f6f9whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#040109black
#faf9fbghostwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#040109black
#faf9fbghostwhite
Primary
#6e0bf9blueviolet
#6e0bf9blueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d3cddalightgrey
#2e2c30darkslategray
Secondary foreground
#393243darkslategray
#c6c4casilver
Muted
#e8e6eblavender
#171419black
Muted foreground
#514c57darkslategray
#aca8b3darkgray
Accent
#c0b4cfsilver
#3e3748darkslategray
Accent foreground
#272032darkslategray
#d8d4degainsboro
Destructive
#701701maroon
#fe5025orangered
Destructive foreground
#ffb6a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6e0bf9blueviolet
#6e0bf9blueviolet

Contrast

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

Light mode
Text on background20.51:1AAA
Text on card20.27:1AAA
Primary button6.81:1AA
Secondary button7.89:1AAA
Muted text6.69:1AA
Accent7.98:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.70:1AAA
Primary button6.81:1AA
Secondary button8.03:1AAA
Muted text7.81:1AAA
Accent7.75:1AAA
Destructive3.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.11 0.033 306.155);
  --muted: oklch(0.927 0.007 304.939);
  --muted-foreground: oklch(0.425 0.02 304.409);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.096 0.029 306.656);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.096 0.029 306.656);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.508 0.285 288.859);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.857 0.019 304.743);
  --secondary-foreground: oklch(0.332 0.032 303.703);
  --accent: oklch(0.789 0.04 304.353);
  --accent-foreground: oklch(0.26 0.035 303.173);
  --destructive: oklch(0.357 0.126 34.463);
  --destructive-foreground: oklch(0.839 0.089 34.555);
  --ring: oklch(0.508 0.285 288.859);
  --chart-1: oklch(0.508 0.285 288.859);
  --chart-2: oklch(0.857 0.019 304.743);
  --chart-3: oklch(0.789 0.04 304.353);
  --chart-4: oklch(0.883 0.015 304.806);
  --chart-5: oklch(0.51 0.289 288.136);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.005 304.975);
  --muted: oklch(0.198 0.01 304.314);
  --muted-foreground: oklch(0.738 0.017 304.726);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.983 0.003 304.999);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.003 304.999);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.508 0.285 288.859);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.295 0.009 304.642);
  --secondary-foreground: oklch(0.824 0.008 304.908);
  --accent: oklch(0.352 0.03 303.875);
  --accent-foreground: oklch(0.875 0.014 304.82);
  --destructive: oklch(0.67 0.217 34.572);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.508 0.285 288.859);
  --chart-1: oklch(0.508 0.285 288.859);
  --chart-2: oklch(0.295 0.009 304.642);
  --chart-3: oklch(0.352 0.03 303.875);
  --chart-4: oklch(0.325 0.01 304.628);
  --chart-5: oklch(0.51 0.289 288.136);
}