ZapKit

Neumorphism generator

Make soft UI elements that look gently pushed out of, or pressed into, the page, with the paired highlight and shadow worked out from one colour.

What is neumorphism?

Neumorphism, or soft UI, is a design style where elements appear to be moulded from the same material as the background, raised or pressed in by soft light and shadow rather than outlined or coloured. It gives interfaces a calm, tactile feel.

Pick a surface colour and this generator works out matching light and dark shadows. Choose flat, concave, convex or pressed, then fine-tune distance, blur, shadow strength and corner radius while a preview card updates, and copy the CSS.

How to use the Neumorphism generator

  1. 1.Pick the surface colour

    The element and the page behind it share this colour.

  2. 2.Shape it

    Choose flat, concave, convex or pressed, then distance, blur, strength and radius.

  3. 3.Copy the CSS

    Background and the two box-shadows.

Example: a soft card

The default light grey-blue surface:

Surface
#e3e8f0
Distance / blur
12px / 28px
Shadow strength
18%
Shape
Flat, 24px corners

A card that seems to rise gently out of the page, lit from the top left.

Two shadows, one light

Neumorphism imagines a light from the top left: a lighter shadow up and left, a darker one down and right, both calculated from the surface colour. Pressed shapes use inset shadows to look sunk in, while concave and convex add a subtle gradient across the surface.

The style's weakness is low contrast, which makes buttons hard to spot for many people. Use it for decorative cards, and give interactive elements clear labels, icons or a coloured accent.

Frequently asked questions

Why does it only work on one colour?

The illusion needs the element and its background to be the same colour, so only the shadows define the shape.

Does it work on dark backgrounds?

Yes. Choose a dark surface colour; both shadows are worked out from it.

How do I make a pressed button state?

Use Flat for the normal state and Pressed for :active.

Can I share it?

Yes. Settings are kept in the page address.

More Developer tools