Templates / Marketing Marketing template Article A blog post: a table of contents that follows the reader, reading progress, like, copy link, a checked subscribe form and related posts.
Live preview Desktops have one layout. On phones and tablets the same markup can also lay itself out like a native app: preview on a phone or a tablet .
Code Copy it into a page of your app. Load the CSS and register the components once (see framework setup ); links point at routes like /orders that you replace with your own.
This template works: the page renders from data.ts (sample rows, replace them with your API) and behavior.ts makes its controls work. The behaviour file is the same in every framework.
HTML React Vue Svelte Solid Angular
article.html prismora/article/data.ts prismora/article/behavior.ts
<script type="module">
import '@prismora/css';
import '@prismora/elements/avatar';
import '@prismora/elements/breadcrumb';
import '@prismora/elements/button';
import '@prismora/elements/card';
import '@prismora/elements/copy-button';
import '@prismora/elements/drawer';
import '@prismora/elements/icon';
import '@prismora/elements/input';
import '@prismora/elements/menu';
import '@prismora/elements/progress';
import '@prismora/elements/result';
import '@prismora/elements/theme-settings';
import '@prismora/elements/theme-switch';
import '@prismora/elements/toggle-group';
import { registerIcons } from '@prismora/elements/icon';
import { gauge, heart, key, mail, menu, search, settings, trendingDown, zap } from '@prismora/icons';
import { data } from './prismora/article/data';
import { setup } from './prismora/article/behavior';
registerIcons([gauge, heart, key, mail, menu, search, settings, trendingDown, zap]);
setup(document.body, data);
</script>
<div class="pm-stack pm-gap-0">
<header class="pm-site-header">
<a href="/" class="pm-brand">
<pm-icon name="zap"></pm-icon>
<span class="pm-brand-name">Lumen</span>
</a>
<nav class="pm-site-nav" aria-label="Main">
<a href="/">Product</a>
<a href="/pricing">Pricing</a>
<a href="/customers">Customers</a>
<a href="/blog" aria-current="page">Blog</a>
<a href="/help">Help</a>
</nav>
<div class="pm-site-actions">
<pm-theme-switch size="sm" class="pm-site-wide" variant="toggle"></pm-theme-switch>
<pm-button size="sm" variant="ghost" tone="neutral" icon icon-start="settings" label="Display settings" commandfor="display-settings" command="--open"></pm-button>
<pm-button class="pm-site-wide" variant="ghost" tone="neutral" size="sm" href="/sign-in">Sign in</pm-button>
<pm-button size="sm" href="/sign-up">Start free</pm-button>
<pm-button class="pm-site-menu" variant="ghost" tone="neutral" size="sm" icon icon-start="menu" label="Menu" popovertarget="site-menu" aria-haspopup="menu"></pm-button>
<pm-menu id="site-menu">
<a role="menuitem" href="/">Product</a>
<a role="menuitem" href="/pricing">Pricing</a>
<a role="menuitem" href="/customers">Customers</a>
<a role="menuitem" href="/blog">Blog</a>
<a role="menuitem" href="/help">Help</a>
<hr>
<a role="menuitem" href="/sign-in">Sign in</a>
</pm-menu>
</div>
</header>
<pm-drawer id="display-settings" heading="Display settings" description="Saved in this browser." side="end">
<pm-theme-settings></pm-theme-settings>
</pm-drawer>
<main class="pm-site-section" data-space="sm">
<div class="pm-split" data-side="end" style="--pm-side: 17rem; --pm-gap: var(--pm-space-10)">
<article class="pm-stack pm-gap-6" data-ref="article">
<header class="pm-stack pm-gap-4">
<pm-breadcrumb label="Breadcrumb">
<pm-breadcrumb-item href="/blog">Blog</pm-breadcrumb-item>
<pm-breadcrumb-item href="/blog/engineering">Engineering</pm-breadcrumb-item>
<pm-breadcrumb-item current>How we made the order list ten times faster</pm-breadcrumb-item>
</pm-breadcrumb>
<h1 class="pm-text-4xl pm-heading">How we made the order list ten times faster</h1>
<p class="pm-lead">The list took 480 ms to open in our largest workspaces. It now takes 35. Here is what we measured, what we changed, and what we would do differently.</p>
<div class="pm-cluster">
<pm-avatar name="Ada Lovelace" size="md"></pm-avatar>
<div class="pm-stack pm-gap-0 pm-grow">
<strong>Ada Lovelace</strong>
<span class="pm-text-sm pm-muted">Lead engineer · 2 December 2026 · 6 min read</span>
</div>
<pm-toggle size="sm" data-ref="like">
<pm-icon name="heart"></pm-icon>
<span class="pm-visually-hidden">Like this post:</span>
<span data-ref="likes">248</span>
<span class="pm-visually-hidden">likes</span>
</pm-toggle>
<pm-copy-button size="sm" variant="outline" label="Copy the link to this post" show-label data-ref="share"></pm-copy-button>
</div>
</header>
<div class="pm-art" data-tone="accent" role="img" aria-label="A chart of the list time falling from 480 to 35 milliseconds">
<pm-icon name="trending-down"></pm-icon>
</div>
<div class="pm-prose" data-ref="body">
<section aria-labelledby="measure">
<h2 id="measure">Measure before you change anything</h2>
<p>Our first guess was the network. It was wrong. A trace of one slow request showed 430 of the 480 ms inside a single database query: the one that counts orders for each status tab.</p>
<p>We added timing to every step of the request and left it on in production for a week. The picture did not change: the count was the problem, and it grew with the size of the workspace.</p>
</section>
<section aria-labelledby="index">
<h2 id="index">One index did most of the work</h2>
<p>The count scanned every order of the workspace because the status was not part of any index. A combined index on workspace, status and date let the database answer from the index alone.</p>
<p>That one change took the query from 430 ms to 22. It cost 3% more disk space and made writes about 1% slower, which we could not measure in practice.</p>
</section>
<section aria-labelledby="paging">
<h2 id="paging">Stop counting what nobody reads</h2>
<p>The list showed “1–25 of 184,302”. Nobody needs the exact total of a list that long, and computing it was the second most expensive step.</p>
<p>We now count up to 10,000 and show “10,000+” beyond that. The pager offers next and previous instead of a jump to the last page, which nobody used: we checked.</p>
</section>
<section aria-labelledby="cache">
<h2 id="cache">Cache the parts that do not change</h2>
<p>Status counts change only when an order changes. We keep them per workspace for 30 seconds and drop them on any write to that workspace.</p>
<p>The cache is small, easy to reason about and safe to lose. When in doubt we would rather serve a slow answer than a wrong one.</p>
</section>
<section aria-labelledby="lessons">
<h2 id="lessons">What we would do differently</h2>
<p>We would have added the timing first, a year ago. Every guess we made without it was wrong, and each one cost a day.</p>
<p>We would also set a budget: a page that takes longer than 100 ms on the server now fails a test. The list has room to grow before anyone notices.</p>
</section>
</div>
<pm-card surface="gradient">
<form class="pm-stack" novalidate data-ref="form">
<div class="pm-stack pm-gap-1">
<h2 class="pm-section-title">More like this, once a month</h2>
<p class="pm-muted">Engineering notes from the team. No marketing.</p>
</div>
<div class="pm-cluster pm-items-start">
<pm-input class="pm-grow" label="Email" hide-label type="email" name="email" autocomplete="email" placeholder="[email protected] " icon-start="mail" required data-ref="email"></pm-input>
<pm-button type="submit">Subscribe</pm-button>
</div>
</form>
<pm-result status="success" heading="You are subscribed" heading-level="2" data-ref="done" hidden></pm-result>
</pm-card>
</article>
<aside class="pm-stack pm-sticky-side" aria-label="About this post" style="--pm-sticky-top: 5rem">
<pm-progress label="Read so far" value="0" max="100" size="sm" show-value data-ref="progress"></pm-progress>
<span class="pm-eyebrow">On this page</span>
<nav class="pm-toc" aria-label="On this page" data-ref="toc">
<a href="#measure">Measure before you change anything</a>
<a href="#index">One index did most of the work</a>
<a href="#paging">Stop counting what nobody reads</a>
<a href="#cache">Cache the parts that do not change</a>
<a href="#lessons">What we would do differently</a>
</nav>
</aside>
</div>
<section class="pm-stack" aria-labelledby="related-title">
<h2 id="related-title" class="pm-section-title">Keep reading</h2>
<div class="pm-grid" data-min="lg">
<pm-card size="sm">
<div class="pm-feature">
<span class="pm-feature-icon" data-tone="accent">
<pm-icon name="gauge"></pm-icon>
</span>
<h3>
<a href="/blog">A budget for every page</a>
</h3>
<p>How a failing test keeps our pages fast.</p>
<span class="pm-text-xs pm-muted">Engineering · 4 min read</span>
</div>
</pm-card>
<pm-card size="sm">
<div class="pm-feature">
<span class="pm-feature-icon" data-tone="info">
<pm-icon name="search"></pm-icon>
</span>
<h3>
<a href="/blog">Search that forgives typing mistakes</a>
</h3>
<p>What we learned moving search to the server.</p>
<span class="pm-text-xs pm-muted">Product · 7 min read</span>
</div>
</pm-card>
<pm-card size="sm">
<div class="pm-feature">
<span class="pm-feature-icon" data-tone="success">
<pm-icon name="key"></pm-icon>
</span>
<h3>
<a href="/blog">Passkeys, one month in</a>
</h3>
<p>Who uses them, and what surprised us.</p>
<span class="pm-text-xs pm-muted">Security · 5 min read</span>
</div>
</pm-card>
</div>
</section>
</main>
<footer class="pm-site-footer">
<div class="pm-site-footer-cols">
<div>
<a href="/" class="pm-brand">
<pm-icon name="zap"></pm-icon>
<span class="pm-brand-name">Lumen</span>
</a>
<p class="pm-muted">Roadmaps, tasks and metrics in one place, for teams that ship every week.</p>
</div>
<nav aria-label="Product">
<h3>Product</h3>
<a href="/">Overview</a>
<a href="/pricing">Pricing</a>
<a href="/changelog">Changelog</a>
<a href="/integrations">Integrations</a>
</nav>
<nav aria-label="Company">
<h3>Company</h3>
<a href="/about">About</a>
<a href="/customers">Customers</a>
<a href="/blog">Blog</a>
<a href="/careers">Careers</a>
</nav>
<nav aria-label="Support">
<h3>Support</h3>
<a href="/help">Help centre</a>
<a href="/contact">Contact</a>
<a href="/status">Status</a>
</nav>
</div>
<div class="pm-site-footer-bottom">
<span>© 2026 Lumen Labs</span>
<nav aria-label="Legal" class="pm-cluster pm-gap-4">
<a href="/privacy">Privacy</a>
<a href="/terms">Terms</a>
<a href="/security">Security</a>
</nav>
</div>
</footer>
</div> With the CLI npx @prismora/cli add article --write Writes the page into your routes folder and both files into prismora/article/.
With an AI agent (MCP) scaffold_page({ pattern: "article", framework: "html" }) Components in this template