<div class="card">(old) Desaturated shadow, no negative spread</div>
<div class="card better">(new) Saturated shadow, with negative spread</div>
.card {
box-shadow: 0 1rem 2rem hsl(0 0% 0% / 20%);
background: hsl(0 0% 100%);
color: hsl(200 50% 20%);
line-height: 1.5;
font-size: 1.5rem;
font-weight: 300;
width: 35vmin;
height: 35vmin;
display: flex;
place-items: center;
text-align: center;
padding: 3ch;
border-radius: 2ch;
border: 1px solid hsl(0 0% 83%);
}
.better {
box-shadow: 0 2.5rem 2rem -2rem hsl(200 50% 20% / 40%);
}
html {
block-size: 100%;
inline-size: 100%;
background: hsl(0 0% 85%);
}
body {
min-block-size: 100%;
min-inline-size: 100%;
margin: 0;
box-sizing: border-box;
display: grid;
grid-auto-flow: column;
gap: 5vmin;
place-content: center;
font-family: system-ui;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.