Neumorphism Generator

Neumorphism (soft UI) makes elements look pressed out of, or into, the page itself. It works with two shadows on the same colour as the background: a darker one away from the light and a lighter one towards it. Pick the surface colour, light direction, distance, blur and intensity, choose flat, concave, convex or pressed, and copy the CSS.

Soft UI
Shape
Light comes from

Soft, mid-light colours work best; pure white or black has no room for highlights

Soft UI edges are faint by design. Dark grey text (#333333) on this surface has 9.98:1 contrast; give buttons a clear label or icon so people can find them.

Code
.soft {
  border-radius: 28px;
  background: #E0E5EC;
  box-shadow: 12px 12px 24px #C6CBD2, -12px -12px 24px #FFFFFF;
}

Put it on a parent with background: #E0E5EC; the effect needs the same colour around it.

Generating runs in your browser. What you type never leaves this device.

Features

  • Flat, concave, convex and pressed (inset) shapes

  • Light from any of the four corners

  • Distance, blur, intensity, size and corner radius

  • Shadow colours worked out from your surface colour in OKLCH, so they stay in the same hue

  • Contrast hint for text on the surface; CSS and Tailwind output

Where soft UI fits

Smart home and music app mock-ups

Dials, toggles and play buttons are the classic soft UI examples.

Dashboards and widgets

Soft tiles on a light grey background for a calm, tactile look.

Pressed states

Use the pressed shape for the active state of a soft button.

Making neumorphism work

The background must match

The effect only works when the element and the area around it share the same colour. The CSS note tells you which background colour to put on the parent.

The four shapes

  • Flat: same colour, raised by its shadows.
  • Concave: a gradient that is darker where the light comes from, so the surface looks scooped in.
  • Convex: the opposite gradient, so it bulges out.
  • Pressed: both shadows inside (inset), as if pushed into the page.

Accessibility

Soft UI edges are faint by design, which makes buttons hard to find for people with low vision. Give interactive elements a clear label or icon with good contrast, a visible focus ring, and do not rely on the shadow alone to show state.

Related tools

Neumorphism Generator - FAQ