/frontend-slides:frontend-slidesfrom frontend-slides
Creates animation-rich HTML presentations from scratch or by converting PowerPoint files. Uses Tailwind CSS for styling in a single self-contained file with no build step.
Ships in frontend-slides. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create animation-rich, Tailwind-styled HTML presentations that run entirely in the browser.
design.md only after the user picks that template.Every deck and preview uses the same architecture:
<head>: <script src="https://cdn.tailwindcss.com"></script>.tailwind.config block — colors and fontFamily map to CSS variables or literal values (see html-template.md).left-[96px], text-[168px], tracking-[0.18em], max-w-[1360px].<style> sections, nothing else:
--lp-* for presets, theme vars for decks) that tailwind.config references.@keyframes plus .slide.active-scoped animation triggers (state-dependent animation can't be pure utilities).lp-title, reveal) only as an animation/JS hook — all visual styling stays in utilities.bg-${color} breaks the CDN JIT); toggle complete class strings.shadow-[0_8px_32px_rgba(0,0,0,0.3)].right-[calc(-1*clamp(28px,3.5vw,44px))]; a leading - before a function is silently dropped.You converge toward generic, "on distribution" outputs — the "AI slop" aesthetic. Actively resist it:
Avoid: purple-gradient-on-white clichés, predictable centered layouts, cookie-cutter card grids, and over-reused picks like Space Grotesk. Vary light/dark themes and aesthetics between generations.
These invariants apply to EVERY slide in EVERY presentation:
.deck-viewport wrapper filling the window and a .deck-stage fixed at 1920×1080..active/.visible via visibility/opacity/pointer-events from viewport-base.css — never display: none/block, which layout utilities like flex can override.clamp() is only for UI outside the stage or small fallback previews.prefers-reduced-motion support (shipped in viewport-base.css).Ask whether this is a reading deck or a speaking deck, then design around the answer:
| Density mode | Best for | Design behavior |
|---|---|---|
| Low density / speaker-led | Talks, keynotes, live explanation | One idea per slide, large type, 1–3 bullets max, generous negative space, more slides |
| High density / reading-first | Reports, handouts, async review | Self-contained slides, structured grids/tables, 4–8 bullets or 4–6 cards, tight but intentional spacing |
Hard limits in both modes: no scrolling, no overflow, no overlapping panels, no uncomfortably small text. Split into more slides rather than shrinking content.
Ask ALL questions together (use the native structured-question UI if available, else one numbered message):
Do NOT ask about inline editing pre-draft; it's included by default unless the user asks for a locked/export-only file. If the user has content, ask them to share it. Remember the density choice — it drives slide count, type scale, and layout density.
Generate 3 distinct single-slide HTML previews (typography, color, animation, aesthetic) — never ask abstract style questions or offer a preset-name picker. If the user named a vibe or template, honor it; otherwise infer mood from occasion, audience, content, and stakes.
Read STYLE_PRESETS.md and bold-template-pack/selection-index.json first; do not read any design.md yet.
| Mood | Suggested presets |
|---|---|
| Impressed/Confident | Bold Signal, Electric Studio, Dark Botanical |
| Excited/Energized | Creative Voltage, Neon Cyber, Split Pastel |
| Calm/Focused | Notebook Tabs, Paper & Ink, Swiss Modern |
| Inspired/Moved | Dark Botanical, Vintage Editorial, Pastel Geometry |
Preview mix:
Custom wildcard rules:
Bold template selection:
mood, tone, best_for, avoid_for, formality, density, scheme; treat best_for as soft signal.preview.md (for title previews); full design.md waits for the final pick.Preview authenticity (NON-NEGOTIABLE):
Save previews to .frontend-slides/slide-previews/ (style-a.html, style-b.html, style-c.html) — each self-contained, one animated title slide — and open them automatically.
Ask (header: "Style"): Style A: [Name] / Style B: [Name] / Style C: [Name] / Mix elements. If "Mix elements", ask for specifics.
Generate the full deck from Phase 1 content and the Phase 2 style. No images? CSS-generated visuals (gradients, shapes, patterns) are a first-class path.
Apply the density choice throughout:
If a bold template was chosen, read that one template's full design.md (only that one) and treat it as the design recipe:
design.md into fixed 1920×1080 stage pixels — never keep live reflow rules.scrollHeight checks alone miss visual overlap.If a custom wildcard was chosen, its preview markup and config are the design recipe: expand the same system across the deck; never switch to a preset/template afterward.
Layout presets are mandatory for covered slots (opening, section, list, stats, chart, quote, comparison, timeline, image, video, closing):
layout.md.lp token mapping.placehold.co size, object-cover frame, and CSS fill fallback.<!-- Slide 5: Market Growth — layout: stats/big-number (modified: added third stat) --> (layout: custom when fully custom).Before generating, read: html-template.md (architecture + JS), viewport-base.css (include verbatim), animation-patterns.md, layout-presets/README.md.
Output requirements:
<style> sections only.<!-- === SECTION NAME === -->.python scripts/extract-pptx.py <input.pptx> <output_dir> (needs pip install python-pptx)..frontend-slides/slide-previews/ if present.open [filename].html).tailwind.config block (colors/fonts), font <link> for typography, utility classes on any element.Ask: "Would you like to share this presentation? I can deploy it to a live URL (works on any device) or export it as a PDF." Options: Deploy to URL / Export to PDF / Both / No thanks. If declined, stop.
npx vercel --version; if missing, install Node.js first (brew install node or nodejs.org).npx vercel whoami; if not logged in, walk them through https://vercel.com/signup then vercel login, and wait for confirmation.bash scripts/deploy.sh <path> (accepts a folder with index.html or a single HTML file).Gotchas:
src="..." references but can miss CSS background-image paths — open the deployed URL and check every image.bash scripts/deploy.sh ./my-deck/) — more reliable than a single file.%20; if images break, rename with hyphens.bash scripts/export-pdf.sh <path-to-html> [output.pdf] (PDF lands next to the HTML if no output given).npx playwright install chromium; persistent failure is usually network/firewall.Gotchas:
.slide; externally-created HTML with other class names reports "0 slides found."--compact (renders at 1280×720, ~50–70% smaller).| File | Purpose | When to read |
|---|---|---|
| STYLE_PRESETS.md | 12 curated visual presets: Tailwind token configs, fonts, signature elements | Phase 2 |
| bold-template-pack/selection-index.json | Compact bold-template metadata for candidate selection | Phase 2 |
| bold-template-pack/templates/*/preview.md | Lightweight style cards for shortlisted title previews | Phase 2, after shortlisting |
| bold-template-pack/templates/*/design.md | Full design-system doc for the selected template only | Phase 3, after selection |
| layout-presets/README.md | Style-agnostic structural layouts + lp token contract | Phase 3 |
| layout-presets/*/*/layout.md | Geometry, limits, choreography for the chosen preset | Phase 3 |
| viewport-base.css | Mandatory stage-mechanics CSS — paste verbatim into every deck | Phase 3 |
| html-template.md | HTML architecture, Tailwind config pattern, JS features | Phase 3 |
| animation-patterns.md | Animation snippets (Tailwind + choreography CSS) by feeling | Phase 3 |
| scripts/extract-pptx.py | PPT content extraction | Phase 4 |
| scripts/deploy.sh | Vercel deployment | Phase 6 |
| scripts/export-pdf.sh | PDF export | Phase 6 |
README.md (opens in a new tab)STYLE_PRESETS.md (opens in a new tab)animation-patterns.md (opens in a new tab)bold-template-pack/README.md (opens in a new tab)bold-template-pack/deck-stage.js (opens in a new tab)bold-template-pack/selection-index.json (opens in a new tab)bold-template-pack/templates/8-bit-orbit/design.md (opens in a new tab)bold-template-pack/templates/8-bit-orbit/preview.md (opens in a new tab)bold-template-pack/templates/biennale-yellow/design.md (opens in a new tab)bold-template-pack/templates/biennale-yellow/preview.md (opens in a new tab)bold-template-pack/templates/block-frame/design.md (opens in a new tab)bold-template-pack/templates/block-frame/preview.md (opens in a new tab)bold-template-pack/templates/blue-professional/design.md (opens in a new tab)bold-template-pack/templates/blue-professional/preview.md (opens in a new tab)bold-template-pack/templates/bold-poster/design.md (opens in a new tab)bold-template-pack/templates/bold-poster/preview.md (opens in a new tab)bold-template-pack/templates/broadside/design.md (opens in a new tab)bold-template-pack/templates/broadside/preview.md (opens in a new tab)bold-template-pack/templates/capsule/design.md (opens in a new tab)bold-template-pack/templates/capsule/preview.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dreamid27/frontend-slides --plugin frontend-slidesOther plugins' skills for the same job