DoraPDF / Blog

Free CSS Generators: Gradients, Box Shadows, Mesh Gradients and Glassmorphism

By the DoraPDF team · 5 min read · Updated 2026-11-17
Free CSS Generators: Gradients, Box Shadows, Mesh Gradients and Glassmorphism

Typing box-shadow: 0 20px 60px rgba(...) and refreshing the page twenty times is a slow way to design. Visual CSS generators let you drag a slider, see the result immediately, and copy code that's ready to paste. DoraPDF has four of them, all free and running in your browser:

Here's what each one does, which settings matter, and a few design habits that keep the results from looking dated.

1. CSS Gradient Generator

What you can control

The output is a single line such as:

css background: linear-gradient(135deg, #ff2e88, #9b3cff);

Click copy and paste it into your stylesheet, a Tailwind arbitrary value, or a Webflow or WordPress custom CSS field.

Tips for nicer gradients

2. Box Shadow Generator

The sliders

Shadow recipes that work

A common mistake is pure black shadows at high opacity. Real shadows are soft and slightly tinted, so try a dark version of your background colour instead of #000.

3. Mesh Gradient Generator

Mesh gradients are the soft, colourful "blob" backgrounds you see on landing pages and app splash screens. This generator builds them from several overlapping radial gradients, so they're pure CSS, with no image file needed.

How it works

  1. Click Generate. The tool picks one of its colour palettes and places four colour spots at random positions and sizes.
  2. Keep clicking until you like the composition. Each click is a new arrangement.
  3. Copy the CSS (a background-color plus a stacked background-image of radial gradients), or click Download PNG for a 1600 × 1000 image to use in slides, social posts or as a wallpaper.

Where mesh gradients shine

Keep text on top short and bold; busy colour behind long paragraphs is tiring to read.

4. Glassmorphism CSS Generator

Glassmorphism is the frosted-glass look: a semi-transparent card that blurs whatever is behind it. The generator shows your card over a colourful background so you can judge the effect properly.

Controls

The code includes both backdrop-filter and -webkit-backdrop-filter, so the effect also works in Safari, plus a 24 px border radius.

Making glass look good

A quick workflow that combines all four

  1. Generate a mesh gradient for the page background.
  2. Place a glass card on top for your signup form or pricing box.
  3. Give the main button a linear gradient in your brand colours.
  4. Add a soft coloured box-shadow under the button so it lifts off the glass.

Privacy

All four generators run entirely in your browser. Nothing is sent to a server, and there's no sign-up.

FAQ

Can I use the generated CSS in commercial projects? Yes. The code is standard CSS that you create with the tool; use it anywhere.

Does glassmorphism work in all browsers? backdrop-filter is supported in current versions of Chrome, Edge, Safari and Firefox. Older browsers will show the semi-transparent tint without the blur, so keep text readable either way.

How do I use these gradients in Tailwind CSS? Paste the value into an arbitrary property, for example bg-[linear-gradient(135deg,#ff2e88,#9b3cff)], or add it to your theme as a custom background image.

Can I get a mesh gradient as an image instead of CSS? Yes. Use the Download PNG button in the Mesh Gradient Generator.

Try the tools from this guide — free

Keep reading

Guide

Modern CSS Gradients, Shadows and Glass Effects: 10 Recipes You Can Copy

Ten modern CSS recipes: layered box shadows, gradient text, conic gradients, glassmorphism cards and mesh backgrounds. Build each visually, then copy the code.

Guide

Color Palette Generator: Create Matching Color Schemes and Copy the Hex Codes

Generate five-color palettes with one key press, lock the colors you like, shuffle the rest and copy the hex codes for your brand, website or slides.

Guide

How to Get a HEX Color Code From an Image (Free Online Color Picker)

Click any pixel in a photo, logo or screenshot to get its HEX, RGB and HSL code. Plus an instant palette of the image's main colours. Free, private.