CSS Neumorphism (Soft UI) Generator
Design a neumorphic, soft UI surface with live controls. Choose a base color, adjust distance, intensity and blur, switch between flat, concave, convex and pressed, then copy the generated CSS.
How to generate neumorphism CSS
- Pick the base color and match your page background to the same color.
- Drag the distance, intensity and blur sliders and choose a shape.
- Copy the generated background and box-shadow into your stylesheet.
Examples
Soft raised card
base #e0e0e0, distance 20, intensity 0.15, blur 60, flat
box-shadow: 20px 20px 60px #cfcfcf, -20px -20px 60px #e2e2e2;
Pressed (inset) button
base #e0e0e0, distance 20, intensity 0.15, blur 60, pressed
box-shadow: inset 20px 20px 60px #cfcfcf, inset -20px -20px 60px #e2e2e2;
Frequently asked questions
What is neumorphism (soft UI)?
Neumorphism, or soft UI, is a style where elements look extruded from the background. It uses a background that matches the page plus two shadows, a dark one and a light one on opposite corners, so the surface appears to softly rise or sink.
Why do the element and page need the same background color?
The soft UI effect relies on a single flat surface color shared by the element and the page. The light and dark shadows are tinted from that base color, so a mismatched page background breaks the illusion of an extruded shape.
What is the difference between flat, concave, convex and pressed?
Flat keeps a solid surface. Convex adds a gradient that bulges outward and concave dips inward, both using the same dual shadow. Pressed renders the shadows inset so the element looks pushed into the surface.
How do distance, intensity and blur change the result?
Distance sets how far the two shadows offset from the element. Intensity controls how far the light and dark shades diverge from the base color, so higher means more contrast. Blur softens the shadow edges.
Is neumorphism accessible?
Use it carefully. Low contrast soft UI can be hard to read and the borders are subtle, which may fail contrast guidelines for buttons and inputs. Keep intensity high enough for clear edges and pair it with accessible text and focus styles.
Is my work sent to a server?
No. The preview and the generated CSS are computed entirely in your browser, and nothing you type is uploaded.
Related tools
Box Shadow Generator
Build CSS box-shadow visually. Drag sliders for offset, blur, spread, color and opacity, see a live preview, and copy the box-shadow code.
CSS Gradient Generator
Build linear and radial CSS gradients with a live preview. Pick colors, set the angle and copy ready-to-paste background code for your site.
Border Radius Generator
Round corners visually with four sliders, then copy the border-radius CSS. Includes a blob mode for organic shapes with a live preview.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.
Base58 Encoder
Encode and decode Base58 online with the Bitcoin alphabet. Convert text to Base58 or back, UTF-8 safe, no confusing 0 O I l. Runs in your browser.