How to use Gradient & Mesh Generator
- Choose a gradient type: linear, radial, conic or mesh.
- Drag the color points on the canvas (or use the arrow keys) and adjust their spread, or press Shuffle colors for a harmonious set.
- Optionally turn on motion to animate the gradient.
- Copy the CSS and paste it into your project. It works in every modern browser, no images needed.
About Gradient & Mesh Generator
A mesh gradient blends several colors that come from different points of a surface, instead of along a single line. It is the soft, organic background you see on modern landing pages and app splash screens.
CSS has no mesh-gradient() function, so this mesh gradient generator builds one by stacking several radial gradients over a base color. You get the look of a design-tool mesh gradient as a few lines of lightweight CSS, which scales to any size and loads instantly.
What it does
- Mesh gradients built from layered radial gradients - no images needed
- Draggable color points and stops (mouse, touch or keyboard)
- Harmony-based color shuffle and presets
- Optional animated drift that respects reduced-motion preferences
FAQ
How are mesh gradients made in CSS?
By stacking several radial-gradient() layers at different positions over a base color. The generator writes that CSS for you.
Will the animated gradient hurt accessibility?
The exported CSS includes a prefers-reduced-motion rule that turns the animation off for people who ask for less motion.
Can I use the gradient in Figma?
The tool exports CSS. To use the same look in Figma, recreate the color points as layered radial gradients, or take a screenshot of the canvas as a background image.
Is a CSS gradient better than an image for performance?
Usually yes: a few lines of CSS weigh almost nothing, stay sharp at any size and need no extra download, while a large background image can slow down the first paint.
More free tools
- Palette Generator - Pick a hue, choose a color harmony, and get a full accessible palette with live AA/AAA contrast checking.
- Contrast Checker - Paste two colors, see the WCAG ratio, and fix a failing pair with a single click.
- Image → Palette - Drop in an image, pull out its dominant colors, and see which pairs are safe to use together.
- Color Blindness Simulator - See a palette through protanopia, deuteranopia, tritanopia and achromatopsia - and catch colors that collapse.
- Type Scale Generator - Pick a base size and a ratio, get a full type scale with live preview, fluid clamp() and tokens to copy.
- Component States Explorer - Buttons, inputs and cards in every state - hover, focus, pressed, disabled, error - side by side with contrast checks.
- Design Token Converter - Paste W3C tokens, Tokens Studio or Figma Variables JSON and get CSS, SCSS, Tailwind v4 or SwiftUI - aliases included.
- Motion & Easing Playground - Drag cubic-bezier handles, tune a real spring, watch them race, and export motion tokens as CSS linear(), Framer Motion or SwiftUI.
- Auto-Trim - Drop in PNGs and get them back without the empty transparent edges - in bulk, in your browser, as one ZIP.
- Text Expansion Stress Test - See how a UI breaks in German, Spanish or pseudo-localized text - and which CSS fixes make it survive translation.
- Mini A11y Audit - Paste HTML and find missing alt text and labels, unnamed buttons, heading jumps, tiny tap targets and low contrast.
- Multi-size Preview - One message laid out across social and display-ad sizes, with platform safe zones and a draggable focal point. Export every PNG.
- Mobile Preview - Open any website inside iPhone, Pixel, Galaxy and iPad frames at their real viewport sizes. Rotate it or compare four devices at once.
- Hue Hunt - Match five colors by eye with hue, saturation and lightness. Scored by perceptual distance, with a daily challenge to share.
- Pass or Fail - Twenty quick rounds: does this text pass WCAG AA contrast? Trust your eye, then see the real ratios.
- Optical Eye - Fix seven layout flaws by eye: center a play icon, even out padding, size a circle against a square.
- State Panic - Components fall with something happening to them. Pick the right UI state before they hit the floor.
- Easing Golf - Mini golf with animation curves: shape a cubic-bezier so the puck hits every flag on time. Par is three.
- Contrast Survival - The background keeps shifting. Hold the text lightness so it passes WCAG AA, then AAA, as long as you can.
- Token Rush - Swap hard-coded values for the right design tokens, fast. Then flip the theme and see what breaks.
- Kern Me - Space six words by eye. Each has one letter pair too tight or too loose; the answer is the font designer’s own kerning.
- Tab Order - Tap a screen’s buttons, links and fields in the order the Tab key should visit them. Five screens, one WCAG rule.
- Snap to Grid - Five components with spacing nudged off the scale. Snap every padding and gap back to its 4 and 8 px step before the clock runs out.
- Weight Watcher - A sample hides its font weight, size or line height. Slide yours until the two match, six rounds, with the real value after each.
- Radius Match - A rounded box inside a rounded box. Slide the inner radius until the gap is even. The rule: outer radius minus padding.
- Ramp Repair - Nine shades of one color, light to dark, and one is broken. Spot it before your lives run out.
- Name That Component - A tooltip or a popover? A tab or a segmented control? Name ten UI components from a drawing.
- Fat Finger - Buttons, links and icons drawn at their real tap size. Flag the ones under the 24, 44 or 48 px minimum.