Account

Backgrounds

Creative

Gradient Mesh

Lines fade from faint at the back to strong at the front, so it reads as depth without colour: terrain, sound, a calm sea. Optional full wireframe.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add gradient-mesh

Usage

Example
import { GradientMesh } from "@/components/galactrex/gradient-mesh";

<section className="relative overflow-hidden">
  <GradientMesh />
  <h1 className="relative">Signal</h1>
</section>

Source

Installs to components/galactrex/gradient-mesh.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
linesnumber28How many lines make the mesh.
amplitudenumber26Swell height in px.
speednumber0.5How fast it rolls; 0 holds still.
wireframebooleanfalseDraw the cross lines too.
opacitynumber0.55Nearest-line strength, 0 to 1.
colorstring"--gxui-ink"CSS colour or --gxui-* name.
classNamestring—Extra classes for the outer element.

Variants

  • Contours. Horizontal lines only.
  • Wireframe. `wireframe` adds the cross lines.

Accessibility

  • Decorative only and aria-hidden; never takes pointer events.

Motion and reduced motion

  • One canvas, drawn once per frame.
  • Pauses offscreen.
  • Reduced motion: a still surface.