Stacked layers
Stacked layers: a CSS button. Copy the rules, or the prompt that rebuilds it.
CSS
.btn-055 {
font: 700 15px/1 system-ui,sans-serif;
color: #1e1b4b;
background: #c7d2fe;
border: 2px solid #1e1b4b;
border-radius: 6px;
padding: 12px 26px;
cursor: pointer;
box-shadow: 3px 3px 0 #1e1b4b,6px 6px 0 #a5b4fc,9px 9px 0 #1e1b4b;
transition: transform .12s,box-shadow .12s
}
.btn-055:hover {
transform: translate(-2px,-2px);
box-shadow: 5px 5px 0 #1e1b4b,10px 10px 0 #a5b4fc,15px 15px 0 #1e1b4b
}
.btn-055:focus-visible {
outline: 3px solid #6366f1;
outline-offset: 4px
}
.btn-055:active {
transform: translate(4px,4px);
box-shadow: 0 0 0 #1e1b4b,2px 2px 0 #a5b4fc,4px 4px 0 #1e1b4b
}
HTML
<button class="btn-055">Stack</button>Prompt
A stacked-layer 3D button: periwinkle #c7d2fe fill, 2px #1e1b4b border, 6px radius, dark 15px bold text, 12px by 26px padding, and three hard offset shadows at 3px, 6px and 9px alternating dark/#a5b4fc/dark so it looks like a stack of cards. Hover spreads the stack (5/10/15px); press compresses it (0/2/4px). Focus outline 3px indigo.