Components Data display
Pipeline
Inspect the stages of a workflow, the people responsible, and the steps that move work forward.
Form & Function
Publication pipeline
Field Notes · Issue 04
Intake
Collect the studio notes and decide which experiments belong in the spring issue.
- Owner
- Programme team
Steps2
- Gather field notesCompleted
- Approve the briefCompleted
The issue follows four objects from first prototype to exhibition.
Draft
Turn the makers’ observations into a set of short essays with annotated photographs.
- Owner
- Leah Chen
Steps2
- Draft the four essaysCompleted
- Match photographs to captionsCompleted
Editorial review
Check the claims and captions with the makers before the pages go to the printer.
- Owner
- Iris Tan
Steps3
- Read the page proofsCompleted
The editor has marked the first set of proofs.
- Confirm the object captionsIn progress
Two makers are checking dimensions and material credits.
- Sign off the final copyQueued
Print proof
Compare a bound proof with the approved layout under the studio lights.
- Owner
- Print room
Steps2
- Pull a bound proofQueued
- Check folds and image densityQueued
Release
Send the issue to subscribers and place copies on the exhibition reading table.
- Owner
- Distribution team
Steps2
- Dispatch subscriber copiesQueued
- Stock the reading tableQueued
Usage
Set Title, optional Subtitle and Context, then supply Stages in workflow order. Each stage has a Title and can include Status, Description, Owner, URL and LinkLabel. Its Steps take a Title, an optional Status and a short Note. Completed, In progress, Queued, Blocked, Failed and Skipped have distinct monochrome symbols. Other status labels are shown as supplied. An omitted status defaults to Queued. Go renders every stage and its steps. The stage links work as native anchors. The optional module shows one stage at a time, starting with the first In progress stage or the first stage. Left and Right move between stages. Home and End select the first and last. A link to a stage section opens that stage on page load.
Register pipeline with Head and pass its properties to Render. Go setup guide
To move individual work items between stages, use the Kanban board.
Go usage
err := mono.UI.Render(w, "pipeline", mono.Props{
"Context": "Field Notes · Issue 04",
"Stages": []any{
map[string]any{
"Description": "Collect the studio notes and decide which experiments belong in the spring issue.",
"Owner": "Programme team",
"Status": "Completed",
"Steps": []any{
map[string]any{
"Status": "Completed",
"Title": "Gather field notes",
},
map[string]any{
"Note": "The issue follows four objects from first prototype to exhibition.",
"Status": "Completed",
"Title": "Approve the brief",
},
},
"Title": "Intake",
},
map[string]any{
"Description": "Turn the makers’ observations into a set of short essays with annotated photographs.",
"Owner": "Leah Chen",
"Status": "Completed",
"Steps": []any{
map[string]any{
"Status": "Completed",
"Title": "Draft the four essays",
},
map[string]any{
"Status": "Completed",
"Title": "Match photographs to captions",
},
},
"Title": "Draft",
},
map[string]any{
"Description": "Check the claims and captions with the makers before the pages go to the printer.",
"LinkLabel": "View the production plan",
"Owner": "Iris Tan",
"Status": "In progress",
"Steps": []any{
map[string]any{
"Note": "The editor has marked the first set of proofs.",
"Status": "Completed",
"Title": "Read the page proofs",
},
map[string]any{
"Note": "Two makers are checking dimensions and material credits.",
"Status": "In progress",
"Title": "Confirm the object captions",
},
map[string]any{
"Status": "Queued",
"Title": "Sign off the final copy",
},
},
"Title": "Editorial review",
"URL": "../components/gantt-chart.html",
},
map[string]any{
"Description": "Compare a bound proof with the approved layout under the studio lights.",
"Owner": "Print room",
"Status": "Queued",
"Steps": []any{
map[string]any{
"Status": "Queued",
"Title": "Pull a bound proof",
},
map[string]any{
"Status": "Queued",
"Title": "Check folds and image density",
},
},
"Title": "Print proof",
},
map[string]any{
"Description": "Send the issue to subscribers and place copies on the exhibition reading table.",
"Owner": "Distribution team",
"Status": "Queued",
"Steps": []any{
map[string]any{
"Status": "Queued",
"Title": "Dispatch subscriber copies",
},
map[string]any{
"Status": "Queued",
"Title": "Stock the reading table",
},
},
"Title": "Release",
},
},
"Subtitle": "Form & Function",
"Title": "Publication pipeline",
})Rendered HTML
<section id="demo-pipeline" data-mono="pipeline" aria-labelledby="demo-pipeline-title">
<header class="mu-pl-mast">
<div><p class="mu-pl-kicker">Form & Function</p><h2 id="demo-pipeline-title">Publication pipeline</h2></div>
<p class="mu-pl-context">Field Notes · Issue 04</p>
</header>
<div class="mu-pl-flow">
<div class="mu-pl-stages" data-stage-list aria-label="Pipeline stages">
<a class="mu-pl-stage" id="demo-pipeline-stage-0" data-stage data-status="Completed" href="#demo-pipeline-detail-0">
<span class="mu-pl-stage-top"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg><span class="mu-pl-wire" aria-hidden="true"></span></span>
<strong>Intake</strong><small>Completed</small>
</a><a class="mu-pl-stage" id="demo-pipeline-stage-1" data-stage data-status="Completed" href="#demo-pipeline-detail-1">
<span class="mu-pl-stage-top"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg><span class="mu-pl-wire" aria-hidden="true"></span></span>
<strong>Draft</strong><small>Completed</small>
</a><a class="mu-pl-stage" id="demo-pipeline-stage-2" data-stage data-status="In progress" aria-current="step" href="#demo-pipeline-detail-2">
<span class="mu-pl-stage-top"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="M10 6a4 4 0 0 1 0 8Z" fill="currentColor" stroke="none"/></svg><span class="mu-pl-wire" aria-hidden="true"></span></span>
<strong>Editorial review</strong><small>In progress</small>
</a><a class="mu-pl-stage" id="demo-pipeline-stage-3" data-stage data-status="Queued" href="#demo-pipeline-detail-3">
<span class="mu-pl-stage-top"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg><span class="mu-pl-wire" aria-hidden="true"></span></span>
<strong>Print proof</strong><small>Queued</small>
</a><a class="mu-pl-stage" id="demo-pipeline-stage-4" data-stage data-status="Queued" href="#demo-pipeline-detail-4">
<span class="mu-pl-stage-top"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg><span class="mu-pl-wire" aria-hidden="true"></span></span>
<strong>Release</strong><small>Queued</small>
</a>
</div>
<section id="demo-pipeline-detail-0" class="mu-pl-panel" data-stage-panel aria-labelledby="demo-pipeline-heading-0">
<div class="mu-pl-summary">
<span class="mu-pl-state"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg>Completed</span>
<h3 id="demo-pipeline-heading-0">Intake</h3>
<p class="mu-pl-description">Collect the studio notes and decide which experiments belong in the spring issue.</p>
<dl class="mu-pl-owner"><dt>Owner</dt><dd>Programme team</dd></dl>
</div>
<div class="mu-pl-work">
<h4>Steps<span>2</span></h4>
<ol class="mu-pl-steps" aria-label="Intake steps">
<li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg><div><strong>Gather field notes</strong></div><small>Completed</small></li><li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg><div><strong>Approve the brief</strong><p>The issue follows four objects from first prototype to exhibition.</p></div><small>Completed</small></li>
</ol>
</div>
</section><section id="demo-pipeline-detail-1" class="mu-pl-panel" data-stage-panel aria-labelledby="demo-pipeline-heading-1">
<div class="mu-pl-summary">
<span class="mu-pl-state"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg>Completed</span>
<h3 id="demo-pipeline-heading-1">Draft</h3>
<p class="mu-pl-description">Turn the makers’ observations into a set of short essays with annotated photographs.</p>
<dl class="mu-pl-owner"><dt>Owner</dt><dd>Leah Chen</dd></dl>
</div>
<div class="mu-pl-work">
<h4>Steps<span>2</span></h4>
<ol class="mu-pl-steps" aria-label="Draft steps">
<li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg><div><strong>Draft the four essays</strong></div><small>Completed</small></li><li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg><div><strong>Match photographs to captions</strong></div><small>Completed</small></li>
</ol>
</div>
</section><section id="demo-pipeline-detail-2" class="mu-pl-panel" data-stage-panel aria-labelledby="demo-pipeline-heading-2">
<div class="mu-pl-summary">
<span class="mu-pl-state"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="M10 6a4 4 0 0 1 0 8Z" fill="currentColor" stroke="none"/></svg>In progress</span>
<h3 id="demo-pipeline-heading-2">Editorial review</h3>
<p class="mu-pl-description">Check the claims and captions with the makers before the pages go to the printer.</p>
<dl class="mu-pl-owner"><dt>Owner</dt><dd>Iris Tan</dd></dl>
<a class="mu-pl-link" href="../components/gantt-chart.html">View the production plan<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8h9m-4-4 4 4-4 4"/></svg></a>
</div>
<div class="mu-pl-work">
<h4>Steps<span>3</span></h4>
<ol class="mu-pl-steps" aria-label="Editorial review steps">
<li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="m6.5 10.2 2.3 2.3 4.7-5"/></svg><div><strong>Read the page proofs</strong><p>The editor has marked the first set of proofs.</p></div><small>Completed</small></li><li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"/><path d="M10 6a4 4 0 0 1 0 8Z" fill="currentColor" stroke="none"/></svg><div><strong>Confirm the object captions</strong><p>Two makers are checking dimensions and material credits.</p></div><small>In progress</small></li><li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg><div><strong>Sign off the final copy</strong></div><small>Queued</small></li>
</ol>
</div>
</section><section id="demo-pipeline-detail-3" class="mu-pl-panel" data-stage-panel aria-labelledby="demo-pipeline-heading-3">
<div class="mu-pl-summary">
<span class="mu-pl-state"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg>Queued</span>
<h3 id="demo-pipeline-heading-3">Print proof</h3>
<p class="mu-pl-description">Compare a bound proof with the approved layout under the studio lights.</p>
<dl class="mu-pl-owner"><dt>Owner</dt><dd>Print room</dd></dl>
</div>
<div class="mu-pl-work">
<h4>Steps<span>2</span></h4>
<ol class="mu-pl-steps" aria-label="Print proof steps">
<li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg><div><strong>Pull a bound proof</strong></div><small>Queued</small></li><li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg><div><strong>Check folds and image density</strong></div><small>Queued</small></li>
</ol>
</div>
</section><section id="demo-pipeline-detail-4" class="mu-pl-panel" data-stage-panel aria-labelledby="demo-pipeline-heading-4">
<div class="mu-pl-summary">
<span class="mu-pl-state"><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg>Queued</span>
<h3 id="demo-pipeline-heading-4">Release</h3>
<p class="mu-pl-description">Send the issue to subscribers and place copies on the exhibition reading table.</p>
<dl class="mu-pl-owner"><dt>Owner</dt><dd>Distribution team</dd></dl>
</div>
<div class="mu-pl-work">
<h4>Steps<span>2</span></h4>
<ol class="mu-pl-steps" aria-label="Release steps">
<li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg><div><strong>Dispatch subscriber copies</strong></div><small>Queued</small></li><li><svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6" stroke-dasharray="1.7 2.6"/></svg><div><strong>Stock the reading table</strong></div><small>Queued</small></li>
</ol>
</div>
</section>
</div>
</section>Go template
{{define "pipeline-mark"}}<svg class="mu-pl-mark" viewBox="0 0 20 20" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7.6"{{if eq . "Queued"}} stroke-dasharray="1.7 2.6"{{end}}/>{{if eq . "Completed"}}<path d="m6.5 10.2 2.3 2.3 4.7-5"/>{{else if eq . "In progress"}}<path d="M10 6a4 4 0 0 1 0 8Z" fill="currentColor" stroke="none"/>{{else if eq . "Blocked"}}<path d="M8.4 7.4v5.2m3.2-5.2v5.2"/>{{else if eq . "Failed"}}<path d="m7.7 7.7 4.6 4.6m0-4.6-4.6 4.6"/>{{else if eq . "Skipped"}}<path d="m7 7.5 4 2.5-4 2.5z" fill="currentColor" stroke="none"/><path d="M13 7.6v4.8"/>{{end}}</svg>{{end}}
<section id="{{.ID}}" data-mono="pipeline" aria-labelledby="{{.ID}}-title">
<header class="mu-pl-mast">
<div>{{with .Subtitle}}<p class="mu-pl-kicker">{{.}}</p>{{end}}<h2 id="{{.ID}}-title">{{or .Title "Pipeline"}}</h2></div>
{{with .Context}}<p class="mu-pl-context">{{.}}</p>{{end}}
</header>
{{if .Stages}}
<div class="mu-pl-flow">
<div class="mu-pl-stages" data-stage-list aria-label="Pipeline stages">
{{range $index, $stage := .Stages}}<a class="mu-pl-stage" id="{{$.ID}}-stage-{{$index}}" data-stage data-status="{{or .Status "Queued"}}"{{if eq .Status "In progress"}} aria-current="step"{{end}} href="#{{$.ID}}-detail-{{$index}}">
<span class="mu-pl-stage-top">{{template "pipeline-mark" (or .Status "Queued")}}<span class="mu-pl-wire" aria-hidden="true"></span></span>
<strong>{{or .Title "Untitled stage"}}</strong><small>{{or .Status "Queued"}}</small>
</a>{{end}}
</div>
{{range $index, $stage := .Stages}}<section id="{{$.ID}}-detail-{{$index}}" class="mu-pl-panel" data-stage-panel aria-labelledby="{{$.ID}}-heading-{{$index}}">
<div class="mu-pl-summary">
<span class="mu-pl-state">{{template "pipeline-mark" (or .Status "Queued")}}{{or .Status "Queued"}}</span>
<h3 id="{{$.ID}}-heading-{{$index}}">{{or .Title "Untitled stage"}}</h3>
{{with .Description}}<p class="mu-pl-description">{{.}}</p>{{end}}
{{with .Owner}}<dl class="mu-pl-owner"><dt>Owner</dt><dd>{{.}}</dd></dl>{{end}}
{{with .URL}}<a class="mu-pl-link" href="{{.}}">{{or $stage.LinkLabel "Stage details"}}<svg viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8h9m-4-4 4 4-4 4"/></svg></a>{{end}}
</div>
<div class="mu-pl-work">
<h4>Steps{{with .Steps}}<span>{{len .}}</span>{{end}}</h4>
{{if .Steps}}<ol class="mu-pl-steps" aria-label="{{or .Title "Stage"}} steps">
{{range .Steps}}<li>{{template "pipeline-mark" (or .Status "Queued")}}<div><strong>{{or .Title "Untitled step"}}</strong>{{with .Note}}<p>{{.}}</p>{{end}}</div><small>{{or .Status "Queued"}}</small></li>{{end}}
</ol>{{else}}<p class="mu-pl-empty">No steps assigned.</p>{{end}}
</div>
</section>{{end}}
</div>
{{else}}<p class="mu-pl-empty-board">No stages defined.</p>{{end}}
</section>Component CSS
[data-mono="pipeline"] {
--pl-ink: #171717; --pl-muted: #595959; --pl-line: #cfcfcf; --pl-paper: #f7f7f7;
--pl-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
width: 100%; min-width: 0; container-type: inline-size; background: var(--pl-paper); color: var(--pl-ink);
padding-bottom: 1px;
}
.mu-pl-mast, .mu-pl-flow, .mu-pl-empty-board { margin-inline: clamp(1rem, 3.4cqi, 3rem); }
.mu-pl-mast { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: clamp(1.4rem,2.2cqi,2.35rem) clamp(1.2rem,2cqi,1.8rem); }
.mu-pl-kicker { display: flex; align-items: center; gap: .55rem; margin: 0 0 .45rem; font: 600 .66rem/1.35 var(--pl-mono); text-transform: uppercase; letter-spacing: .085em; }
.mu-pl-kicker::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.mu-pl-mast h2 { margin: 0; font: 500 clamp(2.55rem,5.6cqi,4.6rem)/1 Georgia,"Times New Roman",serif; letter-spacing: -.065em; overflow-wrap: anywhere; }
.mu-pl-context { color: var(--pl-muted); font: .77rem/1.4 var(--pl-mono); }
.mu-pl-flow { min-width: 0; margin-bottom: clamp(1.25rem,3cqi,2.6rem); }
.mu-pl-stages { display: flex; gap: .35rem; margin-bottom: .75rem; overflow-x: auto; padding: .25rem; border: 1px solid var(--pl-line); border-radius: .8rem; background: #eee; scrollbar-width: thin; }
.mu-pl-stage { display: flex; flex: 1 0 7.75rem; min-width: 0; flex-direction: column; gap: .24rem; padding: .85rem .85rem .75rem; border-radius: .55rem; color: var(--pl-ink); text-decoration: none; }
.mu-pl-stage small { color: var(--pl-muted); font: .65rem/1.3 var(--pl-mono); }
.mu-pl-stage strong { font: 620 clamp(.96rem,1.55cqi,1.35rem)/1.18 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.mu-pl-stage:hover { background: #ddd; }
.mu-pl-stage[aria-selected="true"] { background: var(--pl-ink); color: white; }
.mu-pl-stage[aria-selected="true"] small { color: #d1d1d1; }
.mu-pl-stage:focus-visible { outline-offset: -3px; }
.mu-pl-stage-top { display: flex; align-items: center; gap: .65rem; margin-bottom: .45rem; }
.mu-pl-mark { display: inline-block; width: 1.12rem; height: 1.12rem; flex: none; }
.mu-pl-wire { position: relative; flex: 1; height: 1px; background: currentColor; opacity: .5; }
.mu-pl-wire::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.mu-pl-stage:dir(rtl) .mu-pl-wire { transform: scaleX(-1); }
.mu-pl-stage:last-child .mu-pl-wire { display: none; }
.mu-pl-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0,1.15fr); border: 1px solid var(--pl-line); border-radius: .9rem; background: #fff; scroll-margin-top: 5rem; }
.mu-pl-panel + .mu-pl-panel { margin-top: .65rem; }
.mu-pl-panel:focus-visible { outline-offset: -3px; }
.mu-pl-summary, .mu-pl-work { min-width: 0; padding: clamp(1.1rem,2.6cqi,2.25rem); }
.mu-pl-summary { border-inline-end: 1px solid var(--pl-line); }
.mu-pl-state { display: inline-flex; align-items: center; gap: .28rem; color: #3e3e3e; font: .68rem/1.2 var(--pl-mono); }
.mu-pl-state .mu-pl-mark { height: .9rem; width: .9rem; }
.mu-pl-summary h3 { margin: .78rem 0 0; font: 520 clamp(1.8rem,3.45cqi,3.1rem)/1.03 Georgia,"Times New Roman",serif; letter-spacing: -.05em; overflow-wrap: anywhere; }
.mu-pl-description { margin-top: .72rem; max-width: 48ch; color: #474747; font-size: .88rem; line-height: 1.55; overflow-wrap: anywhere; }
.mu-pl-owner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .55rem; margin-top: 1.1rem; }
.mu-pl-owner dt { color: var(--pl-muted); font: .68rem/1.3 var(--pl-mono); }
.mu-pl-owner dd { font-size: .81rem; font-weight: 610; overflow-wrap: anywhere; }
.mu-pl-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .65rem; font-size: .77rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; color: inherit; }
.mu-pl-work h4 { display: flex; align-items: baseline; gap: .5rem; font: 620 1.07rem/1.2 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.02em; }
.mu-pl-work h4 span { color: var(--pl-muted); font: .69rem/1.3 var(--pl-mono); }
.mu-pl-steps { padding: 0; margin: .95rem 0 0; list-style: none; }
.mu-pl-steps li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: baseline; gap: .35rem .6rem; padding-block: .76rem; border-top: 1px solid var(--pl-line); }
.mu-pl-steps li:last-child { padding-bottom: 0; }
.mu-pl-steps .mu-pl-mark { align-self: start; width: 1rem; height: 1rem; margin-top: .14rem; }
.mu-pl-steps strong { display: block; font-size: .9rem; line-height: 1.3; font-weight: 620; overflow-wrap: anywhere; }
.mu-pl-steps p { margin-top: .25rem; font-size: .79rem; line-height: 1.45; color: var(--pl-muted); overflow-wrap: anywhere; }
.mu-pl-steps small { font: .64rem/1.4 var(--pl-mono); color: var(--pl-muted); max-width: 12ch; overflow-wrap: anywhere; }
.mu-pl-empty, .mu-pl-empty-board { margin-block: .85rem 1.3rem; color: var(--pl-muted); font-size: .85rem; }
@container (max-width: 42rem) {
.mu-pl-stage { flex-basis: 7.2rem; padding: .72rem; }
.mu-pl-panel { grid-template-columns: minmax(0,1fr); }
.mu-pl-summary { border-inline-end: 0; border-bottom: 1px solid var(--pl-line); }
.mu-pl-steps { margin-top: .65rem; }
}
@media (forced-colors: active) {
.mu-pl-stage[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
.mu-pl-wire { background: CanvasText; }
}JavaScript module
export function mount(root) {
const list = root.querySelector('[data-stage-list]');
if (!list) return;
const tabs = [...list.querySelectorAll('[data-stage]')];
const panels = [...root.querySelectorAll('[data-stage-panel]')];
if (!tabs.length || panels.length !== tabs.length) return;
list.setAttribute('role', 'tablist');
function select(index) {
for (let i = 0; i < tabs.length; i++) {
const selected = i === index;
tabs[i].tabIndex = selected ? 0 : -1;
tabs[i].setAttribute('aria-selected', String(selected));
panels[i].hidden = !selected;
}
// Reveal the selected stage in its own strip without moving the page.
const strip = list.getBoundingClientRect();
const stage = tabs[index].getBoundingClientRect();
if (stage.left < strip.left) list.scrollLeft += stage.left - strip.left;
else if (stage.right > strip.right) list.scrollLeft += stage.right - strip.right;
}
tabs.forEach((tab, i) => {
const panel = panels[i];
tab.setAttribute('role', 'tab');
tab.setAttribute('aria-controls', panel.id);
panel.setAttribute('role', 'tabpanel');
panel.setAttribute('aria-labelledby', tab.id);
panel.tabIndex = 0;
tab.addEventListener('click', event => {
if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;
event.preventDefault();
select(i);
});
tab.addEventListener('keydown', event => {
let target;
if (event.key === 'Home') target = 0;
else if (event.key === 'End') target = tabs.length - 1;
else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
const rtl = getComputedStyle(list).direction === 'rtl';
const forward = (event.key === 'ArrowRight') !== rtl;
target = (i + (forward ? 1 : -1) + tabs.length) % tabs.length;
} else if (event.key === ' ') target = i;
else return;
event.preventDefault();
select(target);
tabs[target].focus({preventScroll:true});
});
});
const hash = root.ownerDocument.location?.hash;
const linked = panels.findIndex(panel => hash === '#' + panel.id);
const current = tabs.findIndex(tab => tab.hasAttribute('aria-current'));
select(linked >= 0 ? linked : Math.max(0, current));
}Use the HTML in a static site
Copy the rendered HTML above. Download these assets into the same folder as your page, then add the tags below to its head.
Shared CSS Component CSS Ready-to-use module
<link rel="stylesheet" href="./base.css">
<link rel="stylesheet" href="./pipeline.css">
<script type="module" src="./pipeline.js"></script>Copy into your project
Run this command from the Mono checkout. Set -out to the component directory in your application.
go run ./cmd/mono-ui add -out ./components pipelineExample properties (JSON)
{
"Context": "Field Notes · Issue 04",
"Stages": [
{
"Description": "Collect the studio notes and decide which experiments belong in the spring issue.",
"Owner": "Programme team",
"Status": "Completed",
"Steps": [
{
"Status": "Completed",
"Title": "Gather field notes"
},
{
"Note": "The issue follows four objects from first prototype to exhibition.",
"Status": "Completed",
"Title": "Approve the brief"
}
],
"Title": "Intake"
},
{
"Description": "Turn the makers’ observations into a set of short essays with annotated photographs.",
"Owner": "Leah Chen",
"Status": "Completed",
"Steps": [
{
"Status": "Completed",
"Title": "Draft the four essays"
},
{
"Status": "Completed",
"Title": "Match photographs to captions"
}
],
"Title": "Draft"
},
{
"Description": "Check the claims and captions with the makers before the pages go to the printer.",
"LinkLabel": "View the production plan",
"Owner": "Iris Tan",
"Status": "In progress",
"Steps": [
{
"Note": "The editor has marked the first set of proofs.",
"Status": "Completed",
"Title": "Read the page proofs"
},
{
"Note": "Two makers are checking dimensions and material credits.",
"Status": "In progress",
"Title": "Confirm the object captions"
},
{
"Status": "Queued",
"Title": "Sign off the final copy"
}
],
"Title": "Editorial review",
"URL": "../components/gantt-chart.html"
},
{
"Description": "Compare a bound proof with the approved layout under the studio lights.",
"Owner": "Print room",
"Status": "Queued",
"Steps": [
{
"Status": "Queued",
"Title": "Pull a bound proof"
},
{
"Status": "Queued",
"Title": "Check folds and image density"
}
],
"Title": "Print proof"
},
{
"Description": "Send the issue to subscribers and place copies on the exhibition reading table.",
"Owner": "Distribution team",
"Status": "Queued",
"Steps": [
{
"Status": "Queued",
"Title": "Dispatch subscriber copies"
},
{
"Status": "Queued",
"Title": "Stock the reading table"
}
],
"Title": "Release"
}
],
"Subtitle": "Form \u0026 Function",
"Title": "Publication pipeline"
}