template
Explore creation
A slate-blue platform map that connects visitors, an edge layer, services and storage with readable labe…
A classic paste service composition with line-numbered syntax styling, format controls and a recent-pastes sidebar.
<!-- Original layout, SVG/CSS artwork and JavaScript © 2026 XXC Templates. MIT License.
Visual pattern references (original code, names and content; no affiliation):
Pastebin: https://pastebin.com/
A utility-oriented text editor with metadata controls and a secondary paste index.
Illustrative sample content and data; no real accounts, payments, reservations or messages. -->
<main>
<header>
<b>pastecraft<span>▧</span></b>
<nav><a href="#editor">New paste</a><a href="#recent">Recent examples</a></nav>
</header>
<div class="paste-layout">
<section>
<h1>New paste</h1>
<p class="lead">A small piece of code, ready for a second pair of eyes.</p>
<label for="title"
>Paste title<input id="title" maxlength="80" value="A tiny greeting function" /></label
><label for="source">Source code</label
><textarea id="source" spellcheck="false" maxlength="12000">
function greet(name) {
return "Hello, " + name;
}
greet("curious human");</textarea>
<div class="controls">
<label
>Syntax<select id="syntax">
<option>JavaScript</option>
<option>Plain text</option>
</select></label
><button id="change">Render preview</button>
</div>
<section id="rendered" hidden>
<h2 id="preview-title"></h2>
<pre id="code"></pre>
</section>
</section>
<aside id="recent">
<h2>PUBLIC EXAMPLES</h2>
<div><b>CSS reset notes</b><span>CSS / 4 min</span></div>
<div><b>Small fetch wrapper</b><span>JavaScript / 12 min</span></div>
<div><b>Morning checklist</b><span>Text / 28 min</span></div>
<div><b>Grid layout sketch</b><span>CSS / 1 hour</span></div>
<p>These are fictional examples. The editor preview is local and does not publish a paste.</p>
</aside>
</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: #e9edf2;
color: #425163;
}
main {
max-width: 1100px;
margin: 20px auto;
background: #fff;
border: 1px solid #c9d4df;
padding: 0 25px 20px;
}
header {
display: flex;
align-items: center;
gap: 35px;
border-bottom: 3px solid #5782a5;
padding: 20px 0;
}
header > b {
font: 26px Arial;
letter-spacing: -1px;
color: #3c6a8d;
}
header b span {
font-size: 23px;
margin-left: 6px;
color: #9db7cd;
}
nav {
display: flex;
gap: 20px;
font-size: 10px;
color: #7e97ae;
}
nav a {
text-decoration: none;
}
.paste-layout {
display: grid;
grid-template-columns: 1fr 170px;
gap: 30px;
margin-top: 25px;
}
h1 {
font-size: 24px;
color: #355f7f;
}
.lead {
font-size: 10px;
color: #94a6b4;
margin: 8px 0 20px;
}
label {
display: block;
font-size: 9px;
color: #7f94a5;
margin: 12px 0 6px;
}
input {
display: block;
width: 100%;
border: 1px solid #c5d3dd;
padding: 8px;
margin-top: 6px;
color: #607e95;
font-size: 11px;
}
textarea {
width: 100%;
height: 175px;
border: 1px solid #becedb;
background: #f8fafc;
padding: 15px;
font: 11px/1.8 monospace;
color: #4f6a83;
resize: vertical;
}
.controls {
display: flex;
gap: 20px;
align-items: end;
}
.controls label {
margin: 0;
}
.controls select {
display: block;
background: white;
border: 1px solid #c5d3dd;
color: #648097;
font-size: 10px;
padding: 6px;
margin-top: 6px;
}
button {
background: #3c779f;
color: white;
border: 0;
padding: 9px 16px;
font-size: 10px;
}
aside {
border-left: 1px solid #dae3ea;
padding-left: 20px;
}
aside h2 {
font-size: 9px;
color: #829aad;
letter-spacing: 1px;
margin: 4px 0 15px;
}
aside > div {
border-bottom: 1px solid #e1e8ed;
padding: 13px 0;
}
aside b {
font-size: 10px;
font-weight: normal;
color: #6a8daa;
}
aside span {
display: block;
font-size: 8px;
color: #a7b6c2;
margin-top: 5px;
}
aside > p {
font-size: 9px;
line-height: 1.8;
color: #a2b3bf;
margin-top: 20px;
}
#rendered {
margin-top: 20px;
}
#rendered h2 {
font-size: 13px;
}
pre {
font: 11px/1.8 monospace;
background: #f3f6f9;
padding: 13px;
border: 1px solid #d1dce5;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.code-line {
display: block;
}
.line-number {
display: inline-block;
width: 25px;
color: #a6b8c7;
user-select: none;
}
.keyword {
color: #91668f;
font-weight: bold;
}
@media (max-width: 540px) {
main {
margin: 0;
border: 0;
padding: 0 20px 20px;
}
header {
gap: 25px;
}
nav {
font-size: 9px;
gap: 12px;
}
.paste-layout {
grid-template-columns: 1fr;
}
aside {
border-left: 0;
border-top: 1px solid #dae3ea;
padding: 20px 0 0;
}
aside > div {
display: inline-block;
width: 48%;
vertical-align: top;
}
}
(() => {
"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;
}),
);
}
$("#change").addEventListener("click", () => {
$("#preview-title").textContent = $("#title").value || "Untitled paste";
$("#code").replaceChildren(
...$("#source")
.value.split("\n")
.map((line, i) => {
const row = document.createElement("span");
row.className = "code-line";
const n = document.createElement("span");
n.className = "line-number";
n.textContent = String(i + 1);
row.append(n);
if ($("#syntax").value === "JavaScript") {
line.split(/\b(function|return|const|let)\b/g).forEach((part) => {
const span = document.createElement("span");
span.textContent = part;
if (/^(function|return|const|let)$/.test(part)) span.className = "keyword";
row.append(span);
});
} else row.append(document.createTextNode(line));
return row;
}),
);
$("#rendered").hidden = false;
status("Code preview rendered as text. No submitted code was executed or uploaded.");
});
})();
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…