Gradient Generator
Design mesh gradient backgrounds and frosted-glass cards visually, then copy the CSS or Tailwind classes.
- Never uploaded
- Works offline
- Free, no sign-up
Processed on this device. Nothing is sent to a server.
How to use the Gradient Generator
- Step 1Pick a starting pointA preset, or Shuffle for a random palette.
- Step 2Shape itDrag colour points, change colours and spread, tune the glass.
- Step 3Copy the codePlain CSS or Tailwind classes, ready to paste.
How mesh gradients and glass cards work
A mesh gradient here is several radial gradients layered on a base colour. Each one starts as a solid colour at a point and fades to transparent, so neighbouring colours blend softly. It’s pure CSS, with no image to download, and it scales to any size.
The glass effect comes from backdrop-filter: blur() softens whatever is behind the card, saturate() keeps the colours from turning grey, and a semi-transparent fill plus a faint light border make the edge readable. It only looks like glass when there’s something colourful behind it, which is why it pairs well with a mesh background.
For accessibility, keep enough contrast between text and the busiest part of the background. The preview switches the text colour automatically based on how light the gradient is.
Questions
Does backdrop-filter work in all browsers?
Yes, in all current versions of Chrome, Edge, Firefox and Safari. The CSS includes the -webkit- prefix for older Safari versions.
How do I use the Tailwind output?
Paste the classes onto your elements. They use arbitrary values, which work in Tailwind CSS v3 and v4 without changing your config.
Is a CSS gradient faster than a background image?
Usually, yes. It adds a few hundred bytes of CSS instead of a large image download, and it never looks blurry on high-resolution screens. Very large blur values on glass cards can cost some performance on low-end phones, so keep the blur moderate.