Design tools

Neumorphism Generator

Neumorphism CSS Generator

Soft UI (neumorphic) CSS: flat, concave, convex and pressed shapes.

About this tool

About Neumorphism Generator

Neumorphism, or soft UI, makes elements look as if they are pressed out of the page itself. The trick is two shadows on a surface the same colour as the background: a darker one on the side away from the light and a lighter one on the side facing it. This generator works out both shades from your surface colour and an intensity setting, so the effect stays balanced whether you use classic light grey, pastel or a dark theme. Choose the shape (flat, concave or convex, which add a subtle gradient, or pressed, which flips the shadows inward), pick one of four light directions, and adjust size, corner radius, distance and blur. The output is a small CSS block with the matching page background colour, plus a Tailwind version. A reminder about contrast is built in, because soft UI looks best when buttons still have clear labels and focus states. Everything is computed in your browser. Start from 21 soft UI templates for cards, round buttons, pressed states, input wells, dials and coloured surfaces.

Built and maintained by Abhi JainUpdated

How to Create a Neumorphic Element

  1. 1

    Pick a surface colour

    Choose the surface colour; the page background should use the same colour.

  2. 2

    Choose shape and light

    Select Flat, Concave, Convex or Pressed, and the light source corner.

  3. 3

    Adjust the depth

    Set the size, corner radius, distance, blur and intensity.

  4. 4

    Copy the code

    Copy the CSS or the Tailwind classes.

Neumorphism Generator: questions and answers

What is neumorphism in web design?

A style where elements share the background colour and are defined only by a light and a dark shadow, so they look extruded from or pressed into the surface.

How do I make a pressed neumorphic button?

Use the same two shadows with the inset keyword. Choose Pressed, or switch between Flat and Pressed on :active to make a button that pushes in when clicked.

Why does neumorphism look wrong on white?

Pure white leaves no room for a lighter highlight. Use a slightly darker surface such as #e0e5ec so both the light and the dark shadow are visible.

Is neumorphism accessible?

On its own it has low contrast. Add clear text or icons, strong focus outlines and enough contrast for labels, and avoid using the effect as the only sign of a control's state.

Are there neumorphism templates?

Yes. 21 templates cover raised and pressed cards, round and pill buttons, toggles and input wells, concave dials, pastel and dark surfaces, and different light directions. Each sets the colour, shape, size, distance, blur and intensity so you can fine-tune from there.