How to Generate CSS for Modern Neumorphism Buttons in 2026

Neumorphism (or soft UI) has been a massive trend in web design. It creates a beautiful, extruded plastic look that feels highly premium and modern.

However, coding Neumorphic buttons from scratch is a massive headache.

The Math Behind the Shadows

A perfect Neumorphic button requires two perfectly balanced box-shadows: 1. A light shadow on the top-left to simulate a light source. 2. A dark shadow on the bottom-right to simulate depth.

If the contrast is too high, it looks harsh. If it's too low, the button disappears into the background.

```css / The classic Neumorphism formula / background: #e0e5ec; box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5); ```

The Faster Way

Instead of tweaking CSS values for hours in DevTools, you can use our [CSS Button Generator](/en/css-button-generator).

Our tool allows you to visually dial in the exact border-radius, color, and shadow intensity you want. Once it looks perfect on screen, you just click "Copy CSS" and drop it into your React component or stylesheet.

Stop writing raw CSS shadows and start generating them visually!