Neumorphism generator

This neumorphism generator builds soft UI surfaces from one base colour and two offset shadows, with a live preview and copy-ready box-shadow CSS for flat, concave, convex and pressed shapes.

Design soft UI surfaces with a live preview: one base colour, two offset shadows, copy-ready box-shadow CSS in flat, concave, convex and pressed shapes.

How to use the neumorphism generator

  1. Pick the base colour, the same colour as the surface the element sits on, with the HEX field or the colour picker.
  2. Set the preview size, border radius, shadow distance and intensity; blur starts at 2× the distance and keeps following it until you move it.
  3. Choose a shape, compare it in the preview, then click Copy CSS and paste the declarations into your stylesheet.

Auto: 2 × distance (40px).

Shape

Generated CSS

background: #e0e5ec;
box-shadow: 20px 20px 40px #babfc6, -20px -20px 40px #ffffff;
border-radius: 40px;

When neumorphism works, and when it hurts

Soft UI is at its best on calm, solid surfaces: cards, toggles, keypads, media players and calculator buttons that sit on a single flat background. The effect depends on the element sharing its background colour with the page, so the moment you move the card onto a photo, a gradient or a different tile colour, the two shadows stop reading as light and shape.

The trade-off is contrast. Neumorphism keeps its edges deliberately soft, so body text, labels and icons can easily fall below WCAG AA against the base colour. Before you ship a soft-UI screen, check your text colour against the base with the color contrast checker, darken the copy until the ratio clears 4.5:1, and give every control a visible focus outline rather than relying on the shadow alone.

Copy-ready neumorphism examples

Raised card

background: #e0e5ec;
box-shadow: 20px 20px 40px #babfc6, -20px -20px 40px #ffffff;
border-radius: 40px;

Pressed input (inset)

background: #e0e5ec;
box-shadow: inset 6px 6px 12px #babfc6, inset -6px -6px 12px #ffffff;
border-radius: 12px;

Convex toggle

background: linear-gradient(145deg, #ffffff, #babfc6);
box-shadow: 20px 20px 40px #babfc6, -20px -20px 40px #ffffff;
border-radius: 40px;

Related CSS tools

Frequently asked questions

What is neumorphism in CSS?

Neumorphism (soft UI) is a style where an element keeps the same background colour as the surface behind it and is shaped only by two offset shadows: a light one from the top left and a dark one from the bottom right. The result looks like the element was pressed out of the same material as the page. This generator produces that exact pair of box-shadow values, with or without inset.

Which base colour should I use?

Pick the same colour as the background the element sits on, because the shadows only read when the surface and the page match. A soft mid-tone grey such as #e0e5ec is the classic choice; the tool derives the light highlight and the dark shadow from whatever base you enter, so a dark base like #22252b works too.

Why does the text on my neumorphic card fail contrast?

Neumorphism deliberately keeps edges soft and low contrast, so default grey-on-grey text can fall below WCAG AA. Run your text colour against the base colour with the color contrast checker, darken the text or the icon colour until the ratio clears 4.5:1, and keep a visible focus outline on anything interactive.

Does neumorphism hurt performance or accessibility?

box-shadow, including the inset variant, is cheap to render compared with backdrop-filter effects, so soft UI does not carry the scrolling cost glassmorphism does. The real risks are contrast and affordance: buttons must still look clickable and inputs must show a pressed (inset) state, so never rely on shadow alone to signal a control.

More CSS generators

Color tools

Image tools

Image & SVG tools

Typography & units

More free tools

All free tools