Toolstia / CSS neumorphism generator

CSS neumorphism generator

Create soft, extruded shapes with two matching shadows, one light and one dark. Pick a colour, choose flat, concave, convex or pressed in, and copy the CSS for the box-shadow and background.

#bec3c9Dark shadow
#e5e9efLight shadow

Neumorphism, or soft UI, makes elements look pushed out of or into the page with one light and one dark shadow. It works best when the element and the page share the same colour. Keep contrast in mind, because soft shadows alone can make buttons hard to see for some visitors.

How it works

  1. Choose the surface colour, which should match your page background.
  2. Set distance, blur, intensity and shape.
  3. Copy the CSS.

The two shadows

A dark shadow falls on one side and a lighter highlight on the other, which makes the shape look raised from the surface.

Shapes

Flat is a plain raised shape. Concave and convex add a gentle gradient. Pressed uses inset shadows to look pushed in, which suits active buttons.

Match the background

The effect works only when the element and page share the same colour. Use the same hex code for both.

Accessibility

Soft shadows have low contrast. Add clear labels, icons or borders so controls remain easy to spot.

Questions

Why does mine look flat?

Increase the intensity or distance, and make sure the page background has exactly the same colour. Everything happens in your browser, and nothing you enter is sent anywhere.

Can I use a dark colour?

Yes, but the light highlight needs a larger intensity to show on dark surfaces.

Is it good for buttons?

It suits decorative buttons. For key actions, add more contrast than the style gives you.