About this tool
Design a soft-UI, neumorphic block with paired light and dark shadows and copy the CSS. The live preview and code are generated in your browser.
Pick a background colour and adjust the sliders for size (80-320 px, preview only), shadow distance (2-50 px), intensity (2-40%) and blur (2-100 px). Intensity lightens and darkens each colour channel of your background by that percentage to make the highlight and shadow tones. Distance and blur set the two box-shadow values, one offset down-right in the dark tone and one up-left in the light tone. The Concave option switches both shadows to inset and reverses the 145-degree gradient so the shape looks pressed in.
The output has three lines: border-radius (the size divided by six, rounded), a linear-gradient background and the box-shadow. It does not include the page or parent background, and neumorphism only works when the element sits on the same colour as the colour you picked, so set that colour on the container yourself. Width and height are not part of the output either.
Very light or very dark backgrounds clamp at white or black, so the effect is weak at both extremes; mid-tone greys work best. Soft shadows also have low contrast, so check accessibility before using them on buttons. Nothing is uploaded.