- Choose a base color by using the color picker or entering a HEX code.
- Adjust the 'Size' slider to match the dimensions of your target HTML element.
- Modify the 'Radius' slider to round the corners of your element.
- Use the 'Distance' and 'Blur' sliders to simulate the depth and height of the element.
- Adjust the 'Intensity' to make the shadows sharper or softer.
- Select a surface shape: Flat, Pressed, Concave, or Convex.
- Copy the generated CSS from the output box and paste it into your project's stylesheet.
CSS Neumorphism Generator
CSS Neumorphism Generator tool on AzWebTools.
Result
Fill inputs and click run.
How to Use This Tool
Learn More About CSS Neumorphism Generator
Understanding Neumorphism in CSS
Neumorphism (a portmanteau of 'New' and 'Skeuomorphism') is a design trend characterized by soft, minimal UI elements that appear to be made of the exact same material as their background. Unlike Material Design, which uses distinct layers floating above the background, Neumorphic elements look like they are extruded directly from the background surface.
The Mechanics of the Effect
At the core of a Neumorphic element is the CSS box-shadow property. To achieve the 3D plastic look, two opposing shadows are applied to a single element:
- A Light Shadow: Positioned towards the simulated light source (usually top-left), using a lighter tint of the base background color.
- A Dark Shadow: Positioned away from the light source (usually bottom-right), using a darker shade of the base background color.
Surface Shapes
- Flat: Uses a solid background color matching the parent container, relying purely on the dual box-shadows for visual depth.
- Pressed (Inset): Moves the shadows inside the element using the
insetkeyword, making it look like an indented well or a pushed button. - Concave & Convex: Utilize subtle
linear-gradientbackgrounds that transition between slightly lighter and darker shades of the base color to simulate a curved, tactile surface.
Accessibility Considerations
While visually striking, Neumorphism presents significant accessibility challenges. Because the elements rely on low-contrast shadows rather than distinct borders or bright colors to indicate boundaries, they can be difficult for visually impaired users to perceive. When implementing Neumorphic UI, always ensure that text has high contrast against the background, and consider adding clear states (like color shifts or bolder outlines) for interactive focus and active states.
The Origin of Neumorphism
- Coined By
- Michal Malewicz
- Year Popularized
- 2019
- Core CSS Property
- box-shadow
Examples
Soft Light (Default)
{"baseColor":"#e0e0e0","distance":20,"blur":60,"intensity":15,"shape":"flat"}{
"baseColor": "#e0e0e0",
"distance": 20,
"blur": 60,
"intensity": 15,
"shape": "flat"
}Dark Mode Pressed
{"baseColor":"#292929","distance":10,"blur":20,"intensity":25,"shape":"pressed"}{
"baseColor": "#292929",
"distance": 10,
"blur": 20,
"intensity": 25,
"shape": "pressed"
}Concave Pop
{"baseColor":"#f0f0f0","distance":25,"blur":50,"intensity":20,"shape":"concave"}{
"baseColor": "#f0f0f0",
"distance": 25,
"blur": 50,
"intensity": 20,
"shape": "concave"
}Use Cases
- Designing soft, tactile buttons for modern web application interfaces.
- Creating dashboard cards and layout containers that blend seamlessly into the page background.
- Styling custom form elements like toggles, switches, and sliders with a realistic pressed or raised effect.
- Generating rapid UI prototypes in code without needing complex graphics software.