Timeline
Vertical timeline for displaying chronological events.
Basic timeline
An ordered list with a vertical line and marker dots.
<ol class="timeline">
<li>
<time class="date">March 2024</time>
<div class="content">
<h3>Event title</h3>
<p>Event description.</p>
</div>
</li>
</ol>
-
Project launched
Initial release to the public.
-
Development started
Repository created and initial architecture defined.
-
Planning phase
Requirements gathered and design system scoped.
Semantic markers
Color the dot markers to indicate status: success, warning, or error.
<li data-status="success">...</li>
<li data-status="warning">...</li>
<li data-status="error">...</li>
-
Deploy to production
Successfully deployed v1.0.
-
Code review
Awaiting reviewer feedback.
-
API integration
Waiting on third-party credentials.
Relative event dates
Use relative time for recent events, while keeping the exact date as the semantic and accessible value.
<!-- Optional enhancement; include only on pages that use it -->
<script type="module" src="/dist/relative-time.js"></script>
<li>
<lw-relative-time lang="en">
<time class="date" datetime="2026-10-10T15:25:00Z">
<span data-relative-time-fallback>October 10, 2026 at 3:25 PM UTC</span><span data-relative-time-output hidden></span>
</time>
</lw-relative-time>
<div class="content">
<h3>Project update</h3>
<p>A recent event appears as a relative date.</p>
</div>
</li>
-
Project update
A recent event appears as a relative date.
Milestone markers
Group events by year, phase, or stage with a .milestone list item. Uses a larger structural dot and prominent label.
<ol class="timeline">
<li class="milestone">2024</li>
<li>
<time class="date">March</time>
<div class="content">
<h3>Event title</h3>
</div>
</li>
<li class="milestone">2023</li>
<li data-status="success">
<time class="date">November</time>
<div class="content">
<h3>Planning complete</h3>
</div>
</li>
</ol>
- 2024
-
Project launched
Initial release to the public.
-
Development started
Repository created and initial architecture defined.
- 2023
-
Planning complete
Requirements gathered and design system scoped.
-
Concept exploration
Initial research and proof of concept.