What is neumorphism?
Neumorphism, or soft UI, is a design style where elements appear to be moulded from the same material as the background, raised or pressed in by soft light and shadow rather than outlined or coloured. It gives interfaces a calm, tactile feel.
Pick a surface colour and this generator works out matching light and dark shadows. Choose flat, concave, convex or pressed, then fine-tune distance, blur, shadow strength and corner radius while a preview card updates, and copy the CSS.
How to use the Neumorphism generator
1.Pick the surface colour
The element and the page behind it share this colour.
2.Shape it
Choose flat, concave, convex or pressed, then distance, blur, strength and radius.
3.Copy the CSS
Background and the two box-shadows.
Example: a soft card
The default light grey-blue surface:
- Surface
- #e3e8f0
- Distance / blur
- 12px / 28px
- Shadow strength
- 18%
- Shape
- Flat, 24px corners
A card that seems to rise gently out of the page, lit from the top left.
Two shadows, one light
Neumorphism imagines a light from the top left: a lighter shadow up and left, a darker one down and right, both calculated from the surface colour. Pressed shapes use inset shadows to look sunk in, while concave and convex add a subtle gradient across the surface.
The style's weakness is low contrast, which makes buttons hard to spot for many people. Use it for decorative cards, and give interactive elements clear labels, icons or a coloured accent.
Frequently asked questions
Why does it only work on one colour?
The illusion needs the element and its background to be the same colour, so only the shadows define the shape.
Does it work on dark backgrounds?
Yes. Choose a dark surface colour; both shadows are worked out from it.
How do I make a pressed button state?
Use Flat for the normal state and Pressed for :active.
Can I share it?
Yes. Settings are kept in the page address.
Related tools
Glassmorphism generator
Frosted-glass cards with backdrop blur, tint and edge highlight.
CSS Box-Shadow Generator
Layered, inset and soft shadows with a live preview.
Neo-brutalism generator
Bold flat cards and buttons with thick outlines and hard shadows.
CSS Gradient Generator
Linear, radial and conic gradients with up to six stops.
CSS Border-Radius Generator
Rounded corners, linked or per-corner, in px or %.
CSS clamp() Generator for Fluid Sizes
Fluid font sizes and spacing that scale between two viewport widths.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table