Sami Vuori Design system Back to site →

Chapter nav

The sticky chapter bar of a case study (Figma 105:902): chapters as pills, the current one filled with the accent, and a reading-progress line along the bottom.

Static here; on an article it sticks to the top and follows the scroll
PropTypeDefaultDescription
chapters { id; label }[] — ids of the chapter starts in the article.
Token Base Note
--chapter-nav-py 18px Figma 105:902: bar 78 tall with the line
--chapter-pill-py var(--spacing-sm)
--chapter-pill-pl var(--spacing-sm)
--chapter-pill-pr var(--spacing-md)
--chapter-pill-gap var(--spacing-xs)
--chapter-number-size 24px number circle = one label line (16 × 1.5)
--chapter-nav-gap var(--spacing-lg)
--chapter-progress-height 2px
--chapter-nav-height calc(2 * var(--chapter-nav-py) + 2 * var(--chapter-pill-py) + var(--chapter-number-size) + var(--chapter-progress-height))
--chapter-scroll-margin calc(var(--chapter-nav-height) + var(--spacing-lg)) jump targets land 24 below the bar
--accent-hover-tint 30% accent mixed into hovered pills
--z-sticky 50 article chapter bar