Design soft UI elements with realistic shadows.
Create neumorphic cards and controls with light/dark modes and code export.
Outset = raised; Inset = pressed in
.neumorphic {
background: #e0e5ec;
border-radius: 20px;
box-shadow: 10px 10px 20px #a3b1c6, -10px -10px 20px #ffffff;
}Neumorphism (or soft UI) is a design style that uses subtle shadows to make elements appear extruded from or pressed into the background. The element shares the same base color as its container; a light shadow on one side and a dark shadow on the opposite side create a soft 3D effect. Unlike flat design, neumorphism relies on box-shadow with two offsets—one lighter, one darker—to suggest depth. It gained attention around 2019 but has drawn criticism for accessibility and usability. Use it selectively for controls and cards where the background color matches the element.
A neumorphic element needs background equal to the page or container background, plus a dual box-shadow: one shadow offset down-right (darker) and one offset up-left (lighter). For light mode: box-shadow: 10px 10px 20px #a3b1c6, -10px -10px 20px #ffffff;. For inset (pressed) style, use inset: box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;. Combine with border-radius from a Border Radius Generator and refine shadows with a Box Shadow Generator.
Neumorphism uses soft dual shadows on a matching background; glassmorphism uses semi-transparent overlays with backdrop-filter: blur on colorful or textured backgrounds. Neumorphism is monochromatic and subtle; glassmorphism is colorful and layered. Neumorphism works best on flat, single-color backgrounds; glassmorphism needs gradients or images. Use neumorphism for minimal control panels; use glassmorphism for hero overlays and modals.
Neumorphism has well-documented accessibility problems. The effect relies on low-contrast shadows that can be invisible to users with low vision or in bright environments. Buttons and interactive elements may lack clear boundaries. WCAG recommends at least 3:1 contrast for UI components; neumorphic shadows often fail this. Add borders, stronger shadows, or focus rings to improve usability. Avoid neumorphism for critical actions or form inputs without additional affordances.
Neumorphism works for decorative cards, music player controls, or dashboards where the aesthetic is prioritized and users are familiar. It fails for dense UIs, small touch targets, or when clarity is paramount. Use it on light or dark solid backgrounds with sufficient shadow offset and blur. Avoid it for forms, primary CTAs, or content-heavy layouts. Test with real users and in various lighting conditions.
Using different background colors for the element and container breaks the effect. Shadow colors must be derived from the background (slightly lighter and darker). Setting shadow offset or blur too low makes the effect invisible; too high looks muddy. Applying neumorphism to text reduces readability. Nesting neumorphic elements without clear hierarchy confuses users. Forgetting hover and active states leaves controls feeling flat. Use a consistent shadow system across the interface.
Design soft UI elements with realistic shadows.
Free neumorphism generator — set element size, border radius, distance, blur, and intensity to create soft UI shadows. Preview flat, pressed, and raised styles. Copy CSS instantly. No signup.
Adjust sliders and colors with the live preview.
Preview variants (modes, layers, or intensity) before copying.
Paste the generated declaration into your stylesheet or component.
Advertisement
A flat, mid-tone background matching the element fill—strong contrast breaks the soft shadow illusion.
Light and dark shadow offsets flip to simulate depth; use raised for buttons and pressed for active states.
Neumorphism shadow math runs client-side; size and intensity values stay on your device.
Verify in target browsers; backdrop-filter and layered shadows vary by GPU.
For design prototyping—not a substitute for a full design-system token pipeline.
More free tools for the same workflow.
Advertisement
Reviewed by EverydayTools Editorial Team on 2026-05-19.