Beautiful HTML
Convert any written content into a polished, single-file HTML presentation using templates from the beautiful-html-templates library.
Template Library
34 templates available. Key ones by use case:
| Use Case |
Template |
Style |
Raw URL |
| B2B proposals, consulting, investor updates |
blue-professional |
Light / Cobalt Blue |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/blue-professional/template.html |
| Investor decks, board presentations |
signal |
Mixed / Navy & Gold |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/signal/template.html |
| White papers, research, policy briefs |
monochrome |
Light / Black & White |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/monochrome/template.html |
| Investment theses, research reports |
cartesian |
Light / Neutral Warm |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/cartesian/template.html |
| Leadership presentations, strategy |
emerald-editorial |
Mixed / Emerald-Navy |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/emerald-editorial/template.html |
| Research findings, white papers |
vellum |
Dark / Navy & Gold |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/vellum/template.html |
| Design reports, studio annuals |
cobalt-grid |
Light / Cobalt Blue |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/cobalt-grid/template.html |
| Startup pitches, founder presentations |
raw-grid |
Light / Multi |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/raw-grid/template.html |
| Quarterly reviews, studio updates |
editorial-forest |
Mixed / Forest Green |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/editorial-forest/template.html |
| Design studios, creative agencies |
studio |
Dark / Electric Yellow |
https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/studio/template.html |
Full list of all 34 templates at: https://github.com/zarazhangrui/beautiful-html-templates
Workflow
Phase 1 — Gather Content
Ask the user:
- "What's the content? (paste text, share a .md file path, or describe what to build)"
- "What's the purpose? (proposal, report, pitch, research, internal update)"
- "Who's the audience?"
If a file path is provided, read it. If it's a markdown proposal, parse it into sections.
Phase 2 — Template Selection
Based on the purpose and audience, recommend 3 templates from the library above with a one-line reason for each. Show them as options (A, B, C).
For professional B2B proposals → default recommend blue-professional, signal, cartesian.
For research/reports → default recommend monochrome, vellum, cartesian.
For creative/agency → default recommend studio, editorial-forest, cobalt-grid.
Wait for the user to pick one — or auto-select if they say "you choose."
Phase 3 — Fetch Template
Use WebFetch to retrieve the raw HTML template from GitHub:
WebFetch: https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/<template-name>/template.html
Read the template structure carefully:
- Identify all slide layout types available (cover, content, metrics, quote, split, timeline, etc.)
- Note the CSS variable names for colors and fonts
- Identify placeholder text patterns to replace
Phase 4 — Populate Content
Map the user's content onto the template's slide layouts:
Mapping rules:
- Cover slide → title, subtitle, date, submitted by
- Agenda slide → top-level sections as bullet list
- Content slides → one section per slide, headline = the key insight (not the topic label)
- Metrics slide → any numbers, KPIs, success metrics
- Quote slide → testimonials, key statements, pull quotes
- Split slide → before/after, problem/solution, two-column comparisons
- Timeline slide → roadmaps, horizons, phased plans
- Table slide → pricing, commercials, structured breakdowns
Content rules:
- Every slide headline = one complete insight
- Bad: "Section 3"
- Good: "90% of the team will have a live AI agent in production by month six"
- Never dump raw sections — rewrite as slide-friendly statements
- Keep bullets to 4–5 max per slide
- Numbers and metrics get their own slide
Replace all placeholder text in the template HTML with the user's actual content. Preserve all CSS, JS, navigation, and structure — only change the text content and optionally adjust CSS color variables if needed to better match the client's brand.
Phase 5 — Save and Open
Save the populated HTML file with a descriptive filename (e.g. sb-ai-proposal.html).
Offer to:
- Convert to PDF using Playwright:
npx playwright install chromium --with-deps
node -e "
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.setViewportSize({ width: 1280, height: 720 });
await page.goto('file://' + require('path').resolve('<filename>.html'));
const slideCount = await page.evaluate(() => document.querySelectorAll('.slide').length);
await page.pdf({
path: '<filename>.pdf',
width: '1280px',
height: '720px',
printBackground: true,
pageRanges: '1-' + slideCount
});
await browser.close();
console.log('Saved: <filename>.pdf');
})();
"
- Deploy to Vercel for a shareable link
Source
Templates from beautiful-html-templates by Zara Zhang Rui. MIT licensed.
1---2name: beautiful-html3description: Turn any document, proposal, report, or outline into a stunning single-file HTML presentation using 34 pre-built professional templates. Use when the user wants to convert a markdown file, proposal, or written content into a beautiful visual HTML document ready to share or convert to PDF.4---56# Beautiful HTML78Convert any written content into a polished, single-file HTML presentation using templates from the [beautiful-html-templates](https://github.com/zarazhangrui/beautiful-html-templates) library.910## Template Library111234 templates available. Key ones by use case:1314| Use Case | Template | Style | Raw URL |15|---|---|---|---|16| B2B proposals, consulting, investor updates | `blue-professional` | Light / Cobalt Blue | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/blue-professional/template.html |17| Investor decks, board presentations | `signal` | Mixed / Navy & Gold | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/signal/template.html |18| White papers, research, policy briefs | `monochrome` | Light / Black & White | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/monochrome/template.html |19| Investment theses, research reports | `cartesian` | Light / Neutral Warm | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/cartesian/template.html |20| Leadership presentations, strategy | `emerald-editorial` | Mixed / Emerald-Navy | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/emerald-editorial/template.html |21| Research findings, white papers | `vellum` | Dark / Navy & Gold | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/vellum/template.html |22| Design reports, studio annuals | `cobalt-grid` | Light / Cobalt Blue | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/cobalt-grid/template.html |23| Startup pitches, founder presentations | `raw-grid` | Light / Multi | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/raw-grid/template.html |24| Quarterly reviews, studio updates | `editorial-forest` | Mixed / Forest Green | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/editorial-forest/template.html |25| Design studios, creative agencies | `studio` | Dark / Electric Yellow | https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/studio/template.html |2627Full list of all 34 templates at: https://github.com/zarazhangrui/beautiful-html-templates2829---3031## Workflow3233### Phase 1 — Gather Content3435Ask the user:361. "What's the content? (paste text, share a .md file path, or describe what to build)"372. "What's the purpose? (proposal, report, pitch, research, internal update)"383. "Who's the audience?"3940If a file path is provided, read it. If it's a markdown proposal, parse it into sections.4142---4344### Phase 2 — Template Selection4546Based on the purpose and audience, recommend 3 templates from the library above with a one-line reason for each. Show them as options (A, B, C).4748For professional B2B proposals → default recommend `blue-professional`, `signal`, `cartesian`.49For research/reports → default recommend `monochrome`, `vellum`, `cartesian`.50For creative/agency → default recommend `studio`, `editorial-forest`, `cobalt-grid`.5152Wait for the user to pick one — or auto-select if they say "you choose."5354---5556### Phase 3 — Fetch Template5758Use WebFetch to retrieve the raw HTML template from GitHub:5960```61WebFetch: https://raw.githubusercontent.com/zarazhangrui/beautiful-html-templates/main/templates/<template-name>/template.html62```6364Read the template structure carefully:65- Identify all slide layout types available (cover, content, metrics, quote, split, timeline, etc.)66- Note the CSS variable names for colors and fonts67- Identify placeholder text patterns to replace6869---7071### Phase 4 — Populate Content7273Map the user's content onto the template's slide layouts:7475**Mapping rules:**76- Cover slide → title, subtitle, date, submitted by77- Agenda slide → top-level sections as bullet list78- Content slides → one section per slide, headline = the key insight (not the topic label)79- Metrics slide → any numbers, KPIs, success metrics80- Quote slide → testimonials, key statements, pull quotes81- Split slide → before/after, problem/solution, two-column comparisons82- Timeline slide → roadmaps, horizons, phased plans83- Table slide → pricing, commercials, structured breakdowns8485**Content rules:**86- Every slide headline = one complete insight87 - Bad: "Section 3"88 - Good: "90% of the team will have a live AI agent in production by month six"89- Never dump raw sections — rewrite as slide-friendly statements90- Keep bullets to 4–5 max per slide91- Numbers and metrics get their own slide9293Replace all placeholder text in the template HTML with the user's actual content. Preserve all CSS, JS, navigation, and structure — only change the text content and optionally adjust CSS color variables if needed to better match the client's brand.9495---9697### Phase 5 — Save and Open9899Save the populated HTML file with a descriptive filename (e.g. `sb-ai-proposal.html`).100101Offer to:102- **Convert to PDF** using Playwright:103 ```bash104 npx playwright install chromium --with-deps105 node -e "106 const { chromium } = require('playwright');107 (async () => {108 const browser = await chromium.launch();109 const page = await browser.newPage();110 await page.setViewportSize({ width: 1280, height: 720 });111 await page.goto('file://' + require('path').resolve('<filename>.html'));112 const slideCount = await page.evaluate(() => document.querySelectorAll('.slide').length);113 await page.pdf({114 path: '<filename>.pdf',115 width: '1280px',116 height: '720px',117 printBackground: true,118 pageRanges: '1-' + slideCount119 });120 await browser.close();121 console.log('Saved: <filename>.pdf');122 })();123 "124 ```125- **Deploy to Vercel** for a shareable link126127---128129## Source130131Templates from [beautiful-html-templates](https://github.com/zarazhangrui/beautiful-html-templates) by Zara Zhang Rui. MIT licensed.