Guide
Design a soft surface by pairing a darker shadow with a lighter highlight derived from one base color. This CSS Neumorphism Generator keeps surface geometry separate from elevation: combine a flat, convex or concave fill with raised outer shadows or pressed inset shadows. The live sample uses the same validated CSS values as the complete export, including its matching parent background. Editing and generation run locally in your browser without a processing upload.
1Choose a surface style
Start with one of ten editable presets or choose flat, convex or concave geometry. Select raised or pressed elevation separately, then pick a rectangle, rounded card, square, circle or button sample.
2Customize lighting and shadows
Choose one of four light directions. Set shadow distance from 0px to 50px, blur from 0px to 100px, intensity from 0% to 100% and spread from -20px to 20px.
3Check colors and readability
Choose a base background and a text color using the pickers or HEX fields. Review the sampled text contrast warning, adjust the linked radius, and check the visible raised or pressed label.
4Copy your soft UI CSS
Copy Box Shadow for the paired declaration, Complete CSS for the surface and matching parent, or HTML Example for a standalone static document. Reset returns every control to Classic Light.
Neumorphism creates the impression that a control or panel is formed from its surrounding background. A light highlight and a darker shadow define its edges while the surface and parent share a base color. This Soft UI Generator derives both shadow colors from your selected base rather than applying a white highlight to every design. The effect is deliberately subtle, so it needs clear labels and boundaries when used for real controls.
Raised elevation uses two outer box shadows. Pressed elevation adds inset to both layers, drawing them inside the surface. The sample also displays Raised or Pressed / inset and changes its border from solid to dashed, so the state is not communicated through shadow alone. These are static style samples: applications still need semantic buttons, actual state changes and visible focus indicators.
A convex surface uses a subtle gradient that starts lighter toward the light source and darkens away from it. Concave reverses those endpoint colors. Flat uses the solid base color. Surface geometry does not force shadow elevation, so you can compare convex or concave fills with either outer or inset shadows. At zero intensity the gradient endpoints collapse to the base color.
Light from the top-left creates positive horizontal and vertical offsets for the dark outer shadow and negative offsets for the highlight. Top-right reverses the horizontal signs; bottom-left reverses the vertical signs; bottom-right reverses both. Inset mode keeps those offset values while drawing inside the box. Gradient angles follow the same selected light source, and presets use this mapping consistently.
The default base is #E0E5EC. Enter opaque three- or six-digit HEX, optionally without #, or use the native color picker. Shadow colors mix the base toward black and white by up to 45% according to intensity. Gradient endpoints use a smaller mix of up to 22%. This keeps highlights tinted on dark backgrounds and makes calculations deterministic. Intensity changes color separation rather than element opacity; saturated colors and pure black or white can make one edge less visible.
Raised Button, Pressed Button and Circular Button presets set a suitable sample shape and lighting. The Circle shape uses equal sides and 50% radius; other shapes support a linked radius from 0px to 100px. The generated HTML is a static visual sample, not a functioning control. When adopting the style, use a real button element, a clear label, an appropriate pressed state when applicable, and a focus indicator that remains visible on the matching background.
Soft Card provides a rounded surface with a broad shadow. Start with moderate distance and intensity, then leave enough space around the card for the shadow to appear. Complete CSS includes the selected responsive dimensions and a matching parent background; the same shadows will look different against an unrelated color. The preview frame clips very large shadows at its edges without changing the exported declaration.
Neumorphism uses a mostly opaque surface and paired light and dark shadows to suggest depth in the surrounding material. Glassmorphism uses transparency and backdrop filtering to reveal and blur content behind a surface. This tool produces neumorphism only. The related glassmorphism generator provides the separate frosted-glass workflow when the background should show through.
Low-contrast edges can make neumorphic controls hard to recognize. Keep explicit labels and state cues, test keyboard focus, and check the real component in its surroundings. The warning uses the lowest text contrast ratio at the solid base or the two gradient endpoints and flags ratios below 4.5:1 for normal text. It does not model inset shadow overlap, all gradient pixels or surrounding controls, and a passing estimate does not certify accessibility.
Two shadows are enough for this effect, but large blur radii and many repeated surfaces can still increase rendering work. Avoid unnecessary continuous animation and test scrolling or interaction on representative devices. This preview updates directly when settings change and does not animate on its own. Compare the final CSS in your target browsers because antialiasing, clipping and color rendering can vary.
Numeric fields are bounded and round to two decimal places. HEX input is normalized and RGB calculations clamp channels to 0 through 255. Invalid colors or numbers pause generation and disable copy buttons until corrected. Copy Box Shadow exports only the paired declaration; Complete CSS includes the background, shape and state border; HTML Example includes the complete static scene. Clipboard failures leave the selected output visible for manual copying.
- Exploring raised and pressed button surface styles
- Styling soft dashboard cards on a matching background
- Comparing convex and concave gradients under four light directions
- Preparing a static soft UI example for browser and accessibility review
- Pair light and dark shadows derived from one validated base color.
- Combine geometry and elevation independently with a live CSS preview.
- Explore ten editable presets and five responsive sample shapes.
- Copy bounded CSS and a matching-background example while checking sampled text contrast.
What is neumorphism in CSS?
It is a soft UI style that uses a matching background and paired light and dark shadows to suggest raised or recessed material. It commonly uses box-shadow with a solid or subtly graded surface.
How do I create a neumorphic button?
Choose a button preset, customize the base color and lighting, then copy the CSS. The generated HTML is a static style sample; use a semantic button and implement its actual behavior and focus styles in your application.
What is a soft UI design?
Soft UI often describes gently shaded surfaces that seem to emerge from their background. Neumorphism is one approach, but its subtle boundaries need extra attention to labels, contrast and keyboard focus.
How do I create inset neumorphism?
Choose Pressed / inset elevation. Both shadow layers receive inset, and the visible state label and dashed border identify the pressed sample independently of the shadows.
What is the difference between raised and pressed effects?
Raised uses outer shadows around the surface. Pressed uses inset shadows inside it. Either elevation can be combined with flat, convex or concave surface geometry.
How does lighting direction affect neumorphism?
The selected corner determines the signs of the paired shadow offsets and the gradient angle. For top-left light, the dark outer shadow moves bottom-right and the highlight moves top-left.
Can I use neumorphism in dark mode?
Yes. Try Dark Neumorphism or choose a dark base and readable light text. Highlights are mixed from that base rather than fixed to white. Check edge visibility and contrast in the final component.
Is neumorphism accessible?
Not automatically. Low-contrast boundaries can hide controls. This editor warns about sampled text contrast below 4.5:1, but you still need to check real backgrounds, shadows, labels, state cues and keyboard focus.
What is the difference between neumorphism and glassmorphism?
Neumorphism uses paired shadows and a surface matching its surroundings. Glassmorphism uses transparency and backdrop blur to show content behind a frosted surface.
Is the CSS Neumorphism Generator free?
Yes. Presets, lighting controls, live previews and CSS or HTML copying are free without signup.