About Neumorphism Generator
Neumorphism's illusion is a single light source hitting a surface that is moulded from — the same colour as — the background behind it, rather than a distinct panel sitting on top of one. That is why it needs exactly two shadows rather than one: a darker one on the side facing away from the light, a lighter one on the side facing toward it, both the same base colour just shifted in lightness.
Getting those two shadow colours right matters more than it looks like it should. Shifting an RGB or HSL colour's lightness directly tends to also shift its apparent hue and saturation in a way that reads as slightly wrong, particularly on saturated base colours — which is a real part of why neumorphism is usually only shown in pale, low-saturation greys online: it is the range where that distortion is smallest. This computes both shadow colours in OKLCH instead, adjusting lightness while holding hue and chroma fixed, which is why a genuinely colourful base — not just grey — still looks coherent here.
Pressed mode simply moves both shadows inside the element instead of outside it, which flips the read from 'raised above the background' to 'pressed into it' — the same two colours, the same physics, just which side of the surface they're drawn on.
How to build a neumorphic panel
Choose a base colour
A muted, mid-lightness colour gives the shadows room to go both lighter and darker.
Pick a style
Raised, pressed, convex or concave.
Adjust distance, blur and intensity
Intensity controls how far the shadow colours move from the base.
Copy the CSS
Background, border-radius and box-shadow together — remember the page background needs to match the base colour for the illusion to hold.