[Template: Manifesto-style speech (Outline-Faithful)]
[Intent] Visualize the user's outline / markdown 1:1 as a color-block large-type manifesto deck.Do not extract, do not rewrite, do not rearrange, do not condense— only decide which page each line/section is rendered as. Aesthetic reference: Felipe Franco / BIG STUDIOS manifesto large-type posters.
[Iron rules — any violation must be redone]
- Do not change the wording of titles, do not change the wording of paragraphs, do not change the wording of lists, do not rearrange the order
- The only allowed "change" isphysical pagination(split a paragraph that is too long into multiple pages)
- Do not extract a manifesto / do not write new sentences / do not delete content / do not place images or icons / do not use transition animations
- Use only one theme color per piece (choose one of black / red / yellow)
[outline → page mapping]
| Input element | Output page |
|---|---|
# 一级标题 |
Exclusive emphasis cover page (accent background color, usually a single character/single short word) |
## 二级标题 |
Exclusive theme page (large-type title occupies a page by itself) |
### 三级标题+ |
Exclusive theme page (font size automatically drops one tier) |
| Paragraph (≤30 characters) | Single theme page |
| Paragraph (30-80 characters, multiple periods) | One page per sentence (medium tier) |
| Paragraph (>80 characters) | Split at about ~30 characters per page, add at the end ⋯ |
- 列表项(≤4) |
Display all on one page, indent by nesting depth 0/1/2 |
| List of 5-8 items | Split into 2 pages, 3-4 items per page, with similar item counts |
| List >8 items | Split into multiple pages, 4 items per page |
| Table ≤6 rows | Single page |
| Table >6 rows | Split into multiple pages, keep the header row on each page |
**强调** / `code` |
Automatic hl: true |
--- separator |
Standalone emphasis pause page(empty emphasis, pure color block) |
First and last pages automatically emphasis: the document's first paragraph (if it is already # then merge) + the document's last paragraph = emphasis opening / closing page. Level-one headings are natural section breaks; do not force extra emphasis just to pad the rhythm.
[Theme color inference — only one per piece]
| Document tone / tag | theme | Default page | emphasis page | hl color (only effective on theme pages) |
|---|---|---|---|---|
| Contemplative / argumentative / notes (default) | black | White text on black background | White text on red background | Red #E63956 |
Manifesto / call to action / speech (including share / manifesto / keynote / talk tag or tone) |
red | White text on red background | White text on black background | Soft golden yellow #FFE082 |
Ironic / alert / critical (including critique / warn / rant) |
yellow | Black text on yellow background | White text on black background | Red #E63956 |
Explicit override: if the user writes "use red / use yellow / use black background", follow the instruction. If there are no clues at all, default to black.
[Visual specification — values locked]
Palette (only 4 colors, hex values must not be changed):
--c-black: #1A1A1A
--c-red: #E63956
--c-yellow: #FFD400
--c-white: #FFFFFF
--c-gold: #FFE082
Font stack (must use ultra-bold 900, letter-spacing -0.05em):
"Helvetica Neue", "Arial Black", "Inter", "PingFang SC", "Heiti SC", "STHeiti", -apple-system, sans-serif
font-weight: 900
Font-size tier (per this pagelongest linecharacter count, CJK weighted at 1.8, multi-line pages drop one tier):
| Tier | Character count | font-size |
|---|---|---|
| single | ≤2 | clamp(320px, 80vmin, 1100px) |
| short | 3-6 | clamp(240px, 55vmin, 780px) |
| medium | 7-14 | clamp(150px, 35vmin, 480px) |
| long | 15-26 | clamp(100px, 22vmin, 320px) |
| xlong | 27+ | clamp(64px, 14vmin, 200px) |
Layout:
- padding
6vmin 7vmin, letting large text fill the edges .linesblock is horizontally centered on screen, but each line within the block left-aligned(eliminates right-side whitespace while preserving indent misalignment)- line-height
1.05, inter-line gap0.15em - content vertically centered
- Footer: bottom-left page number (
01 / 08) + bottom-right subtitle, 13px monospace, opacity 0.5, uppercase, letter-spacing0.12em - emphasis page: background switches to
--acc-bg, text color switches to--acc-fg, inline.hlautomaticallycolor: inherit(the entire emphasis page is the highlight) - indent tier: 0 =
0, 1 =7vmin, 2 =16vmin
[Output Contract]
Outputsingle-file HTML, fully self-contained, inline CSS + inline JS, runs directly in an iframe sandbox. Follow the template below for the skeleton, fill in the SLIDES array,<title>、{{SUBTITLE}}、body[data-theme] and it is ready.No external CDN links, no external resources。
Each item in the SLIDES array has the form:
// 默认 theme 页
{ lines: [ { indent: 0, chunks: [ {t: "前段"}, {t: "高亮词", hl: true}, {t: "后段"} ] } ] }
// emphasis 页(accent 底色, inline hl 自动忽略)
{ emphasis: true, lines: [ { indent: 0, chunks: [ {t: "AI"} ] } ] }
// 休止页 = emphasis + 空 lines
{ emphasis: true, lines: [] }
Complete HTML skeleton (the agent shouldreuse the CSS and JS without changing them, only fill in SLIDES / title / subtitle / data-theme):
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><!-- 文档标题 --></title>
<style>
:root {
--c-black: #1A1A1A; --c-red: #E63956; --c-yellow: #FFD400;
--c-white: #FFFFFF; --c-gold: #FFE082;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
width: 100%; height: 100%;
font-family: "Helvetica Neue", "Arial Black", "Inter", "PingFang SC", "Heiti SC", "STHeiti", -apple-system, sans-serif;
font-weight: 900; overflow: hidden;
-webkit-font-smoothing: antialiased;
letter-spacing: -0.05em;
}
body[data-theme="black"] { --bg: var(--c-black); --fg: var(--c-white); --acc-bg: var(--c-red); --acc-fg: var(--c-white); --hl: var(--c-red); }
body[data-theme="red"] { --bg: var(--c-red); --fg: var(--c-white); --acc-bg: var(--c-black); --acc-fg: var(--c-white); --hl: var(--c-gold); }
body[data-theme="yellow"] { --bg: var(--c-yellow); --fg: var(--c-black); --acc-bg: var(--c-black); --acc-fg: var(--c-white); --hl: var(--c-red); }
body { background: var(--bg); }
.stage { position: fixed; inset: 0; }
.slide {
position: absolute; inset: 0; display: none;
flex-direction: column; justify-content: center; align-items: center;
padding: 6vmin 7vmin;
background: var(--bg); color: var(--fg);
}
.slide.active { display: flex; }
.slide[data-emphasis="true"] { background: var(--acc-bg); color: var(--acc-fg); }
.slide .hl { color: var(--hl); }
.slide[data-emphasis="true"] .hl { color: inherit; }
.lines { display: flex; flex-direction: column; gap: 0.15em; line-height: 1.05; max-width: 100%; align-items: flex-start; }
.line { white-space: nowrap; text-align: left; }
.line[data-indent="0"] { padding-left: 0; }
.line[data-indent="1"] { padding-left: 7vmin; }
.line[data-indent="2"] { padding-left: 16vmin; }
.slide[data-len="single"] .lines { font-size: clamp(320px, 80vmin, 1100px); }
.slide[data-len="short"] .lines { font-size: clamp(240px, 55vmin, 780px); }
.slide[data-len="medium"] .lines { font-size: clamp(150px, 35vmin, 480px); }
.slide[data-len="long"] .lines { font-size: clamp(100px, 22vmin, 320px); }
.slide[data-len="xlong"] .lines { font-size: clamp(64px, 14vmin, 200px); }
.pager, .subtitle {
position: fixed; bottom: 2.5vmin;
font-family: "Menlo", "Monaco", monospace;
font-size: 13px; font-weight: 400; letter-spacing: 0.12em;
user-select: none; z-index: 10; text-transform: uppercase;
opacity: 0.5; color: var(--fg);
}
.pager { left: 3vmin; }
.subtitle { right: 3vmin; }
body[data-current="emphasis"] .pager,
body[data-current="emphasis"] .subtitle { color: var(--acc-fg); }
</style>
</head>
<body data-theme="red"><!-- black|red|yellow -->
<div class="stage" id="stage"></div>
<div class="pager" id="pager">01 / 01</div>
<div class="subtitle" id="subtitle"><!-- 副标题 / 品牌, 可空 --></div>
<script>
const SLIDES = [ /* 填入按 outline 映射出的 slides 数组 */ ];
const stage = document.getElementById('stage');
const pager = document.getElementById('pager');
const body = document.body;
function lineCharLen(chunks) {
const CJK = /[ -〿㐀-䶿一-鿿豈--]/;
return chunks.reduce((acc, c) => {
let len = 0;
for (const ch of (c.t || '')) len += CJK.test(ch) ? 1.8 : 1;
return acc + len;
}, 0);
}
function maxLineLen(lines) { return lines && lines.length ? Math.max(...lines.map(l => lineCharLen(l.chunks || []))) : 0; }
function lengthTier(maxLen, lineCount) {
const adj = maxLen + Math.max(0, lineCount - 1) * 4;
if (adj <= 2) return 'single';
if (adj <= 6) return 'short';
if (adj <= 14) return 'medium';
if (adj <= 26) return 'long';
return 'xlong';
}
function escapeHtml(s) {
return String(s == null ? '' : s)
.replace(/&/g, '&').replace(/</g, '<')
.replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
}
SLIDES.forEach((s) => {
const el = document.createElement('div');
el.className = 'slide';
if (s.emphasis) el.setAttribute('data-emphasis', 'true');
if (s.lines && s.lines.length) {
el.setAttribute('data-len', lengthTier(maxLineLen(s.lines), s.lines.length));
const linesEl = document.createElement('div');
linesEl.className = 'lines';
s.lines.forEach(line => {
const lineEl = document.createElement('div');
lineEl.className = 'line';
lineEl.setAttribute('data-indent', String(line.indent || 0));
lineEl.innerHTML = (line.chunks || []).map(c => {
const t = escapeHtml(c.t);
return c.hl ? '<span class="hl">' + t + '</span>' : t;
}).join('');
linesEl.appendChild(lineEl);
});
el.appendChild(linesEl);
}
stage.appendChild(el);
});
const slides = stage.querySelectorAll('.slide');
let idx = 0;
function show(i) {
if (i < 0) i = 0; if (i >= slides.length) i = slides.length - 1;
slides[idx].classList.remove('active');
idx = i;
slides[idx].classList.add('active');
pager.textContent = String(idx + 1).padStart(2, '0') + ' / ' + String(slides.length).padStart(2, '0');
body.setAttribute('data-current', slides[idx].getAttribute('data-emphasis') === 'true' ? 'emphasis' : 'theme');
}
function next() { show(idx + 1); }
function prev() { show(idx - 1); }
document.addEventListener('keydown', (e) => {
switch (e.key) {
case 'ArrowRight': case ' ': case 'Enter': case 'j': case 'PageDown': e.preventDefault(); next(); break;
case 'ArrowLeft': case 'k': case 'PageUp': e.preventDefault(); prev(); break;
case 'Home': e.preventDefault(); show(0); break;
case 'End': e.preventDefault(); show(slides.length - 1); break;
case 'f': case 'F': e.preventDefault(); document.fullscreenElement ? document.exitFullscreen?.() : document.documentElement.requestFullscreen?.(); break;
}
});
let touchX = null;
document.addEventListener('touchstart', (e) => { touchX = e.touches[0].clientX; });
document.addEventListener('touchend', (e) => {
if (touchX == null) return;
const dx = e.changedTouches[0].clientX - touchX;
if (dx < -40) next(); else if (dx > 40) prev();
touchX = null;
});
document.addEventListener('click', (e) => {
if (e.target.closest('.pager,.subtitle')) return;
const mid = window.innerWidth / 2;
if (e.clientX > mid) next(); else prev();
});
show(0);
</script>
</body>
</html>
[Invocation flow — inside the agent]
- Read user content (markdown / outline / plain text)
- Follow the table above to do the outline → slides array mapping, no extraction and no rewriting
- Infer theme (tags > tone > default black)
- Reuse the skeleton, replace
<title>/data-theme/<div id="subtitle">content /SLIDESarray - Output the entire HTML document in one go
[Taste Guidelines]
- The outline is truth, the skill is the renderer
- Level-1 heading = emphasis cover (natural section break)
- Level-2 heading = standalone theme page (give the heading its due weight)
- List misalignment reflects nesting depth via indent 0/1/2
**强调**automatically hl- Split pages maintain visual consistency (same-source blocks with aligned font size/indent)
- Left-aligned, not centered — this is the soul of manifesto aesthetics
[Prohibitions]
- Do not extract a manifesto (do not "look for the hook," the author has already written the outline)
- Do not write new sentences, do not reorder, do not delete content
- No images / no icons / no transition animations
- Do not use inline hl on emphasis pages (the entire emphasis page is the highlight)
- Do not mix multiple themes (one piece, one temperament)
- Do not add emphasis on your own (only level-1 headings / first and last pages / separators)
[Acknowledgments] This skill is adapted from lijigang/ljg-skills · ljg-present(v3.0.0). The original output multiple themes including a cyber-hacker mode and PNG projection; the html-anything version keeps only 3 themes + single-file HTML output. Aesthetic inspiration continues to point to the manifesto type posters of Felipe Franco / BIG STUDIOS.