This shadow style creates depth using a wide, low-opacity ambient spread instead of vertical elevation.
HTML
<div class="shadow-ambient">
Ambient
</div>CSS
.shadow-ambient {
width: 200px;
padding: 2rem 0;
border-radius: 11px;
background: #ffffff;
color: #111827;
font-size: 12px;
text-align: center;
box-shadow:
0 0 0 1px rgba(0,0,0,0.04),
0 10px 30px rgba(0,0,0,0.10);
}
@media (prefers-color-scheme: dark) {
.shadow-ambient {
background: #27272a;
color: #f4f4f5;
box-shadow:
0 0 0 1px rgba(255,255,255,0.04),
0 12px 40px rgba(0,0,0,0.65);
}
}Notes
- Ambient depth without lift
- No hover or motion
- Ideal for persistent surfaces
Preview styles shown. Production customization recommended.
Browse More UI Components
Explore hundreds of reusable HTML & CSS UI components built for modern web projects.
Discover buttons, cards, loaders, animations, layouts, and more all with live previews and clean, copy-paste code.
