Code · Made a little simpler

CSS Neumorphism Generator

Build a soft CSS surface with paired light and dark shadows. Adjust the shape, depth and corners, then preview or download the CSS.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

CSS Neumorphism Generator: how to use it

  1. Choose a surface color, a raised or recessed shape and a light direction. The preview uses the same base color behind the sample.
  2. Adjust the shadow offset, blur and strength. Set the corner radius to fit the size of your element.
  3. Copy the result or download neumorphic-surface.css. Apply the class to an element on a matching background.

Limits and notes

Runs in your browser. Uses six-digit sRGB hex colors. Shadow offset is 0–32 px, blur is 0–64 px, strength is 0–100%, and corner radius is 0–96 px.

How your privacy works →

CSS Neumorphism Generator: common questions

How do I make a neumorphic element look pressed?

Select Inset. Both shadows move inside the element to give it a recessed edge.

What does the strength setting change?

A higher percentage mixes more white into the light shadow and more black into the dark shadow. The base color stays the same.

Does the downloaded CSS set the size of my element?

Set the width and height in your layout. The exported class sets the background, corner radius and two shadows.

Guides