Skip to content
Codify Tools

Free CSS Neumorphism Generator — Soft UI Shadows

Generate custom soft neumorphic box shadows, inset effects, and light highlights with copyable CSS code.

Neumorphic Controls

Shadow Distance
15px
Blur Radius
30px
Shadow Intensity
15%
Card Size200px
Border Radius24px

Generated CSS Code

/* Neumorphism Soft UI CSS */
width: 200px;
height: 200px;
border-radius: 24px;
background: #e0e5ec;
box-shadow: 15px 15px 30px #c9ced5, -15px -15px 30px #f7fcff;

Live Canvas Preview

Click card to simulate active press
Neumorphic UIFLAT MODE

Click element to trigger pressed state

How to Create Soft UI Neumorphic CSS Effects

Neumorphism (short for "neo-skeuomorphism") is a front-end user interface design trend that gives digital components a soft, plastic-like 3D appearance. Unlike traditional flat design that relies on solid borders and stark drop shadows, neumorphism creates the illusion that interactive elements—such as buttons, cards, slider tracks, and audio knobs—are physically molded directly out of the background canvas.

The physics behind CSS neumorphism depends on light manipulation. An imaginary light source shines from the top-left corner of the viewport. This creates two distinct box shadows: a bright white highlight cast toward the top-left, and a dark shadow cast toward the bottom-right. When applied to an element with the exact same background color as its parent container, the boundaries melt seamlessly into the page, creating an elegant tactile feel.

Step-by-Step Neumorphic Styling Guide

  1. Match Background Colors: Set the element background color to match its parent container hex code exactly (e.g., #e0e5ec).
  2. Configure Dual Box-Shadows: Apply two comma-separated box-shadow rules. Positive offset values cast dark shadows; negative offset values cast light highlights.
  3. Adjust Blur and Distance: Ensure the blur radius is roughly double the offset distance to keep shadow edges soft and natural.
  4. Add Interactive States: Toggle between standard box shadows and inset box shadows during :active or :focus states to simulate a physically pressed button.

Frequently Asked Questions