Double-Layered Box-Shadow Compositing
The technique of chaining two distinct shadow declarations within a single CSS property, separated by a comma, to simultaneously render a light source highlight and a structural drop shadow.
Instantly generate CSS code for soft UI (Neumorphism) designs. Dial in your distance, intensity, and blur to create perfect raised or inset elements.
Neumorphism Generator is a free, browser-based tool from UseToolSuite's Color & CSS Tools collection. All processing happens locally on your device — your data is never uploaded to any server. Use the tool below, then scroll down for detailed documentation, frequently asked questions, and related resources.
Neumorphism (or Soft UI) is a design trend that blends flat design with skeuomorphism. It creates elements that appear to be extruded from or pressed into the background itself, rather than floating on top of it. This is achieved by using exactly the same background color for the element and its parent, paired with two precisely calculated box-shadows (one light, one dark).
Input the root canvas background color. The engine mathematically calculates the exact opposing light and dark shadow matrices based on luminosity.
Manipulate the simulated light source angle and depth, forcing the engine to dynamically recalculate the X/Y offsets and blur radii.
Copy the resulting dual `box-shadow` CSS rule tree perfectly tailored to mimic extruded or inset physical matter.
Click to rate
Sorry it didn't meet your expectations. We're always looking to make these tools better. What was missing or broken?
Open GitHub IssueEssential terms and definitions related to Neumorphism Generator.
The technique of chaining two distinct shadow declarations within a single CSS property, separated by a comma, to simultaneously render a light source highlight and a structural drop shadow.
The photometric measure of the luminous intensity per unit area of light traveling in a given direction, representing the perceived brightness of the base color.
A specific CSS modifier applied to the `box-shadow` property that forces the shadow to be drawn inside the border edge, creating the illusion of a stamped or recessed cavity.
The engine parses your base hex code into an HSL (Hue, Saturation, Lightness) array. It then branches out, incrementing the Lightness channel by 15% for the top highlight and decrementing it by 15% for the bottom shadow, ensuring mathematical harmony regardless of the base color.
Neumorphism relies entirely on low-contrast, soft shadows to delineate component boundaries rather than harsh borders or distinct background colors. Visually impaired users or cheap TN-panel monitors often cannot distinguish these subtle gradients, making the UI appear completely flat and unusable.
Yes. Generating massive `blur-radius` calculations across dual shadows (especially inset) forces heavy CPU paint operations. When animating Neumorphic elements, you must rely on shifting the element's scale or opacity, never animating the `box-shadow` property itself.
Common errors developers encounter and how to resolve them.
Sub-Pixel Rendering Artifact Blurs If your X and Y shadow offsets utilize decimal fractions (e.g., 5.5px), certain browser engines will attempt sub-pixel anti-aliasing, resulting in a dirty, muddy shadow bleed. The generator aggressively rounds all distance calculations to absolute integers to ensure crisp rendering.
Transparent Background Bleed Neumorphism fundamentally requires the element to possess the exact same `background-color` as its parent container. If your element is set to `background: transparent`, the dual shadows will bleed inward, utterly destroying the physical illusion.