Skip to content

Neumorphism Generator

Generate neumorphic soft UI box shadows with adjustable depth, blur, and colors. Free neumorphism CSS generator with live preview and code output.

CSS ToolsGenerators
Instant results
border-radius: 30px;
background: #e0e5ec;
box-shadow: 20px 20px 60px #b0bdcf, -20px -20px 60px #ffffff;

About Neumorphism Generator

Create soft UI (neumorphic) elements with customizable shadows. Neumorphism uses light and dark shadows on a matching background to create an extruded or pressed appearance. Choose between flat, concave, convex, and pressed shapes.

How to Use Neumorphism Generator

1

Set background color

Choose a base color, typically a light gray around #e0e0e0 or a deep gray near #2a2a2a. Pure white or pure black absorbs the shadows so they don't show, which is why off-pure tones work best.

2

Adjust shadow distance and blur

Larger offsets and blur radii produce a more pronounced 3D effect. Eight-pixel shadows give a subtle look, while sixteen pixels or more reads as dramatic. The live preview updates as you tweak the values.

3

Choose extruded or inset

Extruded shadows make the element look raised out of the surface, while inset shadows make it look pressed in. Most interactive elements use both — extruded by default and inset on the active state.

4

Copy CSS

The generator outputs a complete background-color and box-shadow declaration ready to drop into a stylesheet. Apply it to a button, card, or input, and run any text on top through a contrast checker before shipping.

When to Use Neumorphism Generator

Modern UI design

Neumorphism (sometimes called soft UI) had its moment in the early 2020s and is still showing up in fresh designs. The look comes from carefully tuned dual shadows that make elements appear extruded from or pressed into a matching background, and dialing in those values by hand is fiddly enough that a generator pays for itself quickly.

Mobile app aesthetics

Plenty of fitness, banking, and dashboard apps lean on the soft, almost tactile feel that neumorphism produces. It's a clear departure from flat design, and once you've seen a neumorphic toggle or progress ring it's hard to mistake for anything else.

Decorative web elements

On the web the style works best applied selectively, on a hero card or a key call-to-action rather than every element on the page. Designers reach for it to give portfolios and product landing pages a distinctive visual signature without committing to a heavy theme.

Accessibility considerations

The same soft shadows that make neumorphism look pleasant also produce low-contrast surfaces that struggle against WCAG. A good generator lets you preview accessible variants such as darker backgrounds, stronger borders, or more legible text contrast without abandoning the aesthetic.

Neumorphism Generator Examples

Standard neumorphic button

Input
Background color, button shape
Output
.button {\n  background: #e0e0e0;\n  box-shadow: 8px 8px 16px #b8b8b8, -8px -8px 16px #ffffff;\n  border-radius: 12px;\n}

The trick is a paired box-shadow declaration with one dark shadow cast down and to the right and a lighter one cast up and to the left. Combined with a background color that's a hair off the surrounding page, the element appears to have been pressed out of the surface.

Inset (pressed) state

Input
Pressed button look
Output
.button:active {\n  box-shadow: inset 8px 8px 16px #b8b8b8, inset -8px -8px 16px #ffffff;\n}

Add the inset keyword and the same two shadows now read as a depression instead of an extrusion. This is what gives neumorphic buttons their satisfying pressed-down feel and works equally well for sunken inputs and indented containers.

Color variations

Input
Brand color neumorphism
Output
.element {\n  background: #4A90E2;\n  box-shadow: 8px 8px 16px #3a7ac2, -8px -8px 16px #5aa6ff;\n}

Nothing forces neumorphism to be gray. Pick a brand color for the surface, then derive the shadows by darkening and lightening that base by roughly 10 percent each, and the soft 3D effect carries over without losing its identity.

Tips & Best Practices for Neumorphism Generator

  • 1.The background you choose makes or breaks the effect. Pure white or pure black absorbs both shadows, so neither side reads as light or dark. Light gray around #e0e0e0 or a deep gray near #2a2a2a gives both shadows somewhere to register.
  • 2.Derive the two shadow colors from the background rather than picking them in isolation. A shade roughly 10 percent lighter and another 10 percent darker keeps the lighting symmetrical and the effect believable.
  • 3.The same softness that defines the style fights against accessibility. Text sitting on a neumorphic surface still has to meet WCAG, which usually means dark text on a light background and resisting the urge to push contrast lower for the sake of style.
  • 4.Used everywhere, the look becomes monotonous. Apply it to a couple of focal elements (a primary button, a feature card) and let the rest of the page sit in something simpler.
  • 5.Compositors have to render every shadow on every element, so a wall of neumorphic cards can drag frame rates down on lower-end devices. Profile on real hardware if you go heavy on the effect.
  • 6.The trend peaked around 2020-2021 and has cooled since. Use it deliberately if it suits the brand, but be aware that glassmorphism and claymorphism have largely taken its place in fresher designs.

Frequently Asked Questions

Neumorphism is a UI design style that emerged around 2020 in which elements appear softly extruded from or pressed into a matching background. The look comes from carefully matched shadows on a surface that's only slightly different from the page color, and it sits between flat design (no shadows) and full skeuomorphism (realistic textures).