A mesh gradient background blends several colors into each other from different points across the image, not along one straight line. The result looks like soft, overlapping fields of color. A designer places colors at points on a grid (the "mesh"), and the software smooths the transitions between neighboring points in every direction.
Behind a product screenshot, a mesh adds color without a hard edge pulling the eye away from the UI. It is also easy to get wrong. A busy or low-contrast mesh can hide the screenshot's edges and make any text on top hard to read.
What a mesh gradient is
In a linear gradient, color changes along one axis: left to right, top to bottom, or at an angle. Every point on a line perpendicular to that axis has the same color.
A mesh gradient has no single direction. Colors sit at several anchor points spread over the canvas, and each pixel takes a blend of the nearby colors. Vector tools build this from a real grid of points you can move (Adobe Illustrator's Gradient Mesh is the classic example). Most web and social backgrounds labeled "mesh gradient" are simply images that look this way: a few large, blurred color fields melting into each other.
Three things follow from that:
- They look organic. With no visible direction there is no hard start or end, so the background reads as ambient light, not as a stripe.
- On the web they are usually images. CSS has
linear-gradient,radial-gradientandconic-gradient, but no mesh gradient, and browsers don't render SVG mesh gradients. To use one on a site, you either export it as an image or approximate it with stacked radial gradients (example below). - They can band. Smooth transitions across a large area can show visible steps of color in an 8-bit image, especially after JPEG compression. A little noise or grain hides this.
Mesh vs linear gradients
| Linear gradient | Mesh gradient | |
|---|---|---|
| Color stops | Along one line | At several points across the canvas |
| Direction | Clear angle (e.g. 135°) | None; color flows in all directions |
| Look | Clean, graphic, predictable | Soft, atmospheric, glowing |
| In CSS | Native (linear-gradient) | Not native; image or layered radial-gradient |
| Behind a screenshot | Even contrast along the edges if the colors are close in lightness | Contrast changes around the screenshot, so check every edge |
| Good for | Brand colors, simple social cards, docs | Hero sections, launch images, marketing visuals |
Pick a linear gradient when you need something calm and predictable, or when the image will be shown small (a thumbnail or link preview). Pick a mesh gradient when the image is large and the background is meant to set a mood, like a landing page hero or a launch graphic.
Picking colors that suit your screenshot
The background frames the screenshot. These checks matter more than the exact palette.
Contrast with the screenshot's edges. Look at the outer edge of your UI. A white app on a pale pastel mesh loses its outline, and a dark-mode app on a deep navy mesh does the same. Choose a mesh that is clearly lighter or darker than the screenshot's border, or add a shadow so the edge stays visible.
Check the worst spot, not the average. A mesh changes color around the screenshot. The top-left corner might contrast well while the bottom-right blends in. Look at all four sides at the size the image will actually be shown.
Keep text off the busiest area. A headline on the gradient has to be readable over every color it touches. For body-size text, WCAG asks for a contrast ratio of at least 4.5:1. Test against both the lightest and the darkest color under the text.
Limit the palette. Three or four colors are usually enough. Pull at least one from the product itself (your brand color or the app's accent) so the background feels connected to the screenshot. To get exact values, the image color palette extractor shows a screenshot's dominant color and a palette as HEX or RGB.
Keep saturated colors away from key UI. A bright red patch beside a red "Delete" button pulls the eye to the wrong place. Move the most saturated part of the mesh away from the screenshot's important elements, or lower the background's saturation.
Generating gradients from your image
Matching colors by hand takes time. In our screenshot mockup editor, the BG tab has a MAGIC GRADIENTS section that builds gradients from the colors in your own screenshot, right in your browser. Click SHUFFLE for new combinations. Because the colors come from the screenshot, the result usually matches it without any palette work.
The same tab has MESH GRADIENTS, nine presets (Astra, Bliss, Burst, Dusk, Flash, Ghost, Helix, Horizon and Peak), and GRADIENTS, 102 linear presets drawn at a fixed 135° angle with no angle control.
To put a screenshot on a mesh gradient:
- Open the screenshot mockup editor.
- Click Add Your Image, or press ⌘V (Command-V) to paste a screenshot from your clipboard (Ctrl+V on Windows).
- Open the BG tab.
- Click a preset under MESH GRADIENTS, or click one under MAGIC GRADIENTS and use SHUFFLE until you like the colors.
- Click the aspect-ratio button in the top bar and pick a size (for example 16:9 Youtube Video for a 1920×1080 image).
- Click Save to download the image, or Copy to put it on the clipboard. Your image is processed in your browser and never uploaded. On the free plan you get 3 downloads a day (Save and Copy both count) at 1x, as PNG or JPEG, with a "Made with Picbolt" watermark. The one-time Lifetime plan removes the watermark and the daily limit and adds higher export quality. Our Free vs Lifetime explainer has the details. For other background types, see how to add a background to a screenshot.
Fix contrast without changing the gradient
The mesh options are presets. If you like one but the screenshot doesn't stand out, adjust the scene around it:
- Dim or mute the background only. In Settings → FILTERS, switch to BACKGROUND and lower Brightness or Saturate. HueRotate shifts all the mesh's colors around the color wheel, which can bring a preset closer to your brand colors.
- Soften it further. The Blur filter on BACKGROUND removes any remaining hard shapes.
- Strengthen the edge. In the Edit tab, raise Shadow spread or make the Shadow Color darker or more opaque.
- Add a frame. A window frame under FRAMES (for example macOS Light or macOS Dark) gives the screenshot a defined border against any color.
- Show less background. Lower Padding so the gradient becomes a thin border around the screenshot.
- Reduce banding. Raise Noise Amount under NOISE slightly to add grain over the gradient.
If none of the presets fit your brand, make a mesh in another design tool and upload it under CUSTOM BG → Image.
Using a mesh gradient background on landing pages and social posts
Landing pages
On a website you have two options.
Bake it into the image. Export the screenshot with its gradient as one file. This is the simplest choice, and it looks identical everywhere. The trade-off: the gradient can't stretch with the layout, and a large gradient image adds weight to the page. PNG vs JPG vs WebP compares the formats for images like this.
Keep the gradient in CSS. Export the screenshot on a transparent background (in Picbolt: CUSTOM BG → Transparent, saved as PNG; on the free plan the watermark is still drawn on it) and draw the mesh effect behind it in CSS. Stacked radial gradients get close to a mesh look and resize with the section:
.hero {
background-color: #0f172a;
background-image:
radial-gradient(at 20% 25%, #6366f1 0px, transparent 50%),
radial-gradient(at 80% 15%, #ec4899 0px, transparent 50%),
radial-gradient(at 70% 80%, #14b8a6 0px, transparent 50%),
radial-gradient(at 15% 85%, #f59e0b 0px, transparent 50%);
}
Each radial-gradient places one color at a point (at 20% 25%) and fades it to transparent. Move the points and change the colors to reshape the mesh. The base background-color shows wherever the color fields fade out.
For hero and feature images in general, see how to make product screenshots for a landing page.
Social posts
Social images are often seen small in a feed, so the subtle parts of a mesh disappear. Use bolder color differences than you would on a website, and let the screenshot fill most of the frame. Useful sizes in the editor's aspect-ratio list:
| Use | Aspect ratio label | Size at 1x |
|---|---|---|
| Instagram square post | 1:1 Instagram Post (Square) | 1080×1080 |
| Instagram portrait post | 4:5 Instagram Portrait | 1080×1350 |
| Instagram Story | 9:16 Instagram Story | 1080×1920 |
| Link preview | 1.91:1 Facebook Link Preview | 1200×628 |
| X (Twitter) header | 3:1 Twitter Header | 1500×500 |
The social media image sizes cheat sheet lists more platforms and where they crop.
When a mesh gradient is the wrong choice
- Documentation. Docs screenshots work best plain and consistent, so a solid color or no background usually fits better. See documentation screenshot best practices.
- Screenshots with a lot of color. A colorful dashboard on a colorful mesh gets noisy. Use a solid color or a muted linear gradient instead.
- Tiny placements. At avatar size, a mesh turns into a muddy smudge.
If you want something simpler, how to make a gradient background image covers linear gradients, and SVG background patterns covers repeating patterns you can use in CSS.
