0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
Step indicators show progress through a multi-step process. Built with CSS counters for auto-numbering, auto-generated connectors, and ARIA attributes for accessibility.
Overview
Step indicators communicate progress through a multi-step process like checkout, registration, or onboarding. The nav.steps pattern uses CSS-only numbered circles, auto-generated connectors, and semantic HTML.
Key features:
CSS counters for auto-numbering — no manual <span>1</span> needed
Auto connectors between steps via ::after pseudo-elements
Checkmark on completed steps (replaces counter number)
ARIA support — aria-current="step" for active, aria-label for the nav
Wizard integration — auto-syncs with wizard.js when present
Basic Step Indicator
The default horizontal layout with numbered circles, labels beside each circle, and auto-generated connectors between steps. Uses <ol> for semantic ordered progression.
Completed steps can contain <a> links to allow users to navigate back to earlier steps. Future steps remain plain text (non-clickable). The interactive demo below lets you navigate between steps with Previous/Next buttons.
Use data-labels="below" to position labels below their circles. Connectors run between circles at circle height using absolute positioning. This variant works well for steps with longer labels.
Use data-direction="vertical" to stack steps vertically with downward connectors. Useful for sidebar navigation or when you have many steps that need more space.
Vertical variant
<navclass="steps"data-direction="vertical"aria-label="Setup progress"><ol><lidata-completed>Create account</li><lidata-completed>Verify email</li><liaria-current="step">Set up profile</li><li>Choose plan</li><li>Get started</li></ol></nav>
Size Variants
Use data-size="sm" for compact indicators or data-size="lg" for more prominent ones. The default size is 2rem.
When used inside (or referenced by) a form[data-wizard], the wizard.js controller auto-syncs nav.steps state as the user navigates steps. Point the form to the nav using data-wizard-steps="#id", or place the nav.steps inside the form for auto-discovery.
The wizard automatically:
Sets data-completed on all steps before the current one
Sets aria-current="step" on the current step
Clears attributes from future steps
Hides conditional steps when they don't apply
Wizard + nav.steps integration
<!-- wizard.js auto-syncs nav.steps when inside a data-wizard form --><formdata-wizarddata-wizard-steps="#checkout-steps"><navclass="steps"id="checkout-steps"aria-label="Checkout progress"><ol><li>Shipping</li><li>Payment</li><li>Review</li></ol></nav><progressdata-wizard-progressmax="3"value="1"></progress><fieldsetdata-wizard-step><legend>Shipping</legend><!-- shipping fields --></fieldset><fieldsetdata-wizard-step><legend>Payment</legend><!-- payment fields --></fieldset><fieldsetdata-wizard-step><legend>Review</legend><!-- review content --></fieldset><navdata-wizard-nav><buttontype="button"data-wizard-prev>Previous</button><buttontype="button"data-wizard-next>Next</button><buttontype="submit">Place order</button></nav></form>