Box shadow. Make soft, realistic shadows by layering several, and copy the CSS.
How it works
Set the height
How far the card lifts off the page. Higher means wider, softer shadows.
Shape it
The number of layers, the light angle and how dark the shadow is.
Copy the CSS
One box-shadow value made of all the layers.
Questions
Why layer shadows?
Real shadows are dark close to the object and fade out further away. Several small shadows of growing size copy that, where one big blur looks flat.
Do shadows work on dark backgrounds?
They show less. On dark themes, a slightly lighter surface often does more than a shadow.
More design tools
- Nested corners: The inner radius that matches an outer corner.
- Gradient: Linear and radial CSS gradients blended in OKLCH.
- Easing curve: Cubic-bezier easing you can drag and test.