template
Explore creation
A slate-blue platform map that connects visitors, an edge layer, services and storage with readable labe…
A utilitarian light code-review screen with line gutters, an original diff and switchable files.
<!-- Original layout, SVG/CSS artwork and JavaScript © 2026 XXC Templates. MIT License.
Visual pattern references (original code, names and content; no affiliation):
SourceHut: https://sourcehut.org/
Text-first project tools, fine rules and a small functional palette.
Illustrative sample content and data; no real accounts, payments, reservations or messages. -->
<header><b>diffroom</b><span>review / little-index / change 42</span><strong>OPEN</strong></header>
<main>
<section class="review-title">
<span>PATCH 042</span>
<h1>Make empty queries predictable</h1>
<p>mira wants to merge 2 commits into <code>main</code></p>
</section>
<div class="review-layout">
<aside>
<h2>CHANGED FILES</h2>
<button id="change" data-file="test" aria-pressed="false">▧ tests/query.js <i>+3</i></button
><button data-file="src" aria-pressed="true">▧ src/query.js <i>+2 −1</i></button>
<p>Small patches are easier<br />to understand.</p>
</aside>
<section class="diff">
<div class="diff-head"><b id="filename">src/query.js</b><span>unified diff</span></div>
<div id="lines">
<p><span>12</span><code>export function query(text) {</code></p>
<p class="removed"><span>13</span><code>- return index.search(text);</code></p>
<p class="added"><span>13</span><code>+ if (!text.trim()) return [];</code></p>
<p class="added"><span>14</span><code>+ return index.search(text.trim());</code></p>
<p><span>15</span><code>}</code></p>
</div>
<div class="review-note">
<b>REVIEW NOTE</b>
<p>The empty state now has a clear contract. Add a fixture for whitespace-only input.</p>
</div>
</section>
</div>
<output data-status aria-live="polite"></output>
<footer class="demo-note">Fictional brand · local interface demo · no information is sent</footer>
</main>
* {
box-sizing: border-box;
}
html {
scrollbar-gutter: stable;
}
body {
margin: 0;
font:
14px/1.5 Arial,
Helvetica,
sans-serif;
background: #fff;
color: #202622;
}
h1,
h2,
h3,
p,
figure {
margin: 0;
}
main,
section,
article,
aside,
header,
nav {
min-width: 0;
}
button,
input,
select,
textarea {
font: inherit;
max-width: 100%;
min-width: 0;
}
button,
a,
input,
select,
summary {
touch-action: manipulation;
}
button {
cursor: pointer;
}
a {
color: inherit;
}
img {
display: block;
max-width: 100%;
object-fit: cover;
}
svg {
display: block;
max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
outline: 3px solid #2781da;
outline-offset: 3px;
}
[hidden] {
display: none !important;
}
[data-status] {
display: block;
min-height: 24px;
font-size: 12px;
margin-top: 14px;
}
.demo-note {
font:
9px/1.6 ui-monospace,
monospace;
padding: 16px 0;
opacity: 0.75;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
}
dialog {
max-width: calc(100vw - 32px);
width: 480px;
border: 1px solid #666;
padding: 25px;
background: #fff;
color: #202622;
}
dialog::backdrop {
background: #0008;
}
dialog h2 {
margin-bottom: 15px;
}
dialog p {
margin: 12px 0;
}
dialog button {
margin-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
*,
*:before,
*:after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}
body {
background: #f5f6f8;
color: #353b45;
font: 12px Arial;
}
header {
display: flex;
align-items: center;
gap: 25px;
background: #283342;
color: #e9edf1;
padding: 17px 26px;
}
header > b {
font-size: 20px;
letter-spacing: -1px;
}
header > span {
font: 9px monospace;
color: #b6c3d1;
}
header > strong {
margin-left: auto;
font: 8px monospace;
background: #385f52;
color: #b5e9c6;
padding: 5px 8px;
}
main {
padding: 25px;
max-width: 1100px;
margin: auto;
}
.review-title > span {
font: 8px monospace;
color: #84909f;
}
h1 {
font-size: 26px;
margin: 10px 0;
}
.review-title p {
font-size: 11px;
color: #778594;
}
.review-title code {
background: #e6eaf0;
padding: 2px 6px;
}
.review-layout {
display: grid;
grid-template-columns: 180px 1fr;
gap: 20px;
margin-top: 25px;
}
aside h2 {
font: 8px monospace;
letter-spacing: 1px;
margin-bottom: 12px;
}
aside button {
display: block;
text-align: left;
width: 100%;
border: 0;
background: transparent;
padding: 10px;
font: 9px monospace;
color: #506071;
}
aside button[aria-pressed="true"] {
background: #dfe7f1;
}
aside i {
float: right;
color: #458559;
font-size: 8px;
}
aside p {
font:
italic 11px/1.7 Georgia,
serif;
color: #8b949e;
margin-top: 25px;
}
.diff {
border: 1px solid #ccd4df;
background: white;
align-self: start;
}
.diff-head {
background: #e9edf3;
padding: 12px;
display: flex;
gap: 15px;
font: 10px monospace;
}
.diff-head span {
margin-left: auto;
color: #8a94a1;
font-size: 8px;
}
#lines {
padding: 12px 0;
font: 10px/2 monospace;
}
#lines p {
display: flex;
}
#lines span {
width: 35px;
flex-shrink: 0;
text-align: center;
color: #8d9aab;
border-right: 1px solid #dde3ea;
margin-right: 10px;
}
#lines code {
white-space: pre-wrap;
overflow-wrap: anywhere;
padding-right: 8px;
}
.added {
background: #e7f5eb;
}
.removed {
background: #fbe7e7;
}
.review-note {
margin: 15px;
border-left: 3px solid #8eaed0;
padding: 12px;
background: #f3f7fb;
}
.review-note b {
font: 8px monospace;
color: #6b85a3;
}
.review-note p {
font-size: 11px;
line-height: 1.7;
margin-top: 8px;
}
@media (max-width: 580px) {
header {
padding: 15px;
gap: 15px;
}
header > span {
display: none;
}
main {
padding: 20px;
}
.review-layout {
grid-template-columns: 1fr;
}
aside p {
display: none;
}
aside button {
display: inline-block;
width: auto;
}
h1 {
font-size: 23px;
}
}
(() => {
"use strict";
const $ = (s) => document.querySelector(s),
$$ = (s) => [...document.querySelectorAll(s)];
const status = (text) => {
const el = $("[data-status]");
if (el) el.textContent = text;
};
const escapeText = (s) =>
String(s).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
function choose(selector, fn) {
$$(selector).forEach((b) =>
b.addEventListener("click", () => {
$$(selector).forEach((x) => x.setAttribute("aria-pressed", String(x === b)));
fn(b);
}),
);
}
function filter(selector, items, key) {
choose(selector, (b) => {
$$(items).forEach(
(el) => (el.hidden = b.dataset[key] !== "all" && el.dataset.kind !== b.dataset[key]),
);
status($$(items).filter((el) => !el.hidden).length + " results shown.");
});
}
function textList(target, values) {
$(target).replaceChildren(
...values.map((text) => {
const p = document.createElement("p");
p.textContent = text;
return p;
}),
);
}
const files = {
test: [
"tests/query.js",
'+ test("empty query", () => {',
'+ expect(query(" ")).toEqual([]);',
"+ });",
],
src: [
"src/query.js",
" export function query(text) {",
"+ if (!text.trim()) return [];",
"+ return index.search(text.trim());",
" }",
],
};
choose("[data-file]", (b) => {
const [name, ...lines] = files[b.dataset.file];
$("#filename").textContent = name;
$("#lines").replaceChildren(
...lines.map((line, i) => {
const p = document.createElement("p");
p.className = line.startsWith("+") ? "added" : "";
const n = document.createElement("span");
n.textContent = String(i + 1);
const code = document.createElement("code");
code.textContent = line;
p.append(n, code);
return p;
}),
);
status("Reviewing " + name + ".");
});
})();
A slate-blue platform map that connects visitors, an edge layer, services and storage with readable labe…
A warm paper diagram explaining sender, recipient and message relationships with key and envelope glyphs…
A pale violet delivery pipeline with branch and merge relationships, distinct gates and a selectable pro…