Background

Mesh Gradient

A live mesh gradient: four color spots drift slowly across a noise-warped field — silk, not circles. Rendered by the GPU, zero dependencies. For SaaS, AI products, apps and any first screen. At rest and without WebGL — a static version of the same colors.

What you can change

  • speed — still, calm or lively; still draws a single frame with no loop
  • warp — soft or strong: how much the spots twist into each other
  • intensity — faint, soft or bright: the strength of the accent ridges and highlight; soft by default so the background does not fight the content

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/surface-004?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

One file, zero dependencies, "use client". A WebGL2 shader on a single triangle: simplex noise (Ashima, MIT), a three-octave fbm warps the coordinates, four spots blend with gaussian weights, ±1/255 dither against banding. Rendered at half resolution (a smooth gradient needs no more), DPR ≤ 1. The palette is CSS variables with light-dark; the shader reads them through the canvas computed border-color, so theme, accent and colors work identically for the canvas and the CSS fallback. Paused outside the viewport and in a hidden tab (IntersectionObserver, visibilitychange), prefers-reduced-motion and speed=still draw a single frame, without WebGL2 the radial-gradient fallback stays. Theme switches are caught by a MutationObserver on <html>. Palette --vibeui-surface-004-*.

Tags

  • background
  • mesh
  • gradient
  • shader
  • webgl
  • animated
  • saas
  • stripe
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…