How to use the Neumorphism CSS Generator
- Pick the surface colour and shape style.
- Adjust size, radius, distance, blur and intensity.
- Copy the CSS.
What does this tool do?
Neumorphism makes elements look pressed out of, or into, the background using two shadows: a lighter one towards the light source and a darker one away from it. The surface colour must match the background.
Pressed (inset) shapes work well for active buttons and inputs; convex and concave add a subtle gradient.
Why use it?
- Four shape styles.
- Shadows derived from your colour.
- Live preview.
Use cases
- Soft buttons, toggles and cards in UI concepts.
- Dribbble-style mockups and portfolio pieces.
- Pressed states for buttons and inputs.
The classic recipe
background: #e0e0e0;
box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff;
The dark shadow falls away from the light, the light one faces it, and the element's colour matches the page.
Common mistakes
- Low contrast — soft shadows alone can make buttons hard to see.
- Using it on a background that doesn't match the element's colour.
- Using it for every element, so nothing stands out as clickable.
Accuracy and limits
- Neumorphic buttons have low contrast — add labels, icons and visible focus states for accessibility.
Privacy
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.
Frequently asked questions
Is neumorphism accessible?
It can be hard to see. Add clear text, icons or a contrasting border for key controls.
What does pressed (inset) do?
It makes the shape look pushed into the surface — good for active buttons and inputs.
Does it work on dark backgrounds?
Yes, but you need a slightly lighter and a slightly darker shade of the dark colour.
Content last updated . See how M2Toolkit works.