CSS Neumorphism Generator
Quick shape:

Presets
Preview

Raised

Neumorphism

Pressed (Inset)

Neumorphism
Generated code

CSS Neumorphism Generator

CSS Neumorphism Generator

The CSS Neumorphism Generator allows you to create soft, realistic 3D-like interface elements that look as if they are extruded from the background itself. Neumorphism (or “Soft UI”) is a modern design style that combines subtle shadows and highlights to achieve a smooth, tactile, and minimal aesthetic. With this generator, you can visually adjust all aspects of the effect and instantly preview and copy the CSS code for your project.

The generator provides controls for customizing:

Once you achieve your desired look, the generator provides a complete CSS snippet that can be applied directly to your element. Neumorphism works best with light, low-contrast colors, making it perfect for minimalist UIs, dashboards, and control panels.

CSS Neumorphism - Brief Tutorial

Neumorphism (short for “new skeuomorphism”) is a design trend that focuses on creating soft, subtle depth using shadows and highlights. It combines the realism of skeuomorphism with the simplicity of flat design, resulting in smooth, almost plastic-like surfaces that seem to emerge from the background.

Core Principles of Neumorphism

Basic Neumorphism Example

.neu {
  background: #e0e0e0;
  border-radius: 12px;
  box-shadow: 7px 7px 15px #bebebe,
              -7px -7px 15px #ffffff;
  width: 200px;
  height: 200px;
}

In this example, the light gray background #e0e0e0 acts as the base color. The two shadows—one darker (#bebebe) and one lighter (#ffffff)—create the illusion of raised depth.

Pressed (Inset) Neumorphism

To create a pressed or concave effect, simply use inset shadows:

.neu-inset {
  background: #e0e0e0;
  border-radius: 12px;
  box-shadow: inset 7px 7px 15px #bebebe,
              inset -7px -7px 15px #ffffff;
  width: 200px;
  height: 200px;
}

This makes the element appear pressed into the background, which is perfect for toggle buttons or input fields.

Combining with Hover Effects

To make the effect interactive, you can add hover transitions that change from concave to convex:

.button {
  background: #e0e0e0;
  border-radius: 12px;
  box-shadow: 7px 7px 15px #bebebe,
              -7px -7px 15px #ffffff;
  transition: all 0.2s ease;
}

.button:active {
  box-shadow: inset 7px 7px 15px #bebebe,
              inset -7px -7px 15px #ffffff;
}

Now the button looks raised by default and appears pressed when clicked, enhancing the tactile feel.

Adding a Gradient for More Realism

You can enhance the realism of your Neumorphic design by adding a subtle gradient to simulate lighting:

.neu-gradient {
  background: linear-gradient(145deg, #f0f0f0, #cacaca);
  border-radius: 16px;
  box-shadow: 7px 7px 15px #bebebe,
              -7px -7px 15px #ffffff;
}

The gradient adds more dimension and makes the surface feel more natural, as if light is hitting it from one side.

Neumorphism Color Tips

Dark Mode Neumorphism

.neu-dark {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 7px 7px 15px #141414,
              -7px -7px 15px #2a2a2a;
}

Dark Neumorphism gives a sleek, futuristic look. Use subtle color contrasts and slightly brighter highlights for better visibility.

Practical Uses of Neumorphism

Accessibility Concerns

While Neumorphism looks elegant, it often suffers from low contrast, making text or icons difficult to read. To maintain usability:

Performance and Browser Support

Neumorphism relies entirely on standard CSS properties like box-shadow, border-radius, and background. It works across all modern browsers and has minimal performance impact compared to effects like backdrop-filter. You can safely use it in any project, even on mobile devices.

Combining Neumorphism with Other Effects

You can enhance Neumorphism with glow or color filters for a more dynamic appearance:

.neu-glow {
  background: #e0e0e0;
  border-radius: 20px;
  box-shadow: 7px 7px 15px #bebebe,
              -7px -7px 15px #ffffff,
              inset 0 0 10px rgba(255,255,255,0.4);
}

This creates a soft glowing surface, giving your UI a high-tech, ambient appearance.

Conclusion

CSS Neumorphism offers a unique and elegant visual style that bridges the gap between flat design and realistic interfaces. With the CSS Neumorphism Generator, you can fine-tune every detail—from light direction and shadow depth to softness and curvature—and instantly preview your results.

When applied thoughtfully, Neumorphism can make interfaces look smooth, modern, and tactile, evoking the feeling of real materials. It’s best used sparingly and with good contrast management to ensure both beauty and usability in your web design.

Last update: 13. 08. 2025.