Newspaper HTML Generator
Generate self-contained, single-file HTML pages styled as a warm, vintage Chinese newspaper.
All output must be a complete, standalone .html file — no external CSS/JS dependencies.
Design System
Color Palette (CSS custom properties)
:root {
--paper: #f5f1e8; /* parchment background */
--paper-2: #ebdfcc; /* darker parchment */
--ink: #171717; /* primary text */
--muted: #666055; /* secondary/meta text */
--soft: #8e8476; /* tertiary text */
--accent: #7f1111; /* dark red accent */
--rule: #1f1f1f; /* border/divider color */
--sans: "Inter", "PingFang SC", "Noto Sans CJK SC", sans-serif;
--serif: "Source Han Serif SC", "Songti SC", "STSong", serif;
--mono: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
}
The --accent color can be shifted (e.g. #1a3a5c for blue, #2d5a1e for green) to
match the content domain, but default to the dark red.
Typography Rules
- Headings:
var(--serif), bold/black weight, tight line-height (0.88–1.05).
Use clamp() for responsive sizing: clamp(34px, 4.4vw, 56px) for h1.
- Body text:
var(--serif), 13–14px, line-height 1.55–1.68.
- Meta/labels:
var(--sans), 10–11px, uppercase, letter-spacing 0.06–0.14em.
These are section kickers, timestamps, category labels.
- Monospace:
var(--mono) for IDs, version numbers, timestamps in data displays.
Layout Patterns
Masthead (page header)
- Two-column grid: title left, signal/metadata cards right.
- Bottom border:
3px double var(--rule).
- Contains: topline (date/issue label), h1 (main headline), dek (subtitle).
Section Separators
- Use
3px double var(--rule) for major section breaks (masthead → content, content → footer).
- Use
1px solid rgba(0,0,0,.18) for minor dividers.
- Use
1px dotted rgba(0,0,0,.18) for card-internal dividers.
Cards (project cards, editor cards)
- Background:
linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.22)).
- Top accent bar:
3px gradient from var(--accent) to near-black.
- Left accent bar:
3–4px solid accent for editor cards and activity blocks.
- Subtle shadow:
0 8px 22px rgba(0,0,0,.05).
- Internal padding: 12–20px.
Lead Story
- Full-width section with accent left border (4px gradient).
- Contains: section kicker, metadata strip (mono font), h2 title, summary, action links.
- Action links: bordered buttons;
.is-strong variant has dark fill.
Signal Board (metrics/stats)
- Flexbox row of signal cards with vertical dividers.
- Each card: label (mono, uppercase), value (bold sans), optional description.
Updates Panel (sidebar)
- Timeline layout with time column (84px) and content column.
- Dotted bottom borders between rows.
- Grid-based: time spans 4 rows, content fills the rest.
Hover Panels (navigation overlays)
- Fixed position, slide in from edge on hover.
- Opacity transitions: 0.12 → 1 on hover.
- Transform: translateX to reveal.
- Left panel: project summary. Right panel: edition table of contents.
Footer
3px double var(--rule) top border.
- Mono font, muted color, 10px.
Body Background
body {
margin: 0;
background: radial-gradient(circle at top, rgba(255,255,255,.32), transparent 38%), #d8cdb9;
color: var(--ink);
font-family: var(--serif);
}
Responsive Breakpoints
| Breakpoint |
Key changes |
| 1380px |
Grid → 3 columns |
| 1120px |
Masthead/newsroom → single column |
| 1080px |
Hover panels narrower, edition-head → single column |
| 980px |
Portal masthead → single column, project grid → 1 column |
| 820px |
2-column project grid, stack board/panel headers |
| 640px |
Single column everything, signal board → vertical |
Page Types
1. Portal Page (index/dashboard)
A multi-project dashboard. See references/portal-template.html for the full structure.
Key sections: masthead → lead story → newsroom (project grid + updates sidebar) → footer.
2. Project/Article Page
A single-project archive with multiple editions. See references/project-template.html.
Key sections: hover panels (left: summary, right: edition TOC) → edition stream → auto-resize iframes.
3. Single Article Page
For standalone content (no portal/project context). Simpler structure:
masthead → lead content → optional sections → footer
Strip the hover panels and multi-edition stream. Keep the typography and card styles.
Output Rules
- Single file: All CSS inline in
<style>, all JS inline in <script>. No external resources.
- Language:
lang="zh-CN" unless content is in another language.
- Responsive: Include all breakpoints. Must look good on mobile.
- Accessible: Use semantic HTML (
<main>, <header>, <section>, <aside>, <footer>).
Add aria-label on decorative panels.
- Content-driven: Populate all sections with the user's actual content. Do not leave
placeholder text.
- Self-contained: No CDN fonts. Use system font stacks. The page must render offline.
- Filename: Suggest a kebab-case filename based on the content, e.g.
newspaper-ai-agents-2026-05-27.html.
Workflow
- Ask the user what content to render (or infer from context).
- Determine page type: portal, project archive, or single article.
- Generate the complete HTML file following the design system above.
- Write the file to the workspace.
- Briefly describe the output and suggest how to open it.
References
Read these files for the full template structures:
references/portal-template.html — portal/dashboard page layout
references/project-template.html — project archive with edition stream
1---2name: newspaper-html3description: Generate self-contained single-page HTML files in a warm Chinese-newspaper aesthetic. Use when the user wants to create a newspaper-style report, archive page, project dashboard, portal page, or any content rendered as a vintage print-layout HTML. Triggers on: "newspaper style", "报纸风格", "newspaper HTML", "生成报纸页", "project portal", "edition page", or when the task involves turning structured content into a beautifully typeset single-file HTML.4---56# Newspaper HTML Generator78Generate self-contained, single-file HTML pages styled as a warm, vintage Chinese newspaper.9All output must be a **complete, standalone `.html` file** — no external CSS/JS dependencies.1011## Design System1213### Color Palette (CSS custom properties)1415```css16:root {17 --paper: #f5f1e8; /* parchment background */18 --paper-2: #ebdfcc; /* darker parchment */19 --ink: #171717; /* primary text */20 --muted: #666055; /* secondary/meta text */21 --soft: #8e8476; /* tertiary text */22 --accent: #7f1111; /* dark red accent */23 --rule: #1f1f1f; /* border/divider color */24 --sans: "Inter", "PingFang SC", "Noto Sans CJK SC", sans-serif;25 --serif: "Source Han Serif SC", "Songti SC", "STSong", serif;26 --mono: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;27}28```2930The `--accent` color can be shifted (e.g. `#1a3a5c` for blue, `#2d5a1e` for green) to31match the content domain, but default to the dark red.3233### Typography Rules3435- **Headings**: `var(--serif)`, bold/black weight, tight line-height (0.88–1.05).36 Use `clamp()` for responsive sizing: `clamp(34px, 4.4vw, 56px)` for h1.37- **Body text**: `var(--serif)`, 13–14px, line-height 1.55–1.68.38- **Meta/labels**: `var(--sans)`, 10–11px, uppercase, letter-spacing 0.06–0.14em.39 These are section kickers, timestamps, category labels.40- **Monospace**: `var(--mono)` for IDs, version numbers, timestamps in data displays.4142### Layout Patterns4344#### Masthead (page header)45- Two-column grid: title left, signal/metadata cards right.46- Bottom border: `3px double var(--rule)`.47- Contains: topline (date/issue label), h1 (main headline), dek (subtitle).4849#### Section Separators50- Use `3px double var(--rule)` for major section breaks (masthead → content, content → footer).51- Use `1px solid rgba(0,0,0,.18)` for minor dividers.52- Use `1px dotted rgba(0,0,0,.18)` for card-internal dividers.5354#### Cards (project cards, editor cards)55- Background: `linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.22))`.56- Top accent bar: `3px` gradient from `var(--accent)` to near-black.57- Left accent bar: `3–4px solid` accent for editor cards and activity blocks.58- Subtle shadow: `0 8px 22px rgba(0,0,0,.05)`.59- Internal padding: 12–20px.6061#### Lead Story62- Full-width section with accent left border (4px gradient).63- Contains: section kicker, metadata strip (mono font), h2 title, summary, action links.64- Action links: bordered buttons; `.is-strong` variant has dark fill.6566#### Signal Board (metrics/stats)67- Flexbox row of signal cards with vertical dividers.68- Each card: label (mono, uppercase), value (bold sans), optional description.6970#### Updates Panel (sidebar)71- Timeline layout with time column (84px) and content column.72- Dotted bottom borders between rows.73- Grid-based: time spans 4 rows, content fills the rest.7475#### Hover Panels (navigation overlays)76- Fixed position, slide in from edge on hover.77- Opacity transitions: 0.12 → 1 on hover.78- Transform: translateX to reveal.79- Left panel: project summary. Right panel: edition table of contents.8081#### Footer82- `3px double var(--rule)` top border.83- Mono font, muted color, 10px.8485### Body Background8687```css88body {89 margin: 0;90 background: radial-gradient(circle at top, rgba(255,255,255,.32), transparent 38%), #d8cdb9;91 color: var(--ink);92 font-family: var(--serif);93}94```9596### Responsive Breakpoints9798| Breakpoint | Key changes |99|---|---|100| 1380px | Grid → 3 columns |101| 1120px | Masthead/newsroom → single column |102| 1080px | Hover panels narrower, edition-head → single column |103| 980px | Portal masthead → single column, project grid → 1 column |104| 820px | 2-column project grid, stack board/panel headers |105| 640px | Single column everything, signal board → vertical |106107## Page Types108109### 1. Portal Page (index/dashboard)110A multi-project dashboard. See `references/portal-template.html` for the full structure.111Key sections: masthead → lead story → newsroom (project grid + updates sidebar) → footer.112113### 2. Project/Article Page114A single-project archive with multiple editions. See `references/project-template.html`.115Key sections: hover panels (left: summary, right: edition TOC) → edition stream → auto-resize iframes.116117### 3. Single Article Page118For standalone content (no portal/project context). Simpler structure:119```120masthead → lead content → optional sections → footer121```122Strip the hover panels and multi-edition stream. Keep the typography and card styles.123124## Output Rules1251261. **Single file**: All CSS inline in `<style>`, all JS inline in `<script>`. No external resources.1272. **Language**: `lang="zh-CN"` unless content is in another language.1283. **Responsive**: Include all breakpoints. Must look good on mobile.1294. **Accessible**: Use semantic HTML (`<main>`, `<header>`, `<section>`, `<aside>`, `<footer>`).130 Add `aria-label` on decorative panels.1315. **Content-driven**: Populate all sections with the user's actual content. Do not leave132 placeholder text.1336. **Self-contained**: No CDN fonts. Use system font stacks. The page must render offline.1347. **Filename**: Suggest a kebab-case filename based on the content, e.g.135 `newspaper-ai-agents-2026-05-27.html`.136137## Workflow1381391. Ask the user what content to render (or infer from context).1402. Determine page type: portal, project archive, or single article.1413. Generate the complete HTML file following the design system above.1424. Write the file to the workspace.1435. Briefly describe the output and suggest how to open it.144145## References146147Read these files for the full template structures:148- `references/portal-template.html` — portal/dashboard page layout149- `references/project-template.html` — project archive with edition stream