Solarus Design system
Updated · 20 Nov 2026 solarus.run
Solarus app · Canvas

Trajectory

A horizontal ruler that shows where a value was, is and is heading (score) or how far a run has gone (time).

Notes

  • .traj > .t-base (line) + .t-ticks, then marks positioned with left / width in %: .t-seg (past, ink) · .t-dash (projection, dashed accent) · .t-acc (elapsed run, solid accent) · .t-win (expected window, dashed ink) · .t-dot .t-prev / .t-now / .t-proj (projected = accent ring).
  • Labels: .t-lab.up above (.rest for a quieter one), .t-lab.dn below, .mid centres, .end right-aligns.
  • Sizes: default 52px; .tm (time, 60px, labels above and below); .sm (34px, inline under a stand row); .st (beside a score in .ws). Wrap in .traj-wrap to add a top hairline inside a card; on .card.inverse the marks turn ivory.
  • Accent marks are states (running, projected), never decoration. Always give the ruler role="img" and an aria-label that says the numbers.
  • .ws sets a 64px hero numeral beside the ruler ("where you stand"). Consumer provides the positions and the labels.