Free Online CSS Neumorphism Generator for Soft UI Shadows
Pick one base colour and the tool works out the light and dark shadow from it, which is the whole trick behind soft UI. Set the distance, the blur, the intensity and which corner the light comes from, switch between raised and pressed, and read the measured contrast ratio before you commit.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
Making a neumorphic control usable
Keep the look, add something a person can actually see.
The style itself is not forbidden, but a control whose only boundary is a soft shadow fails WCAG 1.4.11 Non-text Contrast, which asks for at least 3 to 1 between a control's visual boundary and what is next to it. Three changes keep most of the look and fix most of the problem:
- Give buttons a real border, or a background that differs from the surface, not only shadows.
- Keep the text on top well above 4.5 to 1. Soft grey text on a soft grey card is where this style usually fails first.
- Never rely on raised versus pressed alone to say what is selected. Add a tick, a label, a colour, or text.
Also worth remembering: a shadow is not visible to someone using a high contrast mode, and Windows high contrast throws box shadows away entirely. A neumorphic toggle in that mode becomes a rectangle with no state at all, which is the strongest argument for pairing it with something that is not a shadow.
How to Build Neumorphic Shadows in CSS
A few steps, and nothing is uploaded.
What to Know About Neumorphism
Including the accessibility problem that is built into the style.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the CSS Neumorphism Generator
Neumorphism, or soft UI, is the look of a control pressed out of the surface behind it rather than placed on top of it. It is made with a single element and two shadows: one lighter than the background on the side facing the light, one darker on the opposite side. Both shadow colours have to come from the background colour itself, because the illusion depends on them being the same hue. That is the only rule, and it is the one most hand-written attempts get wrong.
This page does that arithmetic for you. Give it one base colour and it lightens and darkens that colour by the intensity you set, using the colour helpers in the shared engine rather than a table of fixed greys, so the effect works on a warm beige or a cool slate just as well as on the usual light grey. The distance and blur controls move the pair of shadows, the light source picks which corner they fall from, and the state switch adds inset to both to make the shape look pressed.
The contrast readout is the part that took the most thought, because it is the part that argues against the style. Soft UI works by making a control almost the same colour as its surroundings, which is exactly what accessibility guidance tells you not to do. Rather than hide that, the page measures the ratio between the darker shadow edge and the surface, and the ratio between your text and the base, and states when each one falls short. The style is still yours to use; you just get to use it knowing what it costs.
Frequently Asked Questions
Shadow colours, inset, contrast ratios and when not to use this.
inset keyword. The same two shadows, the same distance and the same blur are drawn inside the shape instead of outside it, which reads as a dent. Because the values are identical, a button can move between the two states by swapping one word, and that is what the output shows when you switch the state control.