Timeline

A vertical timeline for roadmaps, changelogs or company history.

ThemeMode
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#18181b, #fafafa);
  --color-accent: light-dark(#4f46e5, #818cf8);
  --color-bg: light-dark(#ffffff, #0b0b0d);
  --color-surface: light-dark(#f7f7f8, #161619);
  --color-text: light-dark(#0a0a0c, #f5f5f6);
  --color-text-muted: light-dark(#52525b, #a1a1aa);
  --color-border: light-dark(#e4e4e7, #26262b);
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.1;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 0.625rem;
  --shadow: 0 1px 2px rgb(10 10 12 / 0.05), 0 4px 12px rgb(10 10 12 / 0.06), 0 16px 40px rgb(10 10 12 / 0.06);
  --container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#4f46e5, #818cf8);
  --color-accent: light-dark(#a855f7, #c084fc);
  --color-bg: light-dark(#ffffff, #0c0c18);
  --color-surface: light-dark(#f5f5ff, #16162b);
  --color-text: light-dark(#111127, #ececf6);
  --color-text-muted: light-dark(#5a5a72, #9d9dbd);
  --color-border: light-dark(#e4e4f2, #28284a);
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.1;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(79 70 229 / 0.06), 0 6px 16px rgb(79 70 229 / 0.10), 0 20px 48px rgb(79 70 229 / 0.10);
  --container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#0d9488, #2dd4bf);
  --color-accent: light-dark(#f97316, #fb923c);
  --color-bg: light-dark(#fbfaf8, #171412);
  --color-surface: light-dark(#f3f0ea, #221e1a);
  --color-text: light-dark(#292524, #ece7e0);
  --color-text-muted: light-dark(#6b6560, #a8a099);
  --color-border: light-dark(#e5dfd6, #37312a);
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 1rem;
  --shadow: 0 2px 6px rgb(90 75 60 / 0.06), 0 10px 28px rgb(90 75 60 / 0.10);
  --container-width: 1120px;
}
HTML
<section class="s-timeline-vertical">
  <div class="tl-inner">
    <div class="tl-head">
      <span class="tl-eyebrow">History</span>
      <h2>How we got here</h2>
      <p>A short history of the project.</p>
    </div>
    <ol class="tl-list">
      <li class="tl-item"><span class="tl-dot"></span><span class="tl-date">2023</span><h3>The first prototype</h3><p>A weekend experiment that turned into something people actually wanted.</p></li>
      <li class="tl-item"><span class="tl-dot"></span><span class="tl-date">2024</span><h3>Public launch</h3><p>Opened the doors, shipped the first paid tier, learned a lot fast.</p></li>
      <li class="tl-item"><span class="tl-dot"></span><span class="tl-date">2025</span><h3>Ten thousand users</h3><p>Crossed a milestone we set as a someday goal two years earlier.</p></li>
      <li class="tl-item"><span class="tl-dot"></span><span class="tl-date">2026</span><h3>Version two</h3><p>A ground-up rebuild on the modern platform, twice as fast.</p></li>
    </ol>
  </div>
</section>
CSS block only, works with any theme's tokens
.s-timeline-vertical {
  background:
    radial-gradient(36rem 18rem at 15% -10%, color-mix(in srgb, var(--color-primary) 5%, transparent), transparent 60%),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  padding-block: var(--space-2xl);
}
.s-timeline-vertical .tl-inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.s-timeline-vertical .tl-head {
  margin-bottom: var(--space-xl);
}
.s-timeline-vertical .tl-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.s-timeline-vertical .tl-head h2 {
  font-family: var(--font-heading);
  text-wrap: balance;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}
.s-timeline-vertical .tl-head p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0;
}
.s-timeline-vertical .tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.s-timeline-vertical .tl-item {
  position: relative;
  padding-left: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-left: 2px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
}
.s-timeline-vertical .tl-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.s-timeline-vertical .tl-dot {
  position: absolute;
  left: -0.55rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 55%, var(--color-accent)));
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.s-timeline-vertical .tl-date {
  display: inline-block;
  padding: 0.1rem var(--space-sm);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-bg));
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.s-timeline-vertical .tl-item h3 {
  font-family: var(--font-heading);
  text-wrap: balance;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-xs);
}
.s-timeline-vertical .tl-item p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  text-wrap: pretty;
  color: var(--color-text-muted);
  margin: 0;
}
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#18181b, #fafafa);
  --color-accent: light-dark(#4f46e5, #818cf8);
  --color-bg: light-dark(#ffffff, #0b0b0d);
  --color-surface: light-dark(#f7f7f8, #161619);
  --color-text: light-dark(#0a0a0c, #f5f5f6);
  --color-text-muted: light-dark(#52525b, #a1a1aa);
  --color-border: light-dark(#e4e4e7, #26262b);
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.1;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 0.625rem;
  --shadow: 0 1px 2px rgb(10 10 12 / 0.05), 0 4px 12px rgb(10 10 12 / 0.06), 0 16px 40px rgb(10 10 12 / 0.06);
  --container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#4f46e5, #818cf8);
  --color-accent: light-dark(#a855f7, #c084fc);
  --color-bg: light-dark(#ffffff, #0c0c18);
  --color-surface: light-dark(#f5f5ff, #16162b);
  --color-text: light-dark(#111127, #ececf6);
  --color-text-muted: light-dark(#5a5a72, #9d9dbd);
  --color-border: light-dark(#e4e4f2, #28284a);
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.1;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(79 70 229 / 0.06), 0 6px 16px rgb(79 70 229 / 0.10), 0 20px 48px rgb(79 70 229 / 0.10);
  --container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#0d9488, #2dd4bf);
  --color-accent: light-dark(#f97316, #fb923c);
  --color-bg: light-dark(#fbfaf8, #171412);
  --color-surface: light-dark(#f3f0ea, #221e1a);
  --color-text: light-dark(#292524, #ece7e0);
  --color-text-muted: light-dark(#6b6560, #a8a099);
  --color-border: light-dark(#e5dfd6, #37312a);
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 1rem;
  --shadow: 0 2px 6px rgb(90 75 60 / 0.06), 0 10px 28px rgb(90 75 60 / 0.10);
  --container-width: 1120px;
}
HTML
<section class="s-timeline-centered">
  <div class="tl-inner">
    <div class="tl-head">
      <span class="tl-eyebrow">Roadmap</span>
      <h2>Product roadmap</h2>
      <p>Where we are and where we are going.</p>
    </div>
    <ol class="tl-list">
      <li class="tl-item"><div class="tl-body"><span class="tl-date">Shipped</span><h3>Copy-paste blocks</h3><p>The core library, free and open to browse.</p></div></li>
      <li class="tl-item"><div class="tl-body"><span class="tl-date">Now</span><h3>Pro library</h3><p>High-craft blocks for paying members.</p></div></li>
      <li class="tl-item"><div class="tl-body"><span class="tl-date">Next</span><h3>Theme presets</h3><p>One-click palettes across every block.</p></div></li>
    </ol>
  </div>
</section>
CSS block only, works with any theme's tokens
.s-timeline-centered {
  background:
    radial-gradient(40rem 20rem at 50% -12%, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 60%),
    var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  padding-block: var(--space-2xl);
}
.s-timeline-centered .tl-inner {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.s-timeline-centered .tl-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.s-timeline-centered .tl-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.s-timeline-centered .tl-head h2 {
  font-family: var(--font-heading);
  text-wrap: balance;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}
.s-timeline-centered .tl-head p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0;
}
.s-timeline-centered .tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.s-timeline-centered .tl-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 35%, var(--color-border)), var(--color-border));
  transform: translateX(-50%);
}
.s-timeline-centered .tl-item {
  position: relative;
  width: 50%;
  padding: 0 var(--space-xl) var(--space-xl) 0;
}
.s-timeline-centered .tl-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 var(--space-xl) var(--space-xl);
}
.s-timeline-centered .tl-item::before {
  content: '';
  position: absolute;
  top: 0.35rem;
  right: calc(var(--space-xl) * -0.5 - 0.5rem);
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 55%, var(--color-accent)));
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.s-timeline-centered .tl-item:nth-child(even)::before {
  right: auto;
  left: calc(var(--space-xl) * -0.5 - 0.5rem);
}
.s-timeline-centered .tl-body {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.s-timeline-centered .tl-body:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}
.s-timeline-centered .tl-date {
  display: inline-block;
  padding: 0.1rem var(--space-sm);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-bg));
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.s-timeline-centered .tl-item h3 {
  font-family: var(--font-heading);
  text-wrap: balance;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-xs);
}
.s-timeline-centered .tl-item p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  text-wrap: pretty;
  color: var(--color-text-muted);
  margin: 0;
}
@media (max-width: 640px) {
  .s-timeline-centered .tl-list::before {
    left: 0.5rem;
  }
  .s-timeline-centered .tl-item,
  .s-timeline-centered .tl-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 var(--space-lg) var(--space-xl);
  }
  .s-timeline-centered .tl-item::before,
  .s-timeline-centered .tl-item:nth-child(even)::before {
    left: 0;
    right: auto;
  }
}

Baseline 2024 — works in every up-to-date browser.

Plus universally supported features: logical properties, custom properties. Baseline status is pulled from each feature's reference snippet.

ESC