Logo

Neumorphism Generator

Create soft UI CSS neumorphism effects with live preview and one-click copy

Presets:
Click corner dot to set light source

Shape Type

Size200px
Radius50px
Distance20px
Blur60px
Intensity0.15

Background Color

CSS Output
border-radius: 50px;
background: #e0e5ec;
box-shadow: -20px -20px 60px rgba(239,244,251,0.6), 20px 20px 60px rgba(209,214,221,0.6);

Free Neumorphism CSS Generator — Create Soft UI Effects Online

Neumorphism (also called Neu-morphism or Soft UI) is one of the most distinctive UI design trends of the last few years. It creates a sense of depth by combining a background-matching element color with carefully calculated dual box shadows — one lighter than the background and one darker. The result is a clean, tactile, almost physical appearance that makes interface elements look like they are molded from the same material as the background itself.

This free Neumorphism Generator lets you design and export CSS neumorphic styles in seconds. Adjust the size, border radius, shadow distance, blur radius, shadow intensity, and background color using the live controls. Choose from three shape modes — Flat (standard raised neumorphic), Concave (inset/pressed appearance), or Convex (bulging outward) — and click any corner dot in the preview to set the virtual light source direction. The CSS output updates in real time, and you can copy it as plain CSS properties or as a complete CSS class block with one click.

Eight color presets (Classic, Slate, Warm, Rose, Sage, Lavender, Dark, Midnight) are available for quick starting points, and the custom color picker lets you use any background color you choose. The tool also automatically calculates readable text colors for the control panel based on your chosen background, so labels remain readable at all times.

Understanding Neumorphism — How It Works

Neumorphism achieves its depth effect through a single CSS property: box-shadow. Unlike traditional skeuomorphism (which used gradients and textures to simulate real-world materials) or flat design (which removes all depth cues), neumorphism uses two shadows from opposite directions:

Light shadow

A lighter version of the background color cast from the direction of the virtual light source. This simulates the part of the element facing the light.

Dark shadow

A darker version of the background color cast from the opposite direction. This simulates the shadow on the side facing away from the light.

Raised (Flat)

Both shadows are external (no `inset`). The element appears to protrude from the background surface, like a button raised from a panel.

Concave

Both shadows are `inset`. The element appears to be pressed into the background, like a selected/active button or an input field.

The key constraint of neumorphism is that the element's background color must match the page background color. The shadow colors are calculated as lighter and darker variants of that same color using the Intensity slider, which controls how much lighter and darker the shadow colors are relative to the base. A higher intensity produces more visible, more contrasted shadows. A lower intensity gives a more subtle, refined look.

Controls Reference

ControlRangeEffect
Size100–350pxWidth and height of the preview element.
Radius0–175pxBorder radius. 0 = sharp corners, 50% of size = circle.
Distance5–50pxX and Y offset of both shadows from the element. Higher = more pronounced depth.
Blur10–100pxSpread/softness of the shadows. Higher = softer, more diffuse shadows.
Intensity0.05–0.30How much lighter/darker the shadow colors are vs the background. Higher = more contrast.
Shape TypeFlat/Concave/ConvexControls whether shadows are external (raised), inset (pressed), or reversed external (convex).
Light Source4 cornersDirection the virtual light comes from. Determines which shadow is light and which is dark.
Background ColorAny hexThe base color for the background and element. Shadow colors are derived from this.

Frequently Asked Questions

What is neumorphism in web design?+
Neumorphism is a UI design style that creates soft, extruded elements by using dual box shadows — one lighter than the background and one darker — applied to elements that match the background color. It creates a physical, tactile depth effect without heavy gradients or textures.
What browsers support neumorphic CSS box-shadow?+
All modern browsers support the CSS `box-shadow` property, including Chrome, Firefox, Safari, Edge, and Opera. Neumorphic styles work in any browser that supports `box-shadow` and `border-radius`, which is effectively all browsers in active use today.
Why does neumorphism require matching background colors?+
The depth illusion breaks if the element color differs from the background. The shadows simulate raised or pressed surfaces on a uniform material — if the element has a different color, it no longer looks like it is part of the same surface.
Is neumorphism accessible?+
Standard neumorphism has known accessibility issues: the low contrast between element and background makes it hard for users with visual impairments to distinguish interactive elements. For production apps, pair neumorphic design with clear focus indicators, sufficient text contrast, and ARIA labels.
What is the difference between flat, concave, and convex modes?+
Flat = element raised above the surface (external shadows). Concave = element pressed into the surface (inset shadows). Convex = element with reversed raised appearance (swapped shadow positions).
How do I use the copied CSS?+
Paste the "Copy CSS" output directly into an element's style rule in your CSS file. Or use "With Class" to copy the CSS wrapped in a `.neumorphic {}` class block, ready to add to a stylesheet.
Can I use neumorphism with dark backgrounds?+
Yes. Select the "Dark" or "Midnight" preset, or any dark color with the color picker. The shadow algorithm adapts to dark backgrounds automatically, lightening and darkening the base color accordingly.
What is the light source in the preview?+
The four corner dots in the preview area represent the location of the virtual light source. Clicking a dot changes the direction the light is "coming from", which reverses which shadow is lighter and which is darker.
Advertisement
Logo

Your all-in-one digital toolkit with 100+ free online tools. Fast, secure, and always available when you need them.

Secure & Private

All processing happens locally in your browser

Mobile Friendly

Works perfectly on all devices and screen sizes

Always Free

No registration, no limits, completely free to use

100+
Free Tools
50K+
Daily Users
1M+
Tools Used
150+
Countries
© 2026 OmniWebKit. All rights reserved.
Made withfor developers and creators