documents
compose reports and briefs from the same sections in plain html or react.
bunx --bun shadcn@latest add @mk/docbunx --bun shadcn@latest add @mk/doc-reactone brief, two ways
plain html
react
for react, link styles/superthread-plain.css then styles/doc.css in the document route's head. run themeScript from lib/theme before first paint and import the sections from ui/doc-react.
openers
hero
html
<!-- @mk/doc 2.15.1 -->
<header class="hero">
<div class="island dark">
<div class="top">
<a class="brand" href="#">maurice kleine<span>sections</span></a>
<nav aria-label="groups">
<ul>
<li><a href="#openers">openers</a></li>
<li><a href="#lines">lines</a></li>
<li><a href="#blocks">blocks</a></li>
<li><a href="#endings">endings</a></li>
<li><button class="mode" type="button" data-doc-mode aria-label="switch to dark mode">dark</button></li>
</ul>
</nav>
</div>
<div class="hero-in">
<div>
<h1 class="hero-title">the parts of a page.</h1>
<p class="hero-lede">
every section the kit's templates are made of, live in light and dark, each with its markup. copy the markup,
keep the classes, change the words.
</p>
<p class="meta">
superthread<span>·</span>@mk/doc<span>·</span><span class="chip">draft</span><span>·</span>20 nov 2026
</p>
</div>
<nav class="contents" aria-label="contents">
<ol>
<li>
<a href="#openers"
><span class="ix-ref">[o]</span><span class="ix-lead"></span><span class="ix-name">openers</span
><span class="ix-count">03</span></a
>
</li>
<li>
<a href="#lines"
><span class="ix-ref">[l]</span><span class="ix-lead"></span><span class="ix-name">lines</span
><span class="ix-count">08</span></a
>
</li>
<li>
<a href="#blocks"
><span class="ix-ref">[b]</span><span class="ix-lead"></span><span class="ix-name">blocks</span
><span class="ix-count">08</span></a
>
</li>
<li>
<a href="#endings"
><span class="ix-ref">[e]</span><span class="ix-lead"></span><span class="ix-name">endings</span
><span class="ix-count">03</span></a
>
</li>
</ol>
</nav>
</div>
</div>
<div
class="hero-weave"
data-mk="weave"
data-weave="run=down fray=arch apex=.24 sides=.45 wobble=2 period=60 ramp=fade thread=2.4 knot=.36 knotr=19.5 live seed=3"
aria-hidden="true"
></div>
</header>
react
<DocHero
brand={{ href: "#", label: "maurice kleine", edition: "sections" }}
navLabel="groups"
links={[
{ href: "#openers", label: "openers" },
{ href: "#lines", label: "lines" },
{ href: "#blocks", label: "blocks" },
{ href: "#endings", label: "endings" },
]}
title="the parts of a page."
lede="every section the kit's templates are made of, live in light and dark, each with its markup. copy the markup, keep the classes, change the words."
meta={["superthread", "@mk/doc", { chip: "draft" }, "20 nov 2026"]}
contents={[
{ href: "#openers", reference: "[o]", label: "openers", count: "03" },
{ href: "#lines", reference: "[l]", label: "lines", count: "08" },
{ href: "#blocks", reference: "[b]", label: "blocks", count: "08" },
{ href: "#endings", reference: "[e]", label: "endings", count: "03" },
]}
/>slim head
html
<!-- @mk/doc 2.15.1 -->
<header class="slim">
<div class="island dark">
<div class="top">
<a class="brand" href="#">maurice kleine<span>brief</span></a>
<nav aria-label="sections">
<ul>
<li><a href="#">needs you</a></li>
<li><a href="#">today</a></li>
</ul>
</nav>
</div>
<div class="slim-in">
<h1 class="slim-title">friday, 20 november</h1>
<p class="meta">brief<span>·</span>07:00</p>
</div>
</div>
<div
class="slim-weave"
data-mk="weave"
data-weave="run=down fray=.2 waves=3 amp=3 wobble=1 period=40 ramp=fade thread=3 seed=5"
aria-hidden="true"
></div>
</header>
react
<DocSlimHead
brand={{ href: "#", label: "maurice kleine", edition: "brief" }}
navLabel="sections"
links={[
{ href: "#", label: "needs you" },
{ href: "#", label: "today" },
]}
title="friday, 20 november"
meta={["brief", "07:00"]}
/>band
html
<!-- @mk/doc 2.15.1 -->
<div class="band">
<div class="band-solid island dark">
<h4 class="band-word">findings</h4>
<p class="band-caption"><span>what holds</span><span>03</span></p>
</div>
<div
class="band-weave"
data-mk="weave"
data-weave="run=right phone=down fray=.06 bow=8 wobble=1.5 period=30 ramp=held thread=6 seed=11"
aria-hidden="true"
></div>
</div>
react
<DocBand title="findings" caption="what holds" reference="03" />lines
meta line
html
<!-- @mk/doc 2.15.1 -->
<p class="meta">project<span>·</span>report<span>·</span><span class="chip">draft</span><span>·</span>20 nov 2026</p>
react
<DocMetaLine parts={["project", "report", { chip: "draft" }, "20 nov 2026"]} />contents
html
<!-- @mk/doc 2.15.1 -->
<nav class="contents" aria-label="contents">
<ol>
<li>
<a href="#"
><span class="ix-ref">[f]</span><span class="ix-lead"></span><span class="ix-name">findings</span
><span class="ix-count">03</span></a
>
</li>
<li>
<a href="#"
><span class="ix-ref">[p]</span><span class="ix-lead"></span><span class="ix-name">plan</span
><span class="ix-count">04</span></a
>
</li>
</ol>
</nav>
react
<DocContents
entries={[
{ href: "#", reference: "[f]", label: "findings", count: "03" },
{ href: "#", reference: "[p]", label: "plan", count: "04" },
]}
/>lede
html
<!-- @mk/doc 2.15.1 -->
<p class="lede">a lede says what the section holds and why it matters, before the first claim. it reads in a breath.</p>
react
<DocLede>
a lede says what the section holds and why it matters, before the first claim. it reads in a breath.
</DocLede>section head
html
<!-- @mk/doc 2.15.1 -->
<div class="sec">
<h4 class="sec-head">the work</h4>
<p class="sec-line">one muted line under the head.</p>
</div>
react
<DocSectionHead title="the work" line="one muted line under the head." />steps
html
<!-- @mk/doc 2.15.1 -->
<ol class="rules">
<li>write the spec, so the next change has something to agree with.</li>
<li>build the part once, where every surface can install it.</li>
</ol>
react
<DocSteps
steps={[
"write the spec, so the next change has something to agree with.",
"build the part once, where every surface can install it.",
]}
/>rows
html
<!-- @mk/doc 2.15.1 -->
<ol class="rows">
<li>
<span class="row-title">publish the brief</span><span class="row-why">one source still needs a link.</span
><span class="row-word open">failed</span>
</li>
<li>
<span class="row-title">back up to the second disk</span
><span class="row-why">the 02:10 run failed and the 02:40 retry closed it.</span><span class="row-word">done</span>
</li>
</ol>
react
<DocRows
rows={[
{ title: "publish the brief", reason: "one source still needs a link.", status: "failed", open: true },
{
title: "back up to the second disk",
reason: "the 02:10 run failed and the 02:40 retry closed it.",
status: "done",
},
]}
/>timeline
html
<!-- @mk/doc 2.15.1 -->
<ol class="timeline">
<li>
<time datetime="2026-11-20">20 nov</time><span class="dot"></span>
<p>the first draft lands.</p>
</li>
<li>
<time datetime="2026-11-30">30 nov</time><span class="dot open"></span>
<p>the report goes out.</p>
</li>
</ol>
react
<DocTimeline
events={[
{ dateTime: "2026-11-20", date: "20 nov", text: "the first draft lands." },
{ dateTime: "2026-11-30", date: "30 nov", text: "the report goes out.", open: true },
]}
/>sources
html
<!-- @mk/doc 2.15.1 -->
<ol class="sources">
<li>
<span><a href="https://superthread.mauricekleine.com/">superthread.mauricekleine.com</a> · the design system</span>
</li>
<li><span>packages/superthread/DESIGN.md · the values and rules</span></li>
</ol>
react
<DocSources
sources={[
<>
<a href="https://superthread.mauricekleine.com/">superthread.mauricekleine.com</a> · the design system
</>,
"packages/superthread/DESIGN.md · the values and rules",
]}
/>blocks
claim
html
<!-- @mk/doc 2.15.1 -->
<ol class="claims">
<li class="claim">
<div class="claim-grid">
<p class="claim-ref"><span>01</span><span class="chip">high</span></p>
<h4 class="claim-head">a claim is one sentence you could defend.</h4>
<div class="claim-body">
<p>the reason beside it says why it holds, in two or three sentences.</p>
<p class="claim-src">where it comes from · path/to/file.ts:42</p>
</div>
</div>
</li>
</ol>
react
<DocClaims
claims={[
{
reference: "01",
confidence: "high",
title: "a claim is one sentence you could defend.",
reason: ["the reason beside it says why it holds, in two or three sentences."],
source: "where it comes from · path/to/file.ts:42",
},
]}
/>stat row
html
<!-- @mk/doc 2.15.1 -->
<div class="stats">
<div class="stat">
<p class="stat-n">3</p>
<p class="stat-label">steps</p>
<p class="stat-note">each one ships on its own</p>
</div>
<div class="stat">
<p class="stat-n">2</p>
<p class="stat-label">repos</p>
<p class="stat-note">the site and the cli</p>
</div>
<div class="stat">
<p class="stat-n">0</p>
<p class="stat-label">new tokens</p>
<p class="stat-note">the values already hold</p>
</div>
</div>
react
<DocStatRow
stats={[
{ value: 3, label: "steps", note: "each one ships on its own" },
{ value: 2, label: "repos", note: "the site and the cli" },
{ value: 0, label: "new tokens", note: "the values already hold" },
]}
/>table
html
<!-- @mk/doc 2.15.1 -->
<div class="tbl-wrap">
<table class="tbl">
<thead>
<tr>
<th>step</th>
<th>what</th>
<th>where</th>
<th class="num">days</th>
</tr>
</thead>
<tbody>
<tr>
<td>spec</td>
<td>the rules, written as they are</td>
<td class="muted">the design doc</td>
<td class="num">2</td>
</tr>
<tr>
<td>part</td>
<td>one item every surface installs</td>
<td class="muted">the registry</td>
<td class="num">3</td>
</tr>
</tbody>
</table>
</div>
react
<DocTable
columns={[
{ label: "step" },
{ label: "what" },
{ label: "where", kind: "muted" },
{ label: "days", kind: "number" },
]}
rows={[
["spec", "the rules, written as they are", "the design doc", 2],
["part", "one item every surface installs", "the registry", 3],
]}
/>figure
html
<!-- @mk/doc 2.15.1 -->
<figure class="fig">
<div class="chart">
<svg viewBox="0 0 800 200" role="img" aria-label="open items per week: 10, 7, 5, and 3 planned">
<rect class="bar" x="20" y="0" width="140" height="200" />
<rect class="bar" x="220" y="60" width="140" height="140" />
<rect class="bar" x="420" y="100" width="140" height="100" />
<rect class="bar-open" x="621" y="141" width="138" height="58" />
</svg>
<p class="chart-axis" aria-hidden="true">
<span>week 1</span><span>week 2</span><span>week 3</span><span>week 4</span>
</p>
</div>
<figcaption>fig. 1 · open items per week</figcaption>
</figure>
react
<DocFigure
caption="fig. 1 · open items per week"
chart={{
viewBox: "0 0 800 200",
label: "open items per week: 10, 7, 5, and 3 planned",
bars: [
{ x: 20, y: 0, width: 140, height: 200 },
{ x: 220, y: 60, width: 140, height: 140 },
{ x: 420, y: 100, width: 140, height: 100 },
{ x: 621, y: 141, width: 138, height: 58, open: true },
],
axis: ["week 1", "week 2", "week 3", "week 4"],
}}
/>before and after
html
<!-- @mk/doc 2.15.1 -->
<div class="pair">
<figure class="fig">
<p class="pair-label"><b>before</b> · round dots</p>
<div class="swatch dots" role="img" aria-label="a field of round dots"></div>
</figure>
<figure class="fig">
<p class="pair-label"><b>after</b> · square pixels</p>
<div class="swatch pixels" role="img" aria-label="a field of 2 px square pixels in a checker"></div>
</figure>
</div>
react
<DocBeforeAndAfter
before={{ label: "round dots", swatch: { pattern: "dots", label: "a field of round dots" } }}
after={{
label: "square pixels",
swatch: { pattern: "pixels", label: "a field of 2 px square pixels in a checker" },
}}
/>notice
html
<!-- @mk/doc 2.15.1 -->
<div class="notice" role="note">
<span class="notice-glyph" aria-hidden="true">i</span><span class="notice-word">heads up</span>
<p>the count includes open items through friday.</p>
</div>
react
<DocNotice label="heads up">the count includes open items through friday.</DocNotice>decisions
html
<!-- @mk/doc 2.15.1 -->
<ol class="decisions">
<li>
<span class="n">01</span> <span class="chip">open</span>
<h4>ship the part before every surface can take it?</h4>
<p><b>yes.</b> the part improves faster with one user than with none.</p>
</li>
<li>
<span class="n">02</span> <span class="chip">decided</span>
<h4>keep both drafts in the contents?</h4>
<p><b>no.</b> the contents link to the version readers can use.</p>
</li>
</ol>
react
<DocDecisions
decisions={[
{
reference: "01",
status: "open",
question: "ship the part before every surface can take it?",
answer: "yes.",
reason: "the part improves faster with one user than with none.",
},
{
reference: "02",
status: "decided",
question: "keep both drafts in the contents?",
answer: "no.",
reason: "the contents link to the version readers can use.",
},
]}
/>transcript
html
<!-- @mk/doc 2.15.1 -->
<dl class="transcript">
<div>
<dt>alex<time datetime="PT4M12S">00:04:12</time></dt>
<dd>the first week gives us a baseline.</dd>
</div>
<div>
<dt>sam<time datetime="PT4M31S">00:04:31</time></dt>
<dd>put that count next to the forecast.</dd>
</div>
</dl>
react
<DocTranscript
entries={[
{ speaker: "alex", dateTime: "PT4M12S", time: "00:04:12", text: "the first week gives us a baseline." },
{ speaker: "sam", dateTime: "PT4M31S", time: "00:04:31", text: "put that count next to the forecast." },
]}
/>endings and controls
closing line
html
<!-- @mk/doc 2.15.1 -->
<p class="closing">that's all for today.</p>
react
<DocClosingLine>that's all for today.</DocClosingLine>footer
html
<!-- @mk/doc 2.15.1 -->
<footer class="foot"><span>superthread · documents</span><span>report · draft · 20 nov 2026</span></footer>
react
<DocFooter credit="superthread · documents" meta="report · draft · 20 nov 2026" />draft strip
html
<!-- @mk/doc 2.15.1 -->
<p class="draft-strip"><b>draft</b> · still being shaped · 20 nov 2026</p>
react
<DocDraftStrip label="draft">still being shaped · 20 nov 2026</DocDraftStrip>chip
html
<!-- @mk/doc 2.15.1 -->
<span class="chip">draft</span>
react
<DocChip>draft</DocChip>mode toggle
html
<!-- @mk/doc 2.15.1 -->
<button class="mode" type="button" data-doc-mode aria-label="switch to dark mode">dark</button>
react
<DocModeToggle />