Neumorphism CSS Generator
Pick a base colour and the tool derives a light and a dark shadow. Choose flat, concave, convex or pressed and copy the CSS.
Pick a base colour and the tool derives a light and a dark shadow. Choose flat, concave, convex or pressed and copy the CSS.
Neumorphism, or soft UI, makes an element look pushed out of or into the page by using one light shadow and one dark shadow on the same colour as the background.
Enter the background colour. The tool mixes it toward white and toward black to get the two shadow colours, then writes the CSS. Concave and convex add a subtle gradient.
background: #e0e5ec; border-radius: 20px; box-shadow: 10px 10px 20px #b8bcc2, -10px -10px 20px #f3f5f7;
The element and its parent must share the same colour. The shadows then provide all of the depth.
Often not by default. The low contrast can make edges and states hard to see, so add clear text colours, borders or focus rings.
Yes, but a very dark base leaves little room to go darker, so the effect is subtle. Try a mid-dark grey.
The page styles remove background images in previews, so the gradient is not drawn. It is still in the CSS you copy.
The tool does colour mixing on the red, green and blue values, so it needs HEX input.