Skip to content
Settings → CSS, TailwindDeveloper tools

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.

Did this tool work for you?

Used Neumorphism CSS Generator? Share how it went to help others.

About this tool

About Neumorphism CSS Generator

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.

Neumorphism CSS Generator tool

Where soft UI fits

Calm pages with few controls

Calculators

Keys that seem to be raised.

ExampleFlat with a distance of 6 px.

Music players

Round buttons and a dial.

ExampleDomed with a large radius.

Switches and fields

A groove in the page.

ExampleChoose Pressed.

Smart home screens

A few large tiles.

ExampleFlat on a light blue page.

Dark dashboards

Soft tiles on a dark page.

ExampleChoose the color 1f2937.

Learning shadows

See how two shadows make depth.

ExampleChange the light and look.

Neumorphism tips

Soft, but usable

Same color behind

The page and the element must have the same color, or the effect is lost.

Keep labels readable

Check text against the color of the page.

Open Contrast Checker

Show the focus

People who use the keyboard need the ring. It is in the button code.

Softness is twice the distance

A good start: 14 px distance and about 30 px softness.

One light

Let the light come from the same corner everywhere.

Ordinary shadows

For normal cards a simple shadow is enough.

Open Box Shadow Generator
Built & tested by

HemantInsights

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

Answers and guidanceFrequently Asked Questions
What is neumorphism?
A style, also called soft UI, in which elements look as if they were pressed out of the page by a light and a dark shadow.
Why do I not see the effect?
The element and the page have different colors, or the color is nearly white or black.
Does it work with dark colors?
Yes, with middle dark tones. On pure black the dark shadow cannot be seen.
How do I make a pressed button?
Copy the Button code. It changes to inner shadows while the button is held.
Is neumorphism bad for accessibility?
Its edges have little contrast. Add a label, an icon or a border, and a focus ring.
Which browsers support it?
All of them. It is made of ordinary box shadows and gradients.
What is the difference from glassmorphism?
Glass lets a blurred background through. Soft UI is solid and only uses shadows.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.