Frontend Slides
Create zero-dependency, animation-rich HTML presentations that run entirely in the browser.
Inspired by the visual exploration approach showcased in work by zarazhangrui (credit: @zarazhangrui).
When to Activate
- Creating a talk deck, pitch deck, workshop deck, or internal presentation
- Converting
.ppt or .pptx slides into an HTML presentation
- Improving an existing HTML presentation's layout, motion, or typography
- Exploring presentation styles with a user who does not know their design preference yet
Non-Negotiables
- Zero dependencies: default to one self-contained HTML file with inline CSS and JS.
- Viewport fit is mandatory: every slide must fit inside one viewport with no internal scrolling.
- Show, don't tell: use visual previews instead of abstract style questionnaires.
- Distinctive design: avoid generic purple-gradient, Inter-on-white, template-looking decks.
- Production quality: keep code commented, accessible, responsive, and performant.
Before generating, read STYLE_PRESETS.md for the viewport-safe CSS base, density limits, preset catalog, and CSS gotchas.
Workflow
1. Detect Mode
Choose one path:
- New presentation: user has a topic, notes, or full draft
- PPT conversion: user has
.ppt or .pptx
- Enhancement: user already has HTML slides and wants improvements
2. Discover Content
Ask only the minimum needed:
- purpose: pitch, teaching, conference talk, internal update
- length: short (5-10), medium (10-20), long (20+)
- content state: finished copy, rough notes, topic only
If the user has content, ask them to paste it before styling.
3. Discover Style
Default to visual exploration.
If the user already knows the desired preset, skip previews and use it directly.
Otherwise:
- Ask what feeling the deck should create: impressed, energized, focused, inspired.
- Generate 3 single-slide preview files in
.ecc-design/slide-previews/.
- Each preview must be self-contained, show typography/color/motion clearly, and stay under roughly 100 lines of slide content.
- Ask the user which preview to keep or what elements to mix.
Use the preset guide in STYLE_PRESETS.md when mapping mood to style.
4. Build the Presentation
Output either:
presentation.html
[presentation-name].html
Use an assets/ folder only when the deck contains extracted or user-supplied images.
Required structure:
- semantic slide sections
- a viewport-safe CSS base from
STYLE_PRESETS.md
- CSS custom properties for theme values
- a presentation controller class for keyboard, wheel, and touch navigation
- Intersection Observer for reveal animations
- reduced-motion support
5. Enforce Viewport Fit
Treat this as a hard gate.
Rules:
- every
.slide must use height: 100vh; height: 100dvh; overflow: hidden;
- all type and spacing must scale with
clamp()
- when content does not fit, split into multiple slides
- never solve overflow by shrinking text below readable sizes
- never allow scrollbars inside a slide
Use the density limits and mandatory CSS block in STYLE_PRESETS.md.
6. Validate
Check the finished deck at these sizes:
- 1920x1080
- 1280x720
- 768x1024
- 375x667
- 667x375
If browser automation is available, use it to verify no slide overflows and that keyboard navigation works.
7. Deliver
At handoff:
- delete temporary preview files unless the user wants to keep them
- open the deck with the platform-appropriate opener when useful
- summarize file path, preset used, slide count, and easy theme customization points
Use the correct opener for the current OS:
- macOS:
open file.html
- Linux:
xdg-open file.html
- Windows:
start "" file.html
PPT / PPTX Conversion
For PowerPoint conversion:
- Prefer
python3 with python-pptx to extract text, images, and notes.
- If
python-pptx is unavailable, ask whether to install it or fall back to a manual/export-based workflow.
- Preserve slide order, speaker notes, and extracted assets.
- After extraction, run the same style-selection workflow as a new presentation.
Keep conversion cross-platform. Do not rely on macOS-only tools when Python can do the job.
Implementation Requirements
HTML / CSS
- Use inline CSS and JS unless the user explicitly wants a multi-file project.
- Fonts may come from Google Fonts or Fontshare.
- Prefer atmospheric backgrounds, strong type hierarchy, and a clear visual direction.
- Use abstract shapes, gradients, grids, noise, and geometry rather than illustrations.
JavaScript
Include:
- keyboard navigation
- touch / swipe navigation
- mouse wheel navigation
- progress indicator or slide index
- reveal-on-enter animation triggers
Accessibility
- use semantic structure (
main, section, nav)
- keep contrast readable
- support keyboard-only navigation
- respect
prefers-reduced-motion
Content Density Limits
Use these maxima unless the user explicitly asks for denser slides and readability still holds:
| Slide type |
Limit |
| Title |
1 heading + 1 subtitle + optional tagline |
| Content |
1 heading + 4-6 bullets or 2 short paragraphs |
| Feature grid |
6 cards max |
| Code |
8-10 lines max |
| Quote |
1 quote + attribution |
| Image |
1 image constrained by viewport |
Anti-Patterns
- generic startup gradients with no visual identity
- system-font decks unless intentionally editorial
- long bullet walls
- code blocks that need scrolling
- fixed-height content boxes that break on short screens
- invalid negated CSS functions like
-clamp(...)
Related ECC Skills
frontend-patterns for component and interaction patterns around the deck
liquid-glass-design when a presentation intentionally borrows Apple glass aesthetics
e2e-testing if you need automated browser verification for the final deck
Deliverable Checklist
- presentation runs from a local file in a browser
- every slide fits the viewport without scrolling
- style is distinctive and intentional
- animation is meaningful, not noisy
- reduced motion is respected
- file paths and customization points are explained at handoff
1---2name: frontend-slides3description: Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.4---5
6# Frontend Slides
7
8Create zero-dependency, animation-rich HTML presentations that run entirely in the browser.
9
10Inspired by the visual exploration approach showcased in work by zarazhangrui (credit: @zarazhangrui).
11
12## When to Activate
13
14- Creating a talk deck, pitch deck, workshop deck, or internal presentation
15- Converting `.ppt` or `.pptx` slides into an HTML presentation
16- Improving an existing HTML presentation's layout, motion, or typography
17- Exploring presentation styles with a user who does not know their design preference yet
18
19## Non-Negotiables
20
211. **Zero dependencies**: default to one self-contained HTML file with inline CSS and JS.
222. **Viewport fit is mandatory**: every slide must fit inside one viewport with no internal scrolling.
233. **Show, don't tell**: use visual previews instead of abstract style questionnaires.
244. **Distinctive design**: avoid generic purple-gradient, Inter-on-white, template-looking decks.
255. **Production quality**: keep code commented, accessible, responsive, and performant.
26
27Before generating, read `STYLE_PRESETS.md` for the viewport-safe CSS base, density limits, preset catalog, and CSS gotchas.
28
29## Workflow
30
31### 1. Detect Mode
32
33Choose one path:
34- **New presentation**: user has a topic, notes, or full draft
35- **PPT conversion**: user has `.ppt` or `.pptx`
36- **Enhancement**: user already has HTML slides and wants improvements
37
38### 2. Discover Content
39
40Ask only the minimum needed:
41- purpose: pitch, teaching, conference talk, internal update
42- length: short (5-10), medium (10-20), long (20+)
43- content state: finished copy, rough notes, topic only
44
45If the user has content, ask them to paste it before styling.
46
47### 3. Discover Style
48
49Default to visual exploration.
50
51If the user already knows the desired preset, skip previews and use it directly.
52
53Otherwise:
541. Ask what feeling the deck should create: impressed, energized, focused, inspired.
552. Generate **3 single-slide preview files** in `.ecc-design/slide-previews/`.
563. Each preview must be self-contained, show typography/color/motion clearly, and stay under roughly 100 lines of slide content.
574. Ask the user which preview to keep or what elements to mix.
58
59Use the preset guide in `STYLE_PRESETS.md` when mapping mood to style.
60
61### 4. Build the Presentation
62
63Output either:
64- `presentation.html`
65- `[presentation-name].html`
66
67Use an `assets/` folder only when the deck contains extracted or user-supplied images.
68
69Required structure:
70- semantic slide sections
71- a viewport-safe CSS base from `STYLE_PRESETS.md`
72- CSS custom properties for theme values
73- a presentation controller class for keyboard, wheel, and touch navigation
74- Intersection Observer for reveal animations
75- reduced-motion support
76
77### 5. Enforce Viewport Fit
78
79Treat this as a hard gate.
80
81Rules:
82- every `.slide` must use `height: 100vh; height: 100dvh; overflow: hidden;`
83- all type and spacing must scale with `clamp()`
84- when content does not fit, split into multiple slides
85- never solve overflow by shrinking text below readable sizes
86- never allow scrollbars inside a slide
87
88Use the density limits and mandatory CSS block in `STYLE_PRESETS.md`.
89
90### 6. Validate
91
92Check the finished deck at these sizes:
93- 1920x1080
94- 1280x720
95- 768x1024
96- 375x667
97- 667x375
98
99If browser automation is available, use it to verify no slide overflows and that keyboard navigation works.
100
101### 7. Deliver
102
103At handoff:
104- delete temporary preview files unless the user wants to keep them
105- open the deck with the platform-appropriate opener when useful
106- summarize file path, preset used, slide count, and easy theme customization points
107
108Use the correct opener for the current OS:
109- macOS: `open file.html`
110- Linux: `xdg-open file.html`
111- Windows: `start "" file.html`
112
113## PPT / PPTX Conversion
114
115For PowerPoint conversion:
1161. Prefer `python3` with `python-pptx` to extract text, images, and notes.
1172. If `python-pptx` is unavailable, ask whether to install it or fall back to a manual/export-based workflow.
1183. Preserve slide order, speaker notes, and extracted assets.
1194. After extraction, run the same style-selection workflow as a new presentation.
120
121Keep conversion cross-platform. Do not rely on macOS-only tools when Python can do the job.
122
123## Implementation Requirements
124
125### HTML / CSS
126
127- Use inline CSS and JS unless the user explicitly wants a multi-file project.
128- Fonts may come from Google Fonts or Fontshare.
129- Prefer atmospheric backgrounds, strong type hierarchy, and a clear visual direction.
130- Use abstract shapes, gradients, grids, noise, and geometry rather than illustrations.
131
132### JavaScript
133
134Include:
135- keyboard navigation
136- touch / swipe navigation
137- mouse wheel navigation
138- progress indicator or slide index
139- reveal-on-enter animation triggers
140
141### Accessibility
142
143- use semantic structure (`main`, `section`, `nav`)
144- keep contrast readable
145- support keyboard-only navigation
146- respect `prefers-reduced-motion`
147
148## Content Density Limits
149
150Use these maxima unless the user explicitly asks for denser slides and readability still holds:
151
152| Slide type | Limit |
153|------------|-------|
154| Title | 1 heading + 1 subtitle + optional tagline |
155| Content | 1 heading + 4-6 bullets or 2 short paragraphs |
156| Feature grid | 6 cards max |
157| Code | 8-10 lines max |
158| Quote | 1 quote + attribution |
159| Image | 1 image constrained by viewport |
160
161## Anti-Patterns
162
163- generic startup gradients with no visual identity
164- system-font decks unless intentionally editorial
165- long bullet walls
166- code blocks that need scrolling
167- fixed-height content boxes that break on short screens
168- invalid negated CSS functions like `-clamp(...)`
169
170## Related ECC Skills
171
172- `frontend-patterns` for component and interaction patterns around the deck
173- `liquid-glass-design` when a presentation intentionally borrows Apple glass aesthetics
174- `e2e-testing` if you need automated browser verification for the final deck
175
176## Deliverable Checklist
177
178- presentation runs from a local file in a browser
179- every slide fits the viewport without scrolling
180- style is distinctive and intentional
181- animation is meaningful, not noisy
182- reduced motion is respected
183- file paths and customization points are explained at handoff