Wavy for shadcn/ui

Wavy is a shadcn/ui theme built around a yellow primary color (#867337) with blue accents (#374986). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#867337) on a yellow-tinted background (#0d0c07).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0d0c07black
Foreground
#120e03black
#ffffffwhite
Card
#fefdfbsnow
#0d0c07black
Card foreground
#120e03black
#ffffffwhite
Popover
#fefdfbsnow
#0d0c07black
Popover foreground
#120e03black
#ffffffwhite
Primary
#867337olivedrab
#867337olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#374986darkslateblue
#374986darkslateblue
Secondary foreground
#f4f6fbghostwhite
#f4f6fbghostwhite
Muted
#d0d5e7gainsboro
#181e2fblack
Muted foreground
#48494bdarkslategray
#b4b4b7silver
Accent
#374986darkslateblue
#374986darkslateblue
Accent foreground
#f4f6fbghostwhite
#f4f6fbghostwhite
Destructive
#7c0e0emaroon
#e72323crimson
Destructive foreground
#f8c3c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#867337olivedrab
#867337olivedrab

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card18.95:1AAA
Primary button4.62:1AA
Secondary button7.88:1AAA
Muted text6.16:1AA
Accent7.88:1AAA
Destructive7.06:1AAA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button4.62:1AA
Secondary button7.88:1AAA
Muted text8.04:1AAA
Accent7.88:1AAA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 92.683);
  --foreground: oklch(0.165 0.026 95.704);
  --muted: oklch(0.875 0.025 272.345);
  --muted-foreground: oklch(0.406 0.004 272.557);
  --popover: oklch(0.994 0.003 92.683);
  --popover-foreground: oklch(0.165 0.026 95.704);
  --card: oklch(0.994 0.003 92.683);
  --card-foreground: oklch(0.165 0.026 95.704);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.561 0.083 92.631);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.423 0.103 268.922);
  --secondary-foreground: oklch(0.972 0.007 272.585);
  --accent: oklch(0.423 0.103 268.922);
  --accent-foreground: oklch(0.972 0.007 272.585);
  --destructive: oklch(0.376 0.143 27.679);
  --destructive-foreground: oklch(0.865 0.061 18.398);
  --ring: oklch(0.561 0.083 92.631);
  --chart-1: oklch(0.561 0.083 92.631);
  --chart-2: oklch(0.423 0.103 268.922);
  --chart-3: oklch(0.423 0.103 268.922);
  --chart-4: oklch(0.446 0.11 268.874);
  --chart-5: oklch(0.567 0.088 92.471);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.011 94.027);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.035 270.635);
  --muted-foreground: oklch(0.771 0.003 272.613);
  --popover: oklch(0.154 0.011 94.027);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.011 94.027);
  --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.561 0.083 92.631);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.423 0.103 268.922);
  --secondary-foreground: oklch(0.972 0.007 272.585);
  --accent: oklch(0.423 0.103 268.922);
  --accent-foreground: oklch(0.972 0.007 272.585);
  --destructive: oklch(0.594 0.226 27.717);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.561 0.083 92.631);
  --chart-1: oklch(0.561 0.083 92.631);
  --chart-2: oklch(0.423 0.103 268.922);
  --chart-3: oklch(0.423 0.103 268.922);
  --chart-4: oklch(0.446 0.11 268.874);
  --chart-5: oklch(0.567 0.088 92.471);
}