What Is Neumorphism?
Neumorphism (neomorphism) is a design trend that creates soft, extruded UI elements using carefully balanced inner and outer shadows on a matching background. The effect mimics physical surfaces — elements look like they're raised from or pressed into a clay-like material. It combines the clean simplicity of flat design with subtle depth cues.
This generator lets you customize shadow distance, blur, intensity, element size, border-radius, and background color. Toggle between raised and pressed states. The tool outputs clean CSS with both light and dark shadow values.
Design Considerations
- → Background color must match. Neumorphism only works when the element background and page background are the same color. The illusion breaks if they differ.
- → Use sparingly. Neumorphism works best for single interactive elements — buttons, toggles, cards. An entire page of neumorphic elements becomes visually flat and hard to navigate.
- → Test accessibility. The subtle shadows can be invisible to users with low vision. Ensure interactive elements have clear focus states and sufficient contrast.
How to Use This Neumorphism
- Set the background color — Choose the surface color — neumorphism works best with light grays or muted pastels.
- Adjust the shadow intensity — Control the strength of the light and dark shadows that create the 3D extruded or inset effect.
- Toggle between raised and pressed — Switch between a raised (extruded) look and a pressed (inset) look for different UI states.
- Set the blur and distance — Fine-tune the shadow blur radius and offset distance to control how prominent the 3D effect appears.
- Copy the CSS — Grab the dual box-shadow declaration that creates the neumorphic effect.
Worked example: is the default neumorphic button visible enough?
Neumorphic elements have no fill or border colour of their own; only the shadows show where they are. On October 12, 2026 we rendered the tool's default CSS (box-shadow: 12px 12px 24px #B0BDCF, -12px -12px 24px #FFFFFF on #E0E5EC) in Chromium 141 and measured contrast against the background.
| What we measured | Colours | Contrast |
|---|---|---|
| Element fill vs page | #E0E5EC vs #E0E5EC | 1.00:1 (identical by design) |
Dark shadow colour #B0BDCF | vs #E0E5EC | 1.50:1 |
| Darkest rendered shadow pixel (blurred) | rgb(182,194,211) | 1.42:1 |
Light shadow #FFFFFF | vs #E0E5EC | 1.27:1 (1.20:1 rendered) |
| WCAG 2.2 SC 1.4.11 target for a component boundary | 3:1 |
- The default edge is under half the WCAG target. SC 1.4.11 asks for 3:1 for the visual information needed to identify a control; the strongest edge here reaches 1.5:1. For a button people must find, add a visible border, an icon or a label with real contrast.
- Darker shadows alone take a lot. Keeping #E0E5EC, the dark shadow needs to be about
#6B7788(3.59:1) to pass;#7A8799gives 2.88:1. At that strength the soft look is gone, which is the core trade-off of the style. - Pressed and raised must differ by more than shadow. Toggle states shown only by swapping inner and outer shadows are easy to miss; pair them with a colour, icon or text change.
- Focus needs its own style. Add a clear
:focus-visibleoutline; the shadow itself does not count as a focus indicator.
Sources
Checked on .
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools