Do this
- Use multiple subtle layers rather than one heavy shadow for realistic depth.
- Match shadow direction across all components for consistent lighting.
- Create elevation tokens (sm, md, lg, xl) so shadows stay consistent across your UI.
Build modern soft shadows with multiple layers, tweak blur/spread/opacity, and copy clean CSS box-shadow code.
Background, card, border.
Offset, blur, spread, opacity.
Use in cards, modals, menus.
CSS output
box-shadow: 0px 12px 32px -8px rgba(17, 24, 39, 0.18), 0px 4px 12px -4px rgba(17, 24, 39, 0.12);
Copied
Create subtle, modern depth for cards, dropdowns, dialogs, and product interfaces.
Stack shadows for more realistic elevation than single-layer CSS.
Mix inset and outer shadows for nuanced component styling.
Tune blur, spread, offset, and opacity with instant feedback.
Copy final `box-shadow` code straight into your components.
Return to a clean baseline quickly while experimenting.
Standardize elevation tokens across your full UI system.
Different UI elements benefit from different shadow configurations. Use these starting points and refine with the generator.
Cards
2-3 layers with low offset and medium blur. Subtle depth without heavy visual weight.
Dropdowns
Larger blur with vertical offset to convey floating. Add a tight ambient layer for grounding.
Modals
High blur and large spread to separate from the backdrop. 3-4 layers for realistic elevation.
Buttons
Small offset and blur for resting state. Switch to inset shadow for pressed/active states.
Do this
Avoid this
Related workflow
Explore related tools to keep your workflow fast and consistent.
Practical playbooks to help you ship faster with fewer mistakes.
Build clean, scalable shadow stacks that improve hierarchy without muddying interfaces.
Design gradients that stay readable, performant, and visually consistent across real devices.
Turn one brand color into a production-ready palette with semantic tokens and accessibility checks.
Use practical contrast testing rules to ship accessible, readable UI color systems with confidence.