CSS Neumorphism Generator

Design modern soft UI neumorphic shapes, cards, and buttons with customizable light sources, concave and convex surfaces, and Tailwind export.

At a glance

CSS Neumorphism Generator is a free web tool that creates soft UI neumorphic shapes, buttons, and cards online. It adjusts light origin to Top-Left, Top-Right, Bottom-Right, or Bottom-Left with live shadow offset recalculation. Everything runs locally in your browser — nothing is uploaded and no sign-up is needed.

100% Client-Side Soft UI Neumorphism Studio

Generate tactile dual-shadow neumorphic UI shapes, extruded buttons, and pressed cards with real-time lighting physics and Tailwind exports.

Local & Private Pure CSS Physics
Light Source:
Icon:
Neumorphic
Neumorphic Lighting Inspector Flat Protrusion • Top-Left Light
Base Surface #e0e5ec
Light Highlight #ffffff
Dark Shadow #bec3c9
Elevation Offsets ±20px • Blur 40px
Element Size: 220px
Corner Radius: 30px
Elevation Distance: 20px
Shadow Blur: 40px
Light Intensity: 15%

        
Standard CSS Declaration

Why Use This CSS Neumorphism Generator?

Realistic Dual-Shadow Lighting: Computes complementary highlight and shadow color physics from any base background hex color.
4 Surface Geometry Modes: Create Flat extruded surfaces, Concave sunken gradients, Convex domed highlights, and Pressed inset button states.
4-Quadrant Light Source Direction: Adjust light origin to Top-Left, Top-Right, Bottom-Right, or Bottom-Left with live shadow offset recalculation.
Curated Palettes & Presets: Instant one-click presets for Classic Soft Gray, Dark Obsidian, Ice Mint, Rose Clay, and Warm Sand.
Polyglot Code Exporters: Copy standard CSS declarations, Tailwind CSS arbitrary shadow and gradient utility classes, or CSS custom properties.
100% Client-Side Privacy: All color lighting mathematics, box-shadow derivations, and CSS generation run locally in your browser memory.

How to Use CSS Neumorphism Generator

1

Pick a Base Color or Preset

Select your background color using the color picker or choose a preset palette chip like Soft Gray or Dark Obsidian.

2

Customize Surface and Elevation

Select a surface shape (Flat, Concave, Convex, Pressed), adjust distance, blur, corner radius, and light intensity sliders.

3

Copy CSS or Tailwind Code

Click 'Copy' on the code panel to copy standard CSS rules, Tailwind utility classes, or download the .css file.

Worked example: Soft-Gray Flat Card to Dual-Shadow CSS

The engine lerps base color toward white and black by intensity and emits paired outer dark and light box-shadows.

Surface Settings Source
base #E0E5EC, shape: flat, distance 20px, blur 40px, radius 30px
Generated Neumorphic CSS Processed
background: #e0e5ec; border-radius: 30px; box-shadow: 20px 20px 40px #bec3c9, -20px -20px 40px #e5e9ef;

Technical Specifications & Engine Details

Technical specifications and engine details for CSS Neumorphism Generator
Specification Details
Supported Formats GUI, SLIDERS, HEX → CSS, TAILWIND, TEXT
Execution Mode 100% Client-Side In-Browser (client)
Browser Requirements Requires modern web browser with ECMAScript 6+ and standard DOM Web APIs.
Performance Constraints Client browser memory limit (typically 1–2 GB RAM); processing speed depends on local device CPU.
Maintained by Pragyan Pahadi

100% Client-Side Privacy Guarantee

All color lighting mathematics, box-shadow derivations, and CSS generation run 100% locally in your browser memory. Zero design telemetry.

Frequently Asked Questions

What is Neumorphism in UI design?
Neumorphism (Soft UI) is a visual design trend where interface elements appear to be extruded from or pressed into the background. It is achieved by matching the element background exactly to its parent container and applying dual light and dark box-shadows.
How do concave and convex neumorphic surfaces work?
While flat neumorphism uses a solid background, concave and convex surfaces apply subtle linear gradients angled at 145 degrees between slightly lighter and darker shades of the base color, creating the physical illusion of curved or curved-in tactile plastic.
Can I use these neumorphic styles in Tailwind CSS?
Yes. Our Tailwind exporter creates arbitrary utility classes combining rounded-[...], bg-[...], and shadow-[...] with multi-stop box shadows that you can drop directly into your markup.
Does neumorphism work on dark backgrounds?
Yes. Try our 'Dark Obsidian' preset. The lighting engine accurately calculates specular highlights and ambient shadows for dark backgrounds as well as bright light surfaces.

Methodology

This tool runs entirely in your browser. The example above shows a representative input and the result it produces.

Last updated .