Boneyard Tools

CSS Neumorphism (Soft UI) Generator

Design a neumorphic, soft UI surface with live controls. Choose a base color, adjust distance, intensity and blur, switch between flat, concave, convex and pressed, then copy the generated CSS.

How to generate neumorphism CSS

  1. Pick the base color and match your page background to the same color.
  2. Drag the distance, intensity and blur sliders and choose a shape.
  3. Copy the generated background and box-shadow into your stylesheet.

Examples

Soft raised card

base #e0e0e0, distance 20, intensity 0.15, blur 60, flat
box-shadow: 20px 20px 60px #cfcfcf, -20px -20px 60px #e2e2e2;

Pressed (inset) button

base #e0e0e0, distance 20, intensity 0.15, blur 60, pressed
box-shadow: inset 20px 20px 60px #cfcfcf, inset -20px -20px 60px #e2e2e2;

Frequently asked questions

What is neumorphism (soft UI)?

Neumorphism, or soft UI, is a style where elements look extruded from the background. It uses a background that matches the page plus two shadows, a dark one and a light one on opposite corners, so the surface appears to softly rise or sink.

Why do the element and page need the same background color?

The soft UI effect relies on a single flat surface color shared by the element and the page. The light and dark shadows are tinted from that base color, so a mismatched page background breaks the illusion of an extruded shape.

What is the difference between flat, concave, convex and pressed?

Flat keeps a solid surface. Convex adds a gradient that bulges outward and concave dips inward, both using the same dual shadow. Pressed renders the shadows inset so the element looks pushed into the surface.

How do distance, intensity and blur change the result?

Distance sets how far the two shadows offset from the element. Intensity controls how far the light and dark shades diverge from the base color, so higher means more contrast. Blur softens the shadow edges.

Is neumorphism accessible?

Use it carefully. Low contrast soft UI can be hard to read and the borders are subtle, which may fail contrast guidelines for buttons and inputs. Keep intensity high enough for clear edges and pair it with accessible text and focus styles.

Is my work sent to a server?

No. The preview and the generated CSS are computed entirely in your browser, and nothing you type is uploaded.

Related tools