--- name: html-design-examples description: Reference gallery of polished single-file HTML artifacts demonstrating effective ways to communicate ideas through HTML. Use when the user wants to explain, showcase, demo, plan, review, or present an idea within an HTML file. metadata: source: Adapted from https://x.com/trq212/status/2052809885763747935 --- # HTML Design Examples A library of self-contained `.html` files showing how a static HTML artifact can carry more signal than the same content as markdown. Use them as visual and structural references when building an HTML deliverable for a similar task. ## Why HTML, not markdown The bottleneck is human attention, not what the agent can produce. A 500-line markdown plan goes unread; the same content as one HTML page with diagrams, tables and inline controls gets engaged with. HTML carries tables, SVG, CSS layout, scripts and spatial composition in a single file, opens in any browser, and shares as a URL rather than an attachment. The token and latency cost is real, and worth it for any artifact that needs to be read by a human. Prefer HTML for human-facing, ephemeral artifacts (specs, plans, reports, writeups, prototypes, throwaway editors). Stay with markdown or source for things that need durable, line-by-line review in a repo (RFCs, ADRs, runbooks) - HTML diffs are noisy. ## How to use this skill 1. Pick the example that most closely matches the user's intent (catalogue below). 2. Read that file in full before writing your own. The reference's style, density, and structure are the point. 3. Match the shared conventions (see "Conventions"). 4. Adapt to the user's real content. The examples use a fictional "Birchline" brand and fixture data - do not carry that across. 5. If the artifact is an editor or any interactive surface, end it with a "copy as JSON" or "copy as prompt" button so the user's work flows back into the agent loop. ## Resource catalogue Files live in `resources/`. Open `resources/index.html` for the rendered gallery with thumbnails. ### Exploration & Planning - `01-exploration-code-approaches.html` - side-by-side comparison of three implementation approaches with trade-offs called out inline. - `02-exploration-visual-designs.html` - layout and palette options rendered live for visual comparison. - `16-implementation-plan.html` - milestones on a timeline, data-flow diagram, inline mockups, risky code, risk table. ### Code Review & Understanding - `03-code-review-pr.html` - annotated diff with margin notes, severity tags, jump links. - `17-pr-writeup.html` - author-side PR description with motivation, before/after, file-by-file tour. - `04-code-understanding.html` - unfamiliar package drawn as boxes and arrows with the hot path highlighted. ### Design - `05-design-system.html` - colours, type scale, and spacing tokens rendered as copyable swatches. - `06-component-variants.html` - every size, state, and intent of one component on a single contact sheet. ### Prototyping - `07-prototype-animation.html` - a transition in isolation with sliders for duration and easing. - `08-prototype-interaction.html` - four linked screens, enough fidelity to feel the interaction. ### Illustrations & Diagrams - `10-svg-illustrations.html` - inline SVG figure sheet suitable for a blog post. - `13-flowchart-diagram.html` - annotated flowchart with click-to-reveal step detail. ### Decks - `09-slide-deck.html` - arrow-key navigable slides as one HTML file, no build step. ### Research & Learning - `14-research-feature-explainer.html` - TL;DR, collapsible request-path steps, tabbed config snippets, FAQ. - `15-research-concept-explainer.html` - interactive demo, comparison table, hover-linked glossary. ### Reports - `11-status-report.html` - weekly status: what shipped, what slipped, small chart. - `12-incident-report.html` - post-mortem with minute-by-minute timeline, log excerpts, follow-up checklist. ### Custom Editing Interfaces - `18-editor-triage-board.html` - drag tickets across Now / Next / Later / Cut, then export the ordering as markdown. - `19-editor-feature-flags.html` - grouped toggles with dependency warnings and a copy-diff button for changed keys. - `20-editor-prompt-tuner.html` - editable template with highlighted variable slots; three sample inputs re-render live as you type. ## Conventions across all examples - One `.html` file, opens directly in a browser. No build, no npm, no CDN scripts, no external stylesheets. - CSS custom properties at `:root` for the colour palette and font stacks. - Serif display headings paired with a sans-serif body is the recurring typographic pattern. - Any interactivity is vanilla JS in a single `