All styles
3D & Tactile

Layer Stack CSS Button

Free26 lines · no JS · WCAG AA 5.7
Open in Studio
Theme

A real <button> carrying .btn-layer-stack — the preview is the stylesheet, not a picture of it.

States
default
hover
focus-visible
active
disabled
not declared
.btn-layer-stack {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: #f472b6;
  color: #500724;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 0 -3px #db2777, 0 12px 0 -6px #9d174d;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-layer-stack:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 -3px #db2777, 0 16px 0 -6px #9d174d;
}
.btn-layer-stack:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 -3px #db2777, 0 6px 0 -6px #9d174d;
}
.btn-layer-stack:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-layer-stack
3D & TactileRounded

Implementation notes

About the Layer Stack CSS button

Layer Stack uses visible depth and press feedback that makes interaction feel physical. Its rounded corners balance product-friendly softness with a clear boundary. It combines a two-layer shadow and a 200ms hover lift. The interaction stays intentionally restrained.

Usage

<button class="btn-layer-stack">Button</button>

Pair it with the CSS tab above — the class is self-contained.

Before shipping: keep the semantic button element, verify contrast on your actual background and add a visible:focus-visible state. If you retain motion, include a prefers-reduced-motion override.
Built with
HTML + plain CSS
Shape
Rounded
Exports
CSS, Tailwind, React
License
MIT · commercial use
Complete the look

Build the interface around this button

We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.

Style DNA · v1
How matching works →
Pro preview
Modal92% match

Tactile Citrus Decision Modal

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Free sample
Input92% match

Tactile Citrus Smart Input

Tactile Citrus kit

3D & Tactile charactersolid surface
Pro preview
Toggle92% match

Tactile Citrus Preference Toggle

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Pro preview
Card92% match

Tactile Citrus Feature Card

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Pro preview
Dropdown92% match

Tactile Citrus Action Menu

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Pro preview
Form92% match

Tactile Citrus Signup Form

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Get the complete Tactile Citrus kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Arcade Coin

Clay Coral

Pushable Crimson

Balloon Float

Emboss Stone

Bevel Classic

Two optional extras load only if you allow them. Every button, preview and line of code works exactly the same either way. What each one does