Neumorphism CSS Generator
Make soft UI shapes from a light and a dark shadow: flat, hollow, domed or pressed. Copy CSS, a full button or Tailwind.
Make soft UI shapes from a light and a dark shadow: flat, hollow, domed or pressed. Copy CSS, a full button or Tailwind.
Used Neumorphism CSS Generator? Share how it went to help others.
About this tool
Neumorphism CSS Generator makes the soft look in which buttons and cards seem to be pressed out of the page. The trick is simple. The element has the same color as the page, and two shadows make it stand out: a dark one on the side away from the light and a bright one on the side of the light. The tool works out both shadow colors from the color that you choose. They are lighter and darker versions of the same color and not plain white and black, so the result looks natural on blue or rose as well as on grey. On dark colors, where a bright shadow would look like a glow, it is kept weaker. Choose between four shapes. Flat is the usual raised card. Hollow and domed add a gentle gradient, so that the surface seems to bend inwards or outwards. Pressed turns the shadows to the inside and suits fields, switches and buttons that are held down. You set from which of the four corners the light comes, the distance and the softness of the shadows, their strength and the round corners. Eight colors are ready, and any other can be chosen. If a color is so light or so dark that one of the two shadows cannot be seen, the tool tells you. The code comes in three forms: the CSS of the shape, a complete button with a pressed state and a clear focus ring, and Tailwind classes. The focus ring is important. Soft UI has a known weakness, which is low contrast. The edges of a control should have a contrast of 3 to 1 to what is around it, and soft shadows alone rarely reach that. So give buttons a readable label, an icon or a border, and never show a state such as on or off by the shadow alone. Used for a few elements on a calm page, the style is pleasant. Used for everything, people no longer see what can be pressed.

The one your page has.
Flat, hollow, domed or pressed.
Light, distance and softness.
Shape, button or Tailwind.
Flat, hollow, domed and pressed.
Worked out from your color.
With a weaker bright side.
Four directions.
Calm pages with few controls
Keys that seem to be raised.
ExampleFlat with a distance of 6 px.
Round buttons and a dial.
ExampleDomed with a large radius.
A groove in the page.
ExampleChoose Pressed.
A few large tiles.
ExampleFlat on a light blue page.
Soft tiles on a dark page.
ExampleChoose the color 1f2937.
See how two shadows make depth.
ExampleChange the light and look.
Soft, but usable
The page and the element must have the same color, or the effect is lost.
People who use the keyboard need the ring. It is in the button code.
A good start: 14 px distance and about 30 px softness.
Let the light come from the same corner everywhere.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed Neumorphism CSS Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 25 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.