{
  "id": "stepper",
  "name": "Progress Stepper",
  "category": "navigation",
  "tags": [
    "steps",
    "wizard",
    "checkout",
    "progress",
    "counter"
  ],
  "description": "A numbered step indicator for checkouts and wizards, with done, current and upcoming states.",
  "url": "https://copy-css.com/snippets/stepper",
  "markdown": "https://copy-css.com/snippets/stepper.md",
  "html": "<ol class=\"stepper\">\n  <li class=\"done\">Cart</li>\n  <li aria-current=\"step\">Shipping</li>\n  <li>Payment</li>\n</ol>",
  "css": ".stepper {\n  display: flex;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  counter-reset: step;\n  font: 600 13px/1 system-ui, sans-serif;\n}\n\n.stepper li {\n  position: relative;\n  display: grid;\n  justify-items: center;\n  gap: 8px;\n  width: 90px;\n  color: #94a3b8;\n  counter-increment: step;\n}\n\n/* Number bubble */\n.stepper li::before {\n  content: counter(step);\n  z-index: 1;\n  display: grid;\n  place-items: center;\n  width: 30px;\n  height: 30px;\n  border: 2px solid #cbd5e1;\n  border-radius: 50%;\n  background: #fff;\n}\n\n/* Connector line to the previous step */\n.stepper li + li::after {\n  content: \"\";\n  position: absolute;\n  top: 15px;\n  right: 50%;\n  width: 100%;\n  height: 2px;\n  background: #e2e8f0;\n}\n\n.stepper .done,\n.stepper [aria-current] {\n  color: #0f172a;\n}\n\n.stepper .done::before {\n  content: \"\\2713\";\n  border-color: #10b981;\n  background: #10b981;\n  color: #fff;\n}\n\n.stepper [aria-current]::before {\n  border-color: #10b981;\n  color: #10b981;\n}\n\n.stepper [aria-current]::after {\n  background: #10b981;\n}",
  "features": [
    "CSS Grid",
    "Flexbox"
  ],
  "customProperties": []
}
