Layers of soft token-colored waves that drift sideways behind your content, as filled ocean waves, thin silk lines, or stacked bands.
Release notes, weekly
Calm releases, every Friday
Batch your changes, preview them together, and ship without the late night pager.
Release notes, weekly
Calm releases, every Friday
Batch your changes, preview them together, and ship without the late night pager.
Release notes, weekly
Calm releases, every Friday
Batch your changes, preview them together, and ship without the late night pager.
Release notes, weekly
Calm releases, every Friday
Batch your changes, preview them together, and ship without the late night pager.
Release notes, weekly
Calm releases, every Friday
Batch your changes, preview them together, and ship without the late night pager.
<x-markas.wavy-background class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32">
<div class="grid justify-items-center gap-4 text-center">
<p class="text-sm font-medium text-muted">Release notes, weekly</p>
<h2 class="text-2xl font-semibold text-balance text-ink">Calm releases, every Friday</h2>
<p class="max-w-80 text-sm text-muted">Batch your changes, preview them together, and ship without the late night pager.</p>
<x-markas.button>Start free trial</x-markas.button>
</div>
</x-markas.wavy-background>Examples
Newsletter card with silk lines
<x-markas.wavy-background variant="silk" :waves="5" speed="slow" class="rounded-xl border border-line bg-surface px-6 py-10">
<form class="mx-auto grid max-w-80 gap-4 rounded-xl border border-line bg-surface p-6">
<div class="grid gap-1">
<h3 class="text-lg font-semibold text-ink">Get the weekly changelog</h3>
<p class="text-sm text-muted">One short email every Monday. Unsubscribe anytime.</p>
</div>
<x-markas.input label="Email" type="email" placeholder="you@company.com" />
<x-markas.button type="submit">Subscribe</x-markas.button>
</form>
</x-markas.wavy-background>Sign-in page with layered bands
<x-markas.wavy-background variant="layered" color="success" :waves="3" class="rounded-xl border border-line bg-canvas px-6 pt-8 pb-16">
<form class="mx-auto grid max-w-80 gap-4 rounded-xl border border-line bg-surface p-6">
<div class="grid gap-1">
<h3 class="text-lg font-semibold text-ink">Welcome back</h3>
<p class="text-sm text-muted">Sign in to continue to your workspace.</p>
</div>
<x-markas.input label="Email" type="email" placeholder="you@company.com" />
<x-markas.input label="Password" type="password" />
<x-markas.button type="submit">Sign in</x-markas.button>
</form>
</x-markas.wavy-background>404 page
404
This page washed out to sea
The link may be broken, or the page was moved.
404
This page washed out to sea
The link may be broken, or the page was moved.
404
This page washed out to sea
The link may be broken, or the page was moved.
404
This page washed out to sea
The link may be broken, or the page was moved.
404
This page washed out to sea
The link may be broken, or the page was moved.
<x-markas.wavy-background color="muted" :waves="5" speed="slow" class="rounded-xl border border-line bg-surface px-6 pt-10 pb-28">
<div class="grid justify-items-center gap-3 text-center">
<p class="text-6xl font-bold tracking-tight text-ink">404</p>
<h3 class="text-lg font-semibold text-ink">This page washed out to sea</h3>
<p class="max-w-72 text-sm text-muted">The link may be broken, or the page was moved.</p>
<x-markas.button variant="secondary">Back to home</x-markas.button>
</div>
</x-markas.wavy-background>Installation
npx markasui@latest add wavy-backgroundpnpm dlx markasui@latest add wavy-backgroundyarn dlx markasui@latest add wavy-backgroundbunx --bun markasui@latest add wavy-background- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
resources/views/components/markas/wavy-background.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/WavyBackground.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/WavyBackground.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/WavyBackground.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/WavyBackground.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/wavy-background.component.ts.
Usage
<x-markas.wavy-background variant="ocean" color="primary" class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32">
<h2 class="text-2xl font-semibold text-ink">Calm releases, every Friday</h2>
<x-markas.button>Start free trial</x-markas.button>
</x-markas.wavy-background>No JavaScript or Alpine.js needed.
import { Button } from "@/components/markas/Button";
import { WavyBackground } from "@/components/markas/WavyBackground";
<WavyBackground
variant="ocean"
color="primary"
className="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
>
<h2 className="text-2xl font-semibold text-ink">
Calm releases, every Friday
</h2>
<Button>Start free trial</Button>
</WavyBackground>;<template>
<WavyBackground
variant="ocean"
color="primary"
class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
>
<h2 class="text-2xl font-semibold text-ink">Calm releases, every Friday</h2>
<Button>Start free trial</Button>
</WavyBackground>
</template><script lang="ts">
import Button from "$lib/components/markas/Button.svelte";
import WavyBackground from "$lib/components/markas/WavyBackground.svelte";
</script>
<WavyBackground
variant="ocean"
color="primary"
class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
>
<h2 class="text-2xl font-semibold text-ink">Calm releases, every Friday</h2>
<Button>Start free trial</Button>
</WavyBackground>---
import Button from "@/components/markas/Button.astro";
import WavyBackground from "@/components/markas/WavyBackground.astro";
---
<WavyBackground
variant="ocean"
color="primary"
class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
>
<h2 class="text-2xl font-semibold text-ink">
Calm releases, every Friday
</h2>
<Button>Start free trial</Button>
</WavyBackground>import { Component } from "@angular/core";
import { Button } from "./markas/button.component";
import { WavyBackground } from "./markas/wavy-background.component";
@Component({
selector: "app-release",
imports: [Button, WavyBackground],
template: `
<div
markas-wavy-background
variant="ocean"
color="primary"
class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
>
<h2 class="text-2xl font-semibold text-ink">
Calm releases, every Friday
</h2>
<button markas-button>Start free trial</button>
</div>
`,
})
export class Release {}Angular uses an attribute selector on the native div, so class, aria-*, and other attributes stay on the root element.
- Waves are plain SVG paths that slide sideways with one CSS keyframe. There is no JavaScript, canvas, or backdrop-filter.
- The light blur is a CSS filter on the wave layer only, so content on top stays sharp.
- With reduced motion the waves stop and stay in the same place in all six frameworks.
- The component has no built-in text, so there are no label props to translate.
Props
| Name | Type | Default | Description |
|---|---|---|---|
variant | ocean | silk | layered | ocean | ocean: blurred filled waves along the bottom. silk: thin flowing lines through the middle. layered: stacked bands like hills. |
color | muted | ink | primary | success | warning | danger | primary | Token color of the waves. Each layer uses its own opacity. |
speed | slow | normal | fast | normal | How fast the waves drift. Back layers always move a little slower than front layers. |
waves | number | 4 | Number of wave layers, from 3 to 5. |
children / slot | slot / ReactNode | - | Content shown on top of the waves. |
Accessibility
- The wave layer is aria-hidden and ignores pointer events.
- With reduced motion, the waves stop and stay in place.
Related components
More backgrounds components with the same classes in every framework.
- Aurora BackgroundSoft glowing color fields that drift slowly behind your content, made from primary and an accent token.
- Background BeamsThin curved light beams that flow, pulse, or fall and splash behind your content. Pure SVG and CSS, no JavaScript.
- Background BoxesA skewed, flat, or perspective grid of tiles that light up under the cursor and fade back, using only CSS hover.
- Background LinesSVG lines that draw in and fade out one after another, as waves, rays from a point, or a lattice. Made for hero sections.
- Dot PatternA grid of small dots behind your content, with an optional radial or linear fade. Pure CSS, no JavaScript.
- Gradient BorderWraps a card, button, or field in a moving gradient border that spins, shines, or pulses, with an optional soft glow.