CSS generator: box shadow, text shadow, border radius, glass effect and neumorphism

Pick an effect, move the numbers, watch the preview change and copy the finished CSS declaration into your stylesheet.

  • Free, no sign-up
  • Your files and data stay on your device
  • No watermarks or limits

0 bytes uploaded. Everything happens in this tab.

How to use it

  1. Choose a mode at the top: Box shadow, Text shadow, Border radius, Glass effect or Soft UI (neumorphism).
  2. Adjust the fields, for example Offset X, Offset Y, Blur, Spread, Shadow color and Opacity (0-1) for a shadow.
  3. Check the preview, then press “Copy CSS” and paste the code into your stylesheet.

Example

Box shadow with the second, softer layer ticked:

box-shadow: 4px 8px 24px 0px rgb(31 42 68 / 0.3),
  4px 16px 48px 0px rgb(31 42 68 / 0.15);

About this tool

Most CSS effects are easy to read but awkward to guess. A box shadow alone has an X and Y offset, a blur, a spread, a color and an optional inset keyword, and small changes in any of them alter the whole look. This generator shows the result as you type and writes the declaration for you, so you can experiment first and copy once.

The Box shadow and Text shadow modes build one shadow, and the box shadow can add a second layer with double the vertical offset, double the blur and half the opacity, which usually looks more natural than a single hard shadow. The Border radius mode sets each corner separately in pixels or percent and, if you tick “Elliptical corners”, lets you give the vertical radii on their own. The Glass effect mode combines a translucent background, a thin border and backdrop-filter blur, and the Soft UI mode makes a pair of light and dark shadows from the Surface color and the Intensity value, in Flat, Pressed, Concave or Convex shapes.

Two honest limits. The preview is drawn by your own browser, so the final look can differ slightly in another browser or on another screen. The glass blur only shows when something colorful sits behind the element, and backdrop-filter is not available in very old browsers, which then show only the translucent color. Soft UI also tends to have low contrast, so check text contrast and visible focus states before you use it for buttons or form fields. Nothing you enter leaves your device.

Frequently asked questions

What does the spread value do in a box shadow?

Spread makes the shadow bigger (positive) or smaller (negative) than the element before the blur is applied. With a spread of 0 the shadow has the same size as the box.

Why can I not see the glass blur?

Backdrop blur only blurs what is behind the element. Put it over an image or a colorful background. Very old browsers do not support backdrop-filter and show only the translucent color.

How do I get a perfect circle with border radius?

Use a square element and choose % as the unit with 50 in every corner. For a pill shape, use a radius at least half the height in pixels.

Is the generated CSS safe to use in production?

Yes, it is standard CSS. Still, test it in the browsers you support, because rendering of blur and shadows can differ a little between them.

Are my settings uploaded?

No. Everything is computed in your browser and nothing is stored or sent.

Often used next