Neumorphism Generator

Create Soft UI designs with extruded plastic-like effects.

What Is a Neumorphism CSS Generator?

A neumorphism generator is a free visual tool that lets you create soft UI effects directly in your browser — no design software needed. Neumorphism (short for "new skeuomorphism") is a UI style where elements appear to push out of or press into a flat surface, using only CSS box-shadows. The element and its background share the same color, so the entire effect comes down to two carefully balanced shadows: one dark, one light.

This generator handles the math for you. Pick a background color, adjust the shadow distance, blur, and intensity, toggle between raised and pressed states, and copy the resulting CSS with one click. It works for buttons, cards, toggles, input fields, and any other component where you want that soft, tactile look. If you need more granular shadow control — like multiple layers or spread radius — our box shadow generator covers those advanced cases.

The tool outputs clean, production-ready CSS with no vendor prefixes or unnecessary properties. It's designed for developers and designers who want to prototype neumorphic interfaces quickly, experiment with different depths and colors, and drop the code straight into their projects. Pair it with the color wheel to find the perfect base shade, or combine neumorphic elements with glassmorphism for layered, modern layouts.

Preview

Best on light backgrounds

CSS Code


          

Why I Built This Neumorphism Generator

A couple of years ago I was working on a music player UI and wanted that soft, raised-button look that was everywhere on Dribbble. I spent an embarrassing amount of time manually calculating shadow colors — darkening the background by 15% for the bottom-right shadow, lightening it by 15% for the top-left, then tweaking blur and offset values by trial and error. Every time I changed the background color, I had to start over.

I figured there had to be a faster way, so I built this generator for my own workflow. It does exactly what I needed: pick a color, drag a few sliders, and get copy-paste CSS that actually looks right. No guessing, no color math, no switching between a design tool and a code editor. I added the inset toggle because switching between raised and pressed states was the part that broke my flow the most — now it's a single checkbox.

Since putting it on DevPalettes, I've seen designers use it for dashboard prototypes, mobile app mockups, and even hardware-style remote control interfaces. It's a niche style — it won't work for every project — but when neumorphism fits, this tool saves real time. That's all it's meant to do.

How Soft UI Works: The Light and Shadow Concept

At the core of neumorphism is a dual-shadow technique. Every neumorphic element receives two box-shadows applied simultaneously: a dark shadow offset toward the bottom-right and a light shadow offset toward the top-left. Both shadows use the same blur radius and distance, creating a symmetrical impression of depth. Because the element's background color matches its parent container, the shadows alone define its boundaries — there are no visible borders.

The dark shadow simulates the area where light is blocked, while the light shadow simulates reflected light hitting the surface from the opposite direction. The balance between these two shadows determines whether the element appears raised (convex) or pressed (concave). Swapping external shadows for inset shadows instantly converts a raised button into a pressed state, making neumorphism especially intuitive for interactive elements like toggles, buttons, and input fields. For more advanced shadow layering options, the box shadow generator provides independent control over each shadow color, offset, and spread.


Key Shadow Properties

Three properties control the neumorphic effect: distance (how far shadows extend), blur (how soft the shadow edges appear), and intensity (the darkness or lightness of each shadow color). Increasing distance makes elements appear more elevated, while higher blur values create a softer, more diffused look. Intensity is calculated as a percentage shift from the base background color — typically between 10% and 25% for the most natural results. Use the color wheel tool to visualize how these percentage shifts affect your chosen base color in real time.


Skeuomorphism vs. Neumorphism: What's Different?

Skeuomorphic design aims to replicate real-world objects in digital form — think of the leather-textured calendar in early iOS or the wooden bookshelf in older iBooks. It relies heavily on textures, gradients, and detailed imagery to create convincing physical metaphors. Neumorphism strips away all ornamentation. There are no textures, no realistic materials, no photographic elements. Instead, it achieves a physical feel through pure shadow geometry on flat, monochrome surfaces.

Where skeuomorphism can feel cluttered and dated, neumorphism feels clean and contemporary. Where flat design can feel sterile and lifeless, neumorphism adds subtle dimensionality without visual noise. The trade-off is that neumorphism works best in controlled environments with consistent background colors — it is less forgiving than flat design when elements overlap or when backgrounds vary across a layout.


Best Use Cases for Neumorphic Design

Neumorphism excels in specific contexts where its soft, minimal aesthetic aligns with the product's personality. Music player interfaces benefit from the tactile feel of neumorphic play buttons and volume sliders. Weather applications use raised cards to separate forecast data while maintaining a calm, atmospheric look. Fitness and health trackers pair well with neumorphism's clean, understated style for displaying metrics and progress indicators. Dashboard controls — toggles, switches, and sliders — feel satisfyingly physical when designed with neumorphic inset states.

Neumorphism is less suitable for data-heavy applications, e-commerce interfaces with many product images, or any context requiring strong visual hierarchy through color contrast. It works best as a design accent rather than a comprehensive design system.


Design Tips for Better Neumorphism

Start with a light, neutral background — gray tones around #e0e5ec produce the most reliable results. Keep shadow distances between 8px and 20px for a natural look; anything beyond 30px starts to look exaggerated. Always use matching blur values slightly larger than your shadow distance to maintain soft edges. Limit neumorphism to key interactive elements rather than applying it to every component on the page. Pair neumorphic elements with clear typography and sufficient text contrast to maintain readability. For a cohesive palette, generate color palettes that include soft neutral tones as a foundation.

If you need to translate your neumorphic shadow colors between formats, you can convert HEX to RGB values for more precise color manipulation. To build a complete color system around your neumorphic design, learn color combinations that complement soft UI aesthetics without sacrificing contrast and clarity.


Beyond individual components, neumorphism pairs beautifully with CSS gradients for page backgrounds. A subtle linear gradient behind a neumorphic card adds atmospheric depth without competing with the shadow effect. When composing full pages with multiple neumorphic elements, the page builder can help you arrange cards, controls, and text blocks into balanced layouts without writing layout CSS from scratch.


For designers looking to combine visual styles, pairing neumorphism with glassmorphism produces rich, layered interfaces. A common pattern is using neumorphic controls at the base level and glassmorphic overlays for modals, tooltips, or floating panels. This hybrid approach leverages the tactile clarity of soft UI alongside the translucency of frosted glass, keeping each element's role distinct. To ensure such hybrid pages perform well in search results, the SEO analyzer can audit your page structure and identify improvements.


Frequently Asked Questions

What is neumorphism in UI design?

Neumorphism is a design style that combines flat design and skeuomorphism. It uses soft shadows, both light and dark, applied to elements that share the same background color, creating an extruded plastic-like appearance that looks soft to the touch.

How to create soft UI in CSS?

To create soft UI in CSS, set the element's background color to match its parent, then apply two box-shadows: a dark shadow offset toward the bottom-right and a light shadow offset toward the top-left. Use moderate blur values (10–30px) to keep edges soft. Adjust shadow distance and intensity to control the depth effect. For fine-tuned control over individual shadow layers, the box shadow generator lets you customize each shadow independently.

Is neumorphism good for accessibility?

Neumorphism can present accessibility challenges. Because elements and backgrounds share similar colors, contrast ratios may fall below WCAG guidelines. To improve accessibility, use inset shadows for interactive states, add clear text labels, and ensure sufficient color contrast for text content within neumorphic components. You can run your neumorphic designs through the ATS checker to evaluate contrast ratios and flag potential accessibility issues before shipping.

What are best colors for neumorphism?

Light gray tones like #e0e5ec, #dde1e7, and #f0f0f3 are the most popular neumorphism backgrounds because they produce clear, visible shadows. Pastel shades such as soft blues, muted pinks, and light greens also work well. Avoid very dark or very saturated backgrounds, as shadows become harder to perceive. Explore soft, harmonious tones with the color wheel or browse pre-made color palettes curated with neumorphic-friendly neutrals in mind.

Explore more tools to streamline your design and development workflow.

Share This Tool

Found this useful? Share it with your design and development community.

Related Tools

Built by DevPalettes — free tools for developers and designers