Search tools...
Developer Tools

CSS Neumorphism Generator Guide: Soft UI Shadows (2026)

Build the soft, extruded neumorphism look with twin shadows — and learn when to use it (and when not to).

5 min readUpdated May 8, 2026CSS, Design, Neumorphism, UI Trend

A CSS neumorphism generator produces the "soft UI" look — buttons and cards that look extruded from the background, like clay or foam. The trick is two box-shadows: one dark, one light, on opposite sides.

This guide covers the recipe, when to use it (and the major accessibility caveat), and the difference between extruded and inset variants.

Free Tool

Generate Neumorphism CSS — Free

Soft UI shadows with live preview. Copy ready-to-use CSS.

Open Neumorphism Generator ->

The Neumorphism Recipe

.neuro {
  background: #e0e5ec;
  border-radius: 20px;
  box-shadow:
    8px 8px 16px #b8bec7,
    -8px -8px 16px #ffffff;
}

Three ingredients:

  1. Background matches parent — Element and surrounding area share the same color.
  2. Dark shadow on one side — Usually bottom-right.
  3. Light shadow on opposite side — Usually top-left, in white.

Extruded vs. Inset

Extruded (popping out)

box-shadow: 8px 8px 16px #b8bec7, -8px -8px 16px #ffffff;

Inset (pressed in)

box-shadow: inset 8px 8px 16px #b8bec7, inset -8px -8px 16px #ffffff;

Use extruded for buttons and cards; use inset for input fields and "pressed" button states.

Picking the Right Shadow Colors

The dark and light shadows must derive from the background color:

  • Dark shadow — Background color minus ~10% lightness.
  • Light shadow — Background color plus ~10% lightness (or pure white if BG is light gray).

For background #e0e5ec:

  • Dark: #b8bec7
  • Light: #ffffff

If you pick arbitrary colors, the effect breaks — it must look like the same surface deformed.

Accessibility Warning

Important

Neumorphism has serious contrast problems. Buttons can be nearly invisible to users with low vision because the only "edge" is a soft shadow, not a contrasting color.

Mitigations:

  • Add a visible border or icon for interactive elements.
  • Use stronger colors for text inside neumorphic buttons.
  • Ensure focus states are highly visible (outline, not just shadow change).
  • Provide a "high contrast" theme alternative.

Don't use neumorphism for critical actions or financial UIs.

When to Use Neumorphism

Good fit:

  • Personal portfolios, dribbble shots
  • Music or meditation apps where softness matches mood
  • Showcasing a single hero element

Avoid:

  • Data-heavy dashboards
  • Forms with many input fields
  • Anything needing strong visual hierarchy

How to Use the Tool (Step by Step)

  1. 1

    Pick Background Color

    Light gray or pastel — must match parent.

  2. 2

    Choose Direction

    Extruded (popping) or inset (pressed).

  3. 3

    Adjust Shadow Distance

    4-12px gives the cleanest look.

  4. 4

    Tune Blur Radius

    Equal or slightly larger than offset.

  5. 5

    Copy CSS

    Paste the box-shadow rule.

Frequently Asked Questions

Why does my neumorphism look ugly?+

The element's background must match its parent's background exactly. Otherwise the shadows look detached.

Is neumorphism still in style?+

It peaked around 2020. Still works for niche projects but rarely seen in mainstream production UIs due to accessibility issues.

Can I do neumorphism on dark backgrounds?+

Yes — pick a dark gray, with shadow colors slightly darker and lighter. The contrast issue gets even harder, though.

How big should the shadow offset be?+

4-12px works for most cases. Larger offsets feel cartoonish; smaller ones lose the effect.

Does neumorphism work with rounded corners?+

Yes — actually looks best with 16-24px border-radius. Sharp corners make the effect feel awkward.

Free — No Signup Required

Generate Neumorphism CSS — Free

Soft UI shadows with live preview. Copy ready-to-use CSS.

Open Neumorphism Generator ->

Related Guides