{
 "id": "setup-steps",
 "name": "Setup checklist",
 "purpose": "A short list of first steps with progress: what is done, the one step to do now with its time and a way to skip, and what comes next.",
 "use_when": [
  "for a new account's first steps",
  "a home-screen card that brings people back to an unfinished setup, one step at a time"
 ],
 "avoid_when": [
  "steps an AI agent is running on its own: use agent-steps",
  "a long form split into pages with back and next: build it from the form's own sections",
  "a daily habit or goal: use daily-goals or habit-tracker"
 ],
 "type": "navigation",
 "style": "friendly",
 "width": "narrow",
 "tags": {
  "audience": "work",
  "industries": [
   "saas",
   "finance",
   "education",
   "health"
  ],
  "keywords": [
   "onboarding",
   "checklist",
   "progress",
   "steps",
   "setup"
  ]
 },
 "root": ".odl-setup-steps",
 "parts": [
  {
   "name": "title",
   "selector": ".odl-setup-steps h3",
   "what": "what is being set up",
   "slot": "text"
  },
  {
   "name": "progress",
   "selector": ".odl-count",
   "what": "a progress bar and how many steps are done",
   "slot": "number"
  },
  {
   "name": "steps",
   "selector": "ol > li",
   "what": "one step: done, now or next",
   "slot": "list"
  },
  {
   "name": "mark",
   "selector": ".odl-mark",
   "what": "a tick for done steps, the step number for the rest",
   "slot": "none"
  },
  {
   "name": "step_title",
   "selector": ".odl-title",
   "what": "the step's name, with a short note on the right such as the time it takes",
   "slot": "text"
  },
  {
   "name": "detail",
   "selector": ".odl-detail",
   "what": "one line about the current step",
   "slot": "text"
  },
  {
   "name": "primary",
   "selector": ".odl-primary",
   "what": "the action for the current step",
   "slot": "action"
  },
  {
   "name": "skip",
   "selector": ".odl-quiet",
   "what": "a quiet way to skip the current step",
   "slot": "action"
  }
 ],
 "data": {
  "type": "object",
  "required": [
   "title",
   "steps"
  ],
  "properties": {
   "title": {
    "type": "string",
    "maxLength": 32,
    "part": "title"
   },
   "steps": {
    "type": "array",
    "minItems": 2,
    "maxItems": 6,
    "part": "steps",
    "items": {
     "type": "object",
     "required": [
      "title",
      "state"
     ],
     "properties": {
      "title": {
       "type": "string",
       "maxLength": 32
      },
      "note": {
       "type": "string",
       "maxLength": 14
      },
      "state": {
       "enum": [
        "done",
        "now",
        "next"
       ]
      },
      "detail": {
       "type": "string",
       "maxLength": 100
      },
      "action": {
       "type": "string",
       "maxLength": 20
      },
      "skip": {
       "type": "string",
       "maxLength": 16
      }
     }
    }
   }
  }
 },
 "states": {
  "shown": [
   "done",
   "current",
   "upcoming",
   "hover",
   "focus"
  ],
  "edge": {
   "empty": {
    "status": "handled",
    "evidence": "data-od-list",
    "how": "the Smart UI renderer puts one plain 'Nothing to show yet.' line in an empty list"
   },
   "loading": {
    "status": "handled",
    "evidence": "data-od-slot",
    "how": "the Smart UI renderer draws each marked slot as a quiet block of its size while the data arrives; the static file shows the filled part"
   },
   "error": {
    "status": "not_built",
    "how": "if the current step fails, keep it current and put an alert-banners line above its buttons"
   },
   "disabled": {
    "status": "not_built",
    "how": "while the current step is running, set disabled on its buttons and change the label to say it is working"
   },
   "overflow": {
    "status": "handled",
    "how": "the current step's buttons wrap under each other in a narrow box; more steps make the card taller",
    "evidence": ".odl-acts { display: flex; flex-wrap: wrap"
   },
   "long_text": {
    "status": "handled",
    "how": "step names and the detail line wrap beside the mark; the short note on the right never wraps",
    "evidence": "grid-template-columns: var(--ds-size-control-sm) minmax(0, 1fr)"
   },
   "missing_image": {
    "status": "none",
    "how": "the part has no photo"
   }
  }
 },
 "tokens": [
  "--ds-border-width-default",
  "--ds-border-width-emphasis",
  "--ds-color-bg-action-primary",
  "--ds-color-bg-action-primary-hover",
  "--ds-color-bg-neutral-subtle",
  "--ds-color-bg-success-subtle",
  "--ds-color-border-default",
  "--ds-color-border-focus",
  "--ds-color-border-separator",
  "--ds-color-border-subtle",
  "--ds-color-surface-raised",
  "--ds-color-text-on-action",
  "--ds-color-text-primary",
  "--ds-color-text-secondary",
  "--ds-color-text-success",
  "--ds-color-text-tertiary",
  "--ds-elevation-raised",
  "--ds-focus-ring-offset",
  "--ds-focus-ring-width",
  "--ds-font-weight-body",
  "--ds-font-weight-heading",
  "--ds-font-weight-label",
  "--ds-icon-stroke-lg",
  "--ds-motion-duration-short",
  "--ds-motion-easing-standard",
  "--ds-radius-container",
  "--ds-radius-control",
  "--ds-radius-full",
  "--ds-size-control-md",
  "--ds-size-control-sm",
  "--ds-size-icon-sm",
  "--ds-size-target-min",
  "--ds-space-4",
  "--ds-space-6",
  "--ds-space-inline-md",
  "--ds-space-inline-sm",
  "--ds-space-inset-lg",
  "--ds-space-inset-md",
  "--ds-space-inset-xl",
  "--ds-space-inset-xs",
  "--ds-space-stack-lg",
  "--ds-space-stack-md",
  "--ds-space-stack-sm",
  "--ds-space-stack-xs",
  "--ds-text-body-md",
  "--ds-text-label-lg",
  "--ds-text-label-md",
  "--ds-text-title-md"
 ],
 "a11y": {
  "summary": "An ordered list with the current step marked aria-current; progress is a native progress element with a label, and the count is also written out.",
  "roles": [
   "banner",
   "list",
   "progressbar",
   "region"
  ],
  "keyboard": [
   "Tab reaches the current step's main button, then Skip for now",
   "Enter or Space presses the focused button"
  ],
  "controls": {
   "button": 4,
   "input": 0,
   "link": 0,
   "select": 0,
   "textarea": 0,
   "summary": 0
  },
  "focus_visible": true,
  "reduced_motion": true,
  "min_target": true
 },
 "files": {
  "html": "components/setup-steps/component.html",
  "bytes": 9287,
  "script": true
 },
 "source": "brand/showcase/components/09-onboarding-stepper",
 "photos": 0,
 "urls": {
  "html": "https://opendesigner.dev/library/setup-steps.html",
  "json": "https://opendesigner.dev/library/setup-steps.json",
  "page": "https://opendesigner.dev/library/setup-steps/"
 },
 "get": {
  "curl": "curl -fsSLo setup-steps.html https://opendesigner.dev/library/setup-steps.html",
  "opendesigner": "python3 path/to/skills/opendesigner/scripts/library.py add setup-steps --from https://opendesigner.dev",
  "prompt": "Add the OpenDesigner component setup-steps to this project: https://opendesigner.dev/library/setup-steps.html. Keep its markup and states; map its --ds-* variables to my tokens."
 }
}
