Design soft UI components with dual-shadow neumorphism. Control shadow, blur, shape, and light direction — then copy the CSS.
Tasks
Done
Left
Neumorphism Generator is a free, browser-based tool for designing soft UI "neumorphic" CSS components. Pick a base colour, dial in your shadow parameters, select a shape type, and watch the live preview update instantly. When you're happy, copy the .neumorphic CSS rule and paste it into your project.
Neumorphism (a portmanteau of new and skeuomorphism) places elements on a surface using two shadows — one dark, one light — to simulate a soft, embossed appearance as if the element is extruding from the page. It gained popularity around 2020 as a contrast to flat design.
The swatch row below the colour picker shows you the auto-computed dark and light shadow colours. These are derived from your base colour using darkening and lightening algorithms rather than preset values.
#e0e5ec) and soft pastels work best.inset) to appear pushed in — ideal for active states. Concave and Convex add a gradient to suggest curved surfaces.The effect is produced entirely by box-shadow. Two shadows are cast — one using a darkened variant of the base colour (placed in the direction away from the light source) and one using a lightened variant (placed toward the light source). This mimics how a raised surface would catch and cast light on a flat background.
The dark shadow colour is computed as rgb(r*(1−i), g*(1−i), b*(1−i)) where i is the intensity. The light colour uses rgb(r + (255−r)*2i, …). These are applied as box-shadow: Xpx Ypx Bpx darkColor, −Xpx −Ypx Bpx lightColor.
For Pressed, both shadows use the inset keyword, which renders them inside the element border box rather than outside — making the element appear pushed into the surface instead of raised from it.
For Concave and Convex, a linear-gradient background is added using the same dark/light colours. Concave applies the gradient in the same direction as the dark shadow (light source side gets the lighter colour); Convex reverses it.
The critical accessibility note: neumorphism has poor contrast between element boundaries and background because both use the same colour. Use it only for decorative or non-interactive elements unless you increase intensity significantly.
Let us know what's wrong with Neumorphism Generator.
Thank you — report received!