What is the CSS Neumorphism Generator?
Generate soft-UI neumorphism effects using layered box shadows. Set light source direction, distance, and surface colour, then copy the CSS.
Everything runs locally in your browser. Adjust the controls above, preview instantly, and copy clean, production-ready CSS — no account, no upload.
Using the CSS Neumorphism Generator
Everything lives in the panel at the top of this page. There is nothing to install — it all runs right here in your browser.
Pick your surface colour
Select the background colour. This colour must also be the page background - neumorphism only works on matching surfaces.
Set shadow distance and blur
Adjust the offset (how far the shadows extend) and blur radius. Larger offsets work with larger elements.
Toggle raised or pressed state
Switch between the raised (outset) and pressed (inset) shadow configurations. Copy the CSS for both states to handle interactive elements.
What the generated code looks like
Clean, production-ready CSS — no vendor bloat, no unnecessary declarations.
/* Neumorphic card - light source from top-left */
.neo-card {
background: #e0e5ec;
border-radius: 16px;
box-shadow:
6px 6px 12px rgba(166, 180, 200, 0.7),
-6px -6px 12px rgba(255, 255, 255, 0.8);
}
/* Inset / pressed state */
.neo-card.pressed {
box-shadow:
inset 4px 4px 8px rgba(166, 180, 200, 0.7),
inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}Neumorphism works only on monochromatic surfaces. The background colour of the element must match the page background exactly.
Pro tips for better results
Neumorphism fails WCAG contrast requirements in most cases
The soft shadows that define neumorphism create very low contrast between the component and its background. Test all interactive neumorphic elements against WCAG AA (4.5:1 for text, 3:1 for UI components).
Use neumorphism only on non-critical decorative surfaces
Buttons, form controls, and navigation items need clear affordance. Neumorphism makes it unclear what is clickable vs. decorative.
The background colour must exactly match the page background
If the element background-color and page background-color differ by even a small amount, the shadows look wrong. Use CSS variables to ensure they always match.
Frequently asked questions
From the blog
Read more →CSS Box Shadow: A Complete Guide with Examples (2026)
Master CSS box-shadow: every value explained, layering multiple shadows for realistic depth, inset shadows, the spread trick, and copy-paste examples for cards, buttons, and more.
How to Create Glassmorphism in CSS: The Complete 2026 Guide
Learn how to build the frosted-glass effect with CSS backdrop-filter. Real code, the accessibility traps nobody mentions, browser support, and performance tips from production.
The Complete Guide to CSS Gradients (2026)
Master linear, radial, and conic CSS gradients. Learn color stops, angles, hard stops for stripes, multi-layer gradients, and the tricks behind smooth, professional results.