Neumorphism (Soft UI) Generator
Design stunning extruded and pressed 3D plastic UI effects. Adjust the sliders to generate cross-browser Neumorphism CSS instantly.
What is Neumorphism (Soft UI)?
Neumorphism (a blend of “New” and “Skeuomorphism”) is a modern user interface design trend that focuses heavily on how light interacts with elements in a 3D space. Instead of items looking like they are floating above the background (like traditional Material Design or Flat UI), Neumorphic elements look like they are extruded directly from the background material itself.
Our free Neumorphism CSS Generator calculates the complex light and dark shadow physics required to create this beautiful “soft plastic” effect, generating instant CSS code for your buttons, cards, and input fields.
How the Neumorphic Shadow Math Works
Creating true Neumorphism isn’t as simple as adding a single black drop shadow. It requires matching the background color exactly, and applying two distinct, opposing shadows:
- The Dark Shadow (Bottom Right): Simulates the area where light is blocked, giving the element physical volume. We use a low-opacity black color (e.g.,
rgba(0,0,0, 0.15)) mapped to a positive X and Y offset. - The Light Shadow (Top Left): Simulates the highlight where the main light source hits the element. We use a semi-transparent white color (e.g.,
rgba(255,255,255, 0.7)) mapped to a negative X and Y offset.
UI Design Rule: The golden rule of Neumorphism is that the background color of the webpage and the background color of the element MUST be exactly the same. Contrast is created purely through the dual shadows.
Extruded vs. Pressed Shapes
Our generator allows you to switch between two primary shape styles using the “Shape Style” toggle:
- Extruded (Default): The shadows fall on the outside of the box, making the element look like a button waiting to be pushed.
- Pressed (Inset): The shadows fall inside the box (using the CSS
insetproperty), making the element look like an empty well or a button that has already been clicked down.
A Warning on Accessibility
While Soft UI looks incredibly futuristic and clean, it often suffers from poor contrast ratios. Because the element and background are the same color, visually impaired users may struggle to identify buttons. Always ensure your text and icons placed inside Neumorphic boxes have a high contrast ratio to maintain accessibility standards.
Get Premium Access
Unlock advanced features with a quick 1-click Sign In!