Neumorphism CSS Generator
Create soft, extruded “neumorphic” UI elements and copy the box-shadow CSS.
How to use the Neumorphism Generator
- Pick a background colorNeumorphism works best when the element has the same color as the page behind it.
- Shape the shadowAdjust distance, blur and intensity, choose flat, concave, convex or pressed, and set the light direction.
- Copy the CSSCopy the border-radius, background and box-shadow lines into your stylesheet.
Example
Color #e0e0e0, distance 20, blur 60, intensity 0.15 gives box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
Choose Pressed to get the same shadows with inset, which looks like a button pushed into the page.
Frequently asked questions
What is neumorphism?
A “soft UI” style where elements look pressed out of, or into, the background. It uses one light and one dark shadow on an element that matches the page color.
Is neumorphism accessible?
It can be hard to see, because the contrast is low. Use it for decoration or large surfaces, and give buttons and inputs clear text, borders or focus styles.
Why does it not look right on a white page?
The light shadow needs room to be brighter than the background. On pure white it disappears, so use a light grey or tinted background instead.