{ CSS Neumorphism Generator }

// generate neumorphic box shadows for any background color

Generate neumorphic box-shadow CSS for any background color. Create inset and raised soft UI effects with live preview and instant copy.

// GENERATED CSS
/* adjust controls to generate */
Light Shadow โ€”
Dark Shadow โ€”

HOW TO USE

  1. 01
    Pick Background

    Choose or type your UI background color โ€” the shadows are calculated from it.

  2. 02
    Adjust Settings

    Tune distance, blur, intensity, radius, and light angle to craft the perfect soft shape.

  3. 03
    Copy CSS

    Click "Copy CSS" and paste the generated box-shadow into your stylesheet.

FEATURES

Live Preview Raised Mode Inset Mode Flat Mode 9 Light Angles Color Picker

USE CASES

  • ๐Ÿ”ฒ Cards, buttons, and input fields
  • ๐ŸŽ›๏ธ Dashboard widgets and panels
  • ๐ŸŽจ Design system prototyping
  • ๐Ÿ“ฑ Mobile app UI mockups

WHAT IS THIS?

Neumorphism (also called soft UI) is a design style that simulates extruded plastic by casting two shadows โ€” one light, one dark โ€” from the background color itself. The result: elements that feel physically raised or pressed into the surface.

RELATED TOOLS

FREQUENTLY ASKED QUESTIONS

What is neumorphism in CSS?

Neumorphism is a UI design trend that creates an embossed, soft-plastic feel by applying two box-shadow values โ€” a lighter version and a darker version of the same background color โ€” to simulate depth without hard borders.

What's the difference between raised and inset modes?

Raised mode makes an element appear to pop out of the surface (convex). Inset mode makes it appear pressed into the surface (concave), achieved by adding the inset keyword to the box-shadow values.

How are the shadow colors calculated?

The generator takes your background color and derives a lighter variant (mixed with white) and a darker variant (mixed with black) at your chosen intensity. These two shadows create the illusion of a single directional light source.

Is neumorphism accessible?

Neumorphism can have accessibility challenges since it relies on subtle shadows rather than color contrast for affordance. Always test with WCAG contrast tools and consider adding focus indicators or borders for interactive elements.

What browsers support the generated CSS?

The generated box-shadow CSS works in all modern browsers including Chrome, Firefox, Safari, and Edge without any prefixes. It's a well-supported CSS property with near-universal browser support.

Can I use flat mode for a minimal look?

Yes โ€” flat mode generates an equal shadow on all sides, creating a lifted look without directional lighting. It's great for subtle card elevation or floating button effects in minimalist UIs.

What Is a CSS Neumorphism Generator?

A CSS neumorphism generator is a visual tool that creates the box-shadow values needed to achieve the popular soft UI (neumorphic) design style. Rather than manually calculating light and dark shadow colors from your base background, the generator handles the math instantly โ€” letting you focus on tuning the visual result.

๐Ÿ’ก Looking for premium CSS templates and UI kits? MonsterONE offers unlimited downloads of templates, UI kits, and assets โ€” worth checking out.

How Neumorphic Shadows Work

The neumorphism effect requires exactly two box-shadow layers on a single element:

For a top-left light source, the CSS looks like this:

.neu-card {
  background: #e0e5ec;
  box-shadow:
    6px 6px 12px #b8bec7,
    -6px -6px 12px #ffffff;
  border-radius: 12px;
}

The key constraint: the background color of the element must match the page background. This is what makes neumorphism tricky to layer โ€” elements literally blend into their parent surface.

Raised vs. Inset vs. Flat

This generator supports three shape modes that each communicate different interaction states:

The Role of Distance, Blur, and Intensity

Three parameters control the character of neumorphic shadows:

A common starting point: distance 10, blur 20, intensity 15%. From there, increase distance for a puffier feel or increase blur for a cloudier effect.

Light Angle

Light angle determines which corner or side the light source comes from. Convention in neumorphic design is top-left โ€” matching the physical intuition of a lamp placed in the upper-left of a room. This generator supports all eight directions plus center (for the flat effect).

Consistency matters: if you use top-left for one component, use it everywhere on the same page. Mixing light angles within a layout breaks the physical illusion.

Neumorphism and Accessibility

One well-known criticism of neumorphism is accessibility. The style relies on subtle shadows for visual affordance rather than color contrast โ€” which can make interactive elements difficult to perceive for users with low vision or in bright ambient light.

Best practices to improve accessible neumorphic UIs:

Choosing the Right Background Color

Neumorphism works best on mid-tone backgrounds โ€” not pure white (#ffffff) and not pure black (#000000). On pure white, there is no room for a lighter shadow. On pure black, there is no room for a darker shadow.

Ideal background ranges:

Using the Generated CSS

The generator outputs a complete box-shadow declaration along with matching background and border-radius properties. Paste this directly into your component stylesheet. The output is clean, vendor-prefix-free CSS that works in all modern browsers.

For React or Vue components, you can also use the values directly as inline style objects โ€” just convert the CSS property names to camelCase (boxShadow, borderRadius, background).

โ˜•