GamutDesk Logo
GamutDesk

Soft UI Neumorphism CSS Generator

Create soft UI neumorphism CSS with light and dark shadow offsets, blur, intensity and flat, concave, convex or pressed shapes. Live preview and copy.

Client-Side ArchitecturePrivate Client-Side Processing
Soft UI element

Light shadow #F1F3F6 / Dark shadow #A8ACB1

Soft UI settings

Shape
10px
20px
50%
24px
CSS
background: #E0E5EC;
border-radius: 24px;
box-shadow: 10px 10px 20px #A8ACB1, -10px -10px 20px #F1F3F6;

Technical Specification & Mathematical Principles

How the Neumorphism Generator Works

Neumorphism extrudes an element from a surface of the same color using two opposing shadows: a dark shadow toward the lower right and a light shadow toward the upper left, both with the same offset and blur. The light shadow is the base color mixed toward white and the dark shadow mixed toward black.

Concave and convex variants add a 145 degree linear gradient between a slightly darker and a slightly lighter tone. A pressed state switches to inset shadows. Because contrast between element and background is intentionally very low, always add visible borders, labels or states for accessibility.

Frequently Asked Questions

Is neumorphism accessible?
Not by default. Its defining low contrast can fail the WCAG 1.4.11 non-text contrast requirement of 3:1 for UI components. Add a clear border, icon or color change for focus and active states.
Which background colors work best?
Mid-light, low-saturation colors such as #E0E5EC. On pure white the light shadow disappears, and on very dark colors the highlight needs strong intensity.
How do I make a pressed button?
Select the pressed shape. It swaps the outer shadows for the same pair as inset shadows, which looks like the surface being pushed in.

Related Design & Color Instruments