Skip to content
Toolcroft

Mesh Gradient Generator - CSS Gradient Builder

Color Tools

Create a CSS approximation of a mesh gradient, plus linear, radial, and conic gradients. Adjust colors and mesh points in your browser, then copy the CSS.

Mesh point positions

Drag a colored point in the preview, use its arrow keys, or enter exact X and Y values. Positions are percentages of the preview.

Point 1
Point 2
Point 3
Point 4
background-color: #6366f1;
background-image: radial-gradient(ellipse at 20% 20%, #6366f1aa 0%, transparent 60%),
  radial-gradient(ellipse at 80% 20%, #ec4899aa 0%, transparent 60%),
  radial-gradient(ellipse at 20% 80%, #f59e0baa 0%, transparent 60%),
  radial-gradient(ellipse at 80% 80%, #10b981aa 0%, transparent 60%);

How to use this tool

  1. Choose a gradient type: mesh, conic, radial, or linear.
  2. Choose 2–6 colors. In mesh mode, each color has a matching draggable point.
  3. Move mesh points by dragging, arrow keys, or X/Y percentage fields; standard radial and conic modes show center controls, while linear and conic modes show the angle control.
  4. Click "Copy CSS" to copy the generated CSS to your clipboard.

What is a mesh gradient?

A mesh gradient is a two-dimensional color blend built from several color regions rather than one straight transition. CSS does not currently define a native mesh-gradient function, so this tool approximates the effect by stacking radial-gradient() backgrounds at adjustable color points over a solid base color. Each point controls where its color begins; the generated layers fade outward so they overlap.

Choose between two and six colors, then drag each labeled point over the preview or enter its X and Y coordinates from 0 to 100 percent. The preview and CSS update together. In mesh mode, the first color is the background color beneath the layers. Linear, radial, and conic tabs remain available for conventional gradient backgrounds; angle and center controls appear only in the modes that use them.

Copy the CSS block into a page style or stylesheet to build a hero panel, card background, or soft accent behind a heading. For example, place a purple point near the upper-left and a teal point near the lower-right, then use supporting colors to add movement around a short title. Check the result behind real text and buttons before shipping: overlapping colors can reduce contrast, and the apparent blend changes with the element's size.

Browser support

This generator outputs CSS only: layered radial-gradient backgrounds over the first color as a solid base. It does not generate a native CSS mesh, use blend modes, create SVG, or export a static image. The result is ordinary CSS, so it works anywhere the browser supports CSS radial gradients; its soft multi-point look is an approximation rather than a true mesh surface.

Design tips

  • Use analogous colors (adjacent on the color wheel) for subtle, harmonious gradients.
  • Use complementary colors (opposite on the wheel) for vibrant, high-contrast effects.
  • Move points closer together for concentrated blends, or spread them out for broad color fields.

CSS implementation techniques

Developers can approximate multi-color blends in several ways. The CSS this tool emits uses stacked radial gradients; the following alternatives are general techniques and are not generated by this tool:

  • Blend modes: a developer can combine separate gradient elements with mix-blend-mode: screen or multiply to change how overlapping colors interact. This page's generated CSS does not add blend-mode rules.
  • SVG filters: an SVG can combine gradient shapes with an feMerge or feBlend filter. This is a separate authoring approach; this tool neither creates SVG markup nor exports an image.

When a design requires true mesh patches, independent per-point softness, or raster output, use a graphics editor or a renderer built for those formats. This generator focuses on an editable CSS approximation.

Design inspiration

Mesh gradients became a major design trend after Apple used them in macOS Sonoma (2023) wallpapers. Other notable adopters include Stripe's homepage (vibrant purple/blue/teal), Linear.app (cool neon mesh on dark backgrounds), and most generative AI landing pages (aurora-style blobs on near-black backgrounds). Common color strategies:

  • Warm-to-cool: coral/orange blending into violet/blue - creates energy and movement.
  • Earth tones: terracotta/sand/sage - organic, calm, popular in design portfolios.
  • Neon on dark: electric cyan/magenta/chartreuse on black - futuristic, high energy.

Frequently asked questions

What is a mesh gradient?

A mesh gradient is a two-dimensional color blend with several independently placed color regions. This tool approximates that look by layering CSS radial gradients at adjustable points.

Does this create a native CSS mesh gradient or an SVG?

No. CSS does not have a native mesh-gradient function. This tool outputs CSS with layered radial gradients over a solid base; it does not generate SVG or an image.

How can I move a mesh color point?

Drag a point with a mouse or touch, focus it and use the arrow keys, or enter its X and Y percentages. Each coordinate is clamped from 0% to 100%.

Can I export a PNG or SVG image?

This generator copies CSS only. To create a PNG or SVG, use a graphics editor or a renderer that supports image export.

Browse all color tools