Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Wavy Background

    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>
    import { Button } from "@/components/markas/Button";
    import { WavyBackground } from "@/components/markas/WavyBackground";
    
    export default function WavyBackgroundExample() {
      return (
        <WavyBackground className="rounded-xl border border-line bg-surface px-6 pt-12 pb-32">
          <div className="grid justify-items-center gap-4 text-center">
            <p className="text-sm font-medium text-muted">Release notes, weekly</p>
            <h2 className="text-2xl font-semibold text-balance text-ink">
              Calm releases, every Friday
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Batch your changes, preview them together, and ship without the late
              night pager.
            </p>
            <Button>Start free trial</Button>
          </div>
        </WavyBackground>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import WavyBackground from "@/components/markas/WavyBackground.vue";
    </script>
    
    <template>
      <WavyBackground
        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>
          <Button>Start free trial</Button>
        </div>
      </WavyBackground>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import WavyBackground from "$lib/components/markas/WavyBackground.svelte";
    </script>
    
    <WavyBackground
      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>
        <Button>Start free trial</Button>
      </div>
    </WavyBackground>
    ---
    import Button from "@/components/markas/Button.astro";
    import WavyBackground from "@/components/markas/WavyBackground.astro";
    ---
    
    <WavyBackground 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>
        <Button>Start free trial</Button>
      </div>
    </WavyBackground>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { WavyBackground } from "./markas/wavy-background.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, WavyBackground],
      template: `
        <div
          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>
            <button markas-button>Start free trial</button>
          </div>
        </div>
      `,
    })
    export default class WavyBackgroundExample {}

    Examples

    Newsletter card with silk lines

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Sign-in page with layered bands

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    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.

    Installation

    npx markasui@latest add wavy-background

    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

    NameTypeDefaultDescription
    variantocean | silk | layeredoceanocean: blurred filled waves along the bottom. silk: thin flowing lines through the middle. layered: stacked bands like hills.
    colormuted | ink | primary | success | warning | dangerprimaryToken color of the waves. Each layer uses its own opacity.
    speedslow | normal | fastnormalHow fast the waves drift. Back layers always move a little slower than front layers.
    wavesnumber4Number of wave layers, from 3 to 5.
    children / slotslot / 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.