About the Neumorphism Generator tool
Neumorphism, or soft UI, makes elements look as if they are pressed out of or into the same material as the background. The trick is a pair of box shadows: a darker one on the side away from an imagined light source and a lighter one on the side facing it, both derived from the base colour. Calculating those shades by hand for every colour is tedious.
This neumorphism generator does it for you. Pick a base colour and the tool calculates matching light and dark shadow colours from the intensity setting. Adjust size, corner radius, shadow distance and blur, and choose the light source from any of the four corners. Four shapes are available: flat uses a solid fill, concave and convex add a subtle gradient to look dished or domed, and pressed switches to inset shadows for a pushed-in look.
The preview uses the same colour for the element and its background, as the style requires, and the CSS output includes width, height, radius, background and both shadows ready to copy.
How to use Neumorphism Generator
- Choose a “Base colour”; soft mid-light greys and pastels work best.
- Pick the “Light source” corner with the arrow buttons.
- Adjust “Size”, “Radius”, “Distance”, “Intensity” and “Blur”.
- Select a “Shape”: flat, concave, convex or pressed.
- Copy the generated CSS from the “CSS code” panel.
Features
Automatic shadow colours
Light and dark shadows are calculated from your base colour and intensity.
Four shapes
Flat, concave, convex and pressed (inset) variants of the soft UI style.
Light direction
Move the light source to any of four corners; shadows and gradients follow.
Fine control
Independent sliders for size, radius, distance, intensity and blur.
Clean CSS
Outputs a single class with background and a two-layer box-shadow.
When to use it
- Design soft UI buttons and toggles for a smart-home or music app mock-up.
- Create a pressed state for a neumorphic button.
- Build dashboard cards for a Dribbble-style portfolio piece.
- Experiment with circular knobs and icon containers.
- Learn how multiple box shadows create depth.
Frequently asked questions
What is neumorphism in UI design?
A style that combines flat design with skeuomorphic depth, using light and dark shadows on a single background colour so elements look extruded or pressed in.
Why must the element and background share a colour?
The illusion depends on the element seeming to be made of the same surface. A different fill breaks the effect and just looks like an ordinary shadow.
Is neumorphism accessible?
Its low contrast edges can be hard to see, especially for buttons. Add clear labels, icons, focus outlines and sufficient text contrast if you use it in production.
How do I make a pressed button state?
Use the pressed shape, which switches both shadows to inset. Apply that CSS on :active or for a toggled state.
Which colours work best?
Light, low-saturation colours such as #e0e5ec. Very dark or very bright colours leave little room for a visible light or dark shadow.