About this set
Sidebars for documentation and long guides, where the navigation follows the reader. The docs layout has three columns: section navigation on the left with the current page marked by a coloured border, a scrolling article about installing a component library, and an On this page list on the right that highlights the section now at the top of the article. The tutorial layout puts five numbered steps beside a deploy guide; as you scroll, the current step fills blue with a soft ring, the steps you have passed turn green, and the line between them fills in. In plain CSS and Tailwind a short script watches the article’s scroll position and moves aria-current to the matching link; the green steps come from :has(), so the script only marks one link. The Bootstrap version uses Bootstrap’s own ScrollSpy plugin, which adds an active class, and the same CSS reads that class. Without JavaScript the links still jump to their sections. The On this page column hides below 900px, and scrolling is smooth unless the reader prefers reduced motion.
What’s included
- Docs navigation with a bordered current page
- On this page list that follows the scroll
- Tutorial steps that turn green once passed, through :has()
- Short vanilla script in CSS and Tailwind, ScrollSpy in Bootstrap
- Links still jump to sections with JavaScript off
Accessibility
The current doc page uses aria-current="page" and the highlighted section link gets aria-current="true", so the position is announced as well as shown. The scrolling article is focusable with tabindex="0" and labelled, so keyboard users can scroll it; step numbers are hidden from screen readers and replaced by "Step 1:" text. Focus outlines are visible, and smooth scrolling and colour transitions stop under prefers-reduced-motion.
Customise it
Accent colours are #0369a1 for the current link and #047857 for finished steps; change them in .dn, .toc and the --st-* properties. In Bootstrap adjust data-bs-root-margin on the article to move the point where a section counts as current; in Tailwind edit the aria-[current]: and group-has- utilities.





