Neumorphism Shadows: Why They Look Flat and How to Fix Them

PublishedToolNeumorphism (Soft UI) Generator

Contents
  1. Why It Still Looks Flat Even With Shadows
  2. How to Check the Math by Hand
  3. Common Sticking Points
  4. Recap
  5. Frequently Asked Questions

You've probably built a neumorphism (soft UI) card and gotten a blurry smudge instead of the soft raised look in the example images. If you copied the box-shadow values straight over and still got a different result, the slider numbers are probably not the problem — your background color setup is.

A neumorphic shadow isn't one shadow. It's two: a light shadow and a dark shadow, layered in opposite directions. Let's walk through why you need both, and why the background color decides how the whole thing turns out.

Summary ① A neumorphic shadow is complete only when a light shadow and a dark shadow sit on opposite sides of the element. ② The element's background color and the parent (outer) background color must match exactly for the raised or pressed effect to work. ③ The difference between flat, convex, and concave isn't the shadow direction — it's whether the surface itself gets a gradient.

Why It Still Looks Flat Even With Shadows

A normal box-shadow uses a single shadow. One dark shadow falls to one side, which makes the element look like it's floating slightly above the background.

Neumorphism adds a second shadow. The dark shadow goes to the bottom right while the light shadow goes to the top left at the same time, creating the illusion of a single light source shining from above. If either shadow gets swallowed by the background and disappears, only the remaining one shows, so the whole thing just looks like an ordinary drop shadow.

The light shadow is close to white, so it's nearly invisible on a white background. That leaves only the dark shadow, which is why it reads as a "flat smudge."

How to Check the Math by Hand

You can build these shadow values with nothing but a color calculator — no official documentation required. Here's the order.

Calculating the Two Shadow Colors

First, convert the HEX value of the base color you'll use for the card into RGB numbers. For example, light gray e0e5ec is R 224, G 229, B 236.

Next, pick an intensity percentage (say 15%). The dark shadow color is that RGB value mixed 15% of the way toward black (0, 0, 0), and the light shadow color is the same RGB value mixed 15% of the way toward white (255, 255, 255).

Finally, choose the shadow distance and blur you want, then list both shadows in box-shadow, separated by a comma. Write the dark shadow as (distance, distance, blur, dark color) and the light shadow as (-distance, -distance, blur, light color) — same numbers, opposite signs.

Match the Background and the Shadows Come Together

One more condition matters most here. The card's own background color and the background color of the outer element wrapping it must be exactly the same base color. If they differ, the shadow math can be perfect and one shadow will still sink into the background and vanish.

Check it with our free Neumorphism (Soft UI) Generator. Converting a color to RGB and mixing it twice by hand gets old fast. Just set the base color and intensity, and it calculates both shadow values for you and shows them as CSS.

Neumorphism (Soft UI) Generator

Free · No sign-up · Set a base color and intensity and the dual-shadow CSS is calculated for you to copy

Common Sticking Points

SymptomCause
Shadows are there but it looks flatThe card background color and the parent (outer) background color are different
The shadow looks wrong on a white backgroundThe light shadow blends into white and is effectively invisible
Clicking convex or concave doesn't change the shadow directionWorking as intended. The shadow direction is fixed; only the surface gradient changes
Raising the intensity doesn't make it feel softerIf the blur value is too small, higher intensity just makes the shadow harder-edged

Recap

  • A neumorphic shadow is made by layering a dark shadow (mixed toward black) and a light shadow (mixed toward white) on opposite sides.
  • The card background color and the parent background color must be exactly the same so both shadows show and the raised or pressed effect comes through.
  • Flat, convex, and concave are distinguished by the direction of the brightness gradient on the surface, not by the shadow itself.
  • If the backgrounds differ, the light shadow is the first to disappear into the background. So when the shadow looks flat, check whether the backgrounds match before you touch the sliders.
Neumorphism (Soft UI) Generator

Free · No sign-up · Set a base color and intensity and the dual-shadow CSS is calculated for you to copy

Frequently Asked Questions

Why does my neumorphism card look weird on a white background?

The light shadow is the base color mixed toward white, so it barely differs in brightness from a white background. That leaves only the dark shadow visible, which makes it look like a normal shadow. Set the background around the card to the base color too (light gray, for example) and both shadows appear.

Do convex and concave use different shadow directions?

The shadow direction and colors are identical in both shapes. The difference is the gradient on the card's surface. Convex runs the surface gradient from light to dark, and concave reverses the order so it runs from dark to light.

What percentage should I set for intensity?

There's no single correct answer — the value is the ratio at which the base color is mixed toward black and white. Lower values bring the shadows closer to the background for a subtler look, while higher values increase contrast and make them more pronounced, at the cost of the soft feel. The most accurate approach is to adjust the ratio while the background and card colors match, and compare by eye.

This article was adapted from our Korean original. Read the Korean original

Related articles

  1. Harmonious 5-Color Palette Formula and 60-30-10 Color GuideHow to calculate complementary, analogous and triadic palettes with HSL hue formulas, apply the 60-30-10 ratio, and get HEX codes for UI and web design.
  2. CSS Stripe Pattern Background: repeating-linear-gradient GuideHow to build a 45-degree diagonal stripe background in CSS with repeating-linear-gradient color stops, plus a tool to dial in angle, width, and colors.
  3. Image Color Extraction: Why the Dominant Color Is WrongAuto-extracted photo colors often don't match what you see. Here's how pixel resizing, color quantization, and frequency sorting decide which colors win.
  4. radial-gradient circle vs ellipse: why it looks stretchedCSS radial-gradient circle vs ellipse: see how each follows the element's aspect ratio, why your gradient looks stretched, and how to check it.
  5. Media Query Breakpoints: Why Mobile and Desktop Layouts DifferSee why the same site looks different on a phone and a desktop, and how to build your own CSS media query breakpoints from screen widths.
  6. Why Profile and Banner Images Get Cropped on Every PlatformSame photo, different crop. Why YouTube banners and Instagram profiles lose edges, how safe zones and circular crops work, and how to check sizes free.

Related tools