This generator produces neumorphic (soft-UI) CSS from a single base color. It computes matching light and dark shadows automatically and previews the result live, so you get a balanced soft-UI effect without hand-tuning hex values.
How it works
Neumorphism simulates a soft light hitting a surface of one solid color. Two
box-shadow values do the work: a darker shadow on the side facing away from the
light and a lighter highlight on the lit side.
The tool derives both shadow colors from your base color by mixing it toward
black and toward white by the intensity percentage. The light-source setting
decides the offset signs — for example a top-left light puts the dark shadow at
the bottom-right and the highlight at the top-left. Distance sets the offset in
pixels, and the blur is distance times your blur multiplier. Pressed mode adds
the inset keyword so the shadows fall inside the element; concave and convex add
a subtle linear gradient between the two shades.
.neumorphic {
border-radius: 28px;
background: #e0e0e0;
box-shadow: 14px 14px 28px #bebebe, -14px -14px 28px #ffffff;
}
Tips and notes
For the illusion to hold, the element and its parent container must use the same background color. Keep intensity moderate (around 10–20%) so the shadows stay soft. Use raised for buttons and cards, pressed for inputs and active toggles. Because neumorphism has weak contrast by nature, always add visible focus outlines and verify text contrast reaches at least 4.5:1.