html-ppt-skill: The Browser Becomes the Presentation Engine

A zero-build static-HTML slide system that pairs CSS token themes, multi-window presenter mode, and an AI skill manifest into one unusually complete deck-making stack.

8 min read • View on GitHub • More from lewislulu

A presenter sits at a desk with a laptop open to a deck, while a second floating window beside it shows the next slide preview. The two windows share the same visual structure and are linked by a thin sync line, which explains how the repo keeps audience view and presenter view in lockstep.
The clever part is not that the deck is HTML. It is that the presenter preview is the same HTML, rendered again with a preview parameter and kept in sync at runtime.

只需执行 npx skills add 命令,AI即可掌握100+PPT技能,包含36个主题、20+物理特效、31种页面布局和14套完整模板,支持技术分享、路演、小红书图文等多种场景,真正实现"一句话需求→专业PPT"的自动化流程。

Key Takeaways

Most slide tools promise control. This repo promises something narrower and more useful: the same HTML becomes both the audience deck and the presenter console. That changes the whole feel of the product, because the preview is not a mockup. It is the real thing, rendered again with the same CSS, fonts, and viewport assumptions.

The preview is the product

The hook here is the presenter window. The repo loads the deck again inside an iframe, passes a ?preview=N state, and keeps the main stage and the next-slide view synchronized. That means the speaker is not looking at a screenshot or a rough approximation. They are looking at the actual deck, just in a different mode.

The runtime is doing three jobs at once: navigating slides, syncing a second window, and cloning the deck into an iframe so preview and stage never drift apart.

That is the repo’s first big idea. It replaces the usual split between editor, preview, and delivery with one runtime that repurposes the same document in different roles. For a technical presenter, that is a real product difference, not just a nicer UI.

A WSJ-style hedcut portrait of lewislulu, based on the verified GitHub avatar. The portrait identifies the creator behind the repo and anchors the article in a real author rather than an abstract tool.

A slide engine with no build step

Under the hood, the repo stays deliberately plain. It uses static HTML, CSS, and vanilla JavaScript, with no npm install and no bundler in the path. That matters because portability is part of the pitch. You can open, inspect, diff, and regenerate the deck without unpacking a framework first.

assets/
  base.css
  runtime.js
  themes/
  animations/
templates/
scripts/
SKILL.md

The structure is the story. base.css sets the primitives, the theme files override variables, and the templates assemble the layouts. The result is a system that behaves like software, but ships like a static artifact.

A close-up of a token board where one small set of CSS variables fans out into several different slide skins. The same underlying slide frame is shown multiple times as the styling changes, which explains how a compact token layer creates many distinct themes.
The theme system is not a pile of duplicated templates. It is a small token surface that can repaint the same layout in many directions.

Themes are just tokens

This is where the design system gets interesting. The themes are not bespoke one-offs so much as variable sets. A minimal white skin, a cyberpunk skin, an academic skin, a terminal skin. Same skeleton, different voice.

ApproachWhat changesWhat stays fixed
Token-based themesVariables, accents, spacing, surfacesLayouts, runtime behavior, content structure
Template-heavy themingMarkup and styling often fork togetherOnly the idea of a deck
Same HTML in previewNothing. It reuses the real deckEverything, including fonts and viewport assumptions

That is the quiet win. The repo makes visual variety cheap without making maintenance expensive. In presentation software, that is a rare trade.

The runtime keeps audience and presenter in sync

The runtime is the part that makes the project feel finished. Slide state changes, hash syncing, keyboard controls, and window-to-window messaging are all part of the same loop. The audience gets one active slide. The presenter gets a dashboard that always knows where the deck is going next.

The important design choice is not just synchronization. It is synchronization without a backend. BroadcastChannel keeps the secondary window aligned, while postMessage updates the embedded previews. The whole thing behaves like a networked app, but it is still a local static file.

Animations are split into motion and effects

The motion system is also more disciplined than it first appears. CSS handles slide-level transitions, while canvas-based FX modules handle richer effects. That split keeps the deck responsive and keeps the expensive stuff from running when a slide is inactive.

The repo treats motion as a lifecycle problem, not a bag of tricks. Effects start when a slide becomes active and stop when it leaves. That is the difference between a demo project and a runtime you could actually live with.

Why an AI skill matters here

The final layer is the one that makes the project feel current. SKILL.md packages the repo for agent use, so a deck can be generated from a prompt without changing tools or file formats. The point is not only automation. It is that the repository itself becomes an instruction set for how to make the deck correctly.

That changes the audience for the project. It is useful to humans who want a clean HTML deck. It is also useful to agents that need a constrained, production-like target. That is a much stronger position than being just another slide template pack.

What it replaces

Compared with PowerPoint-style workflows, the trade is clear. You give up a familiar proprietary editor. You get source control, portability, repeatable theming, and a final artifact that is already the web.

WorkflowStrengthWeakness
PowerPoint-style deck authoringWidespread familiarityBinary files, fragile theme edits, weaker diffs
Heavy web presentation frameworksRich feature setsMore setup and more framework surface area
html-ppt-skillStatic HTML, token themes, synced presenter modeRequires comfort with web-native presentation thinking

The repo is not trying to beat every tool on every axis. It is making one argument very well: if the browser is already your rendering engine, then presentation software should behave like browser-native software.