{
  "id": "stacked-layers-button",
  "name": "Stacked Layers Button",
  "category": "buttons",
  "tags": [
    "offset",
    "depth",
    "playful",
    "retro",
    "box-shadow"
  ],
  "description": "A bold outlined button that fans out two colored layers behind it on hover, then snaps flat on click.",
  "url": "https://copy-css.com/snippets/stacked-layers-button",
  "markdown": "https://copy-css.com/snippets/stacked-layers-button.md",
  "html": "<button class=\"btn-stack\">Join the club</button>",
  "css": ".btn-stack {\n  padding: 14px 32px;\n  border: 2px solid #111827;\n  border-radius: 10px;\n  background: #fde047;\n  color: #111827;\n  font: 700 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  /* Each layer = a colored shadow inset by 2px over a dark one (the outline) */\n  box-shadow:\n    0 0 0 -2px #f472b6, 0 0 0 0 #111827,\n    0 0 0 -2px #60a5fa, 0 0 0 0 #111827;\n  transition: box-shadow 0.2s ease;\n}\n\n.btn-stack:hover,\n.btn-stack:focus-visible {\n  box-shadow:\n    5px 5px 0 -2px #f472b6, 5px 5px 0 0 #111827,\n    10px 10px 0 -2px #60a5fa, 10px 10px 0 0 #111827;\n}\n\n.btn-stack:active {\n  box-shadow:\n    0 0 0 -2px #f472b6, 0 0 0 0 #111827,\n    0 0 0 -2px #60a5fa, 0 0 0 0 #111827;\n}\n\n.btn-stack:focus-visible {\n  outline: 3px solid #2563eb;\n  outline-offset: 14px;\n}",
  "features": [
    "transitions",
    "box shadows",
    "keyboard focus styles"
  ],
  "customProperties": []
}
