CSS shadows are a powerful tool to add depth, create mood, and elevate your design. Use these seven types to transform your UI:
- Soft Shadow:
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);– subtle and perfect for cards. - Medium Shadow:
box-shadow: 0 8px 24px rgba(37, 99, 235, 0.20);– balanced depth for elevated elements. - Hard Shadow:
box-shadow: 6px 6px 0 rgba(236, 72, 153, 1);– bold and sharp for a striking look. - Inner Shadow:
box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.1);– creates a subtle inner depth effect. - Glow Shadow:
box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);– adds vibrance and focus. - Multi-Layer Shadow:
box-shadow: 0 8px 16px rgba(0,0,0,0.10), 0 16px 32px rgba(0,0,0,0.08);– multiple shadows for rich, realistic depth.
Pro Tip: The box-shadow property accepts: offset-x | offset-y | blur-radius | spread-radius | color. Shadows bring life to your designs.
Made with AI: Sounds or visuals were altered or fully generated. Learn more