Skip to content
frago-view-content-generate-tips-html logo

HTML/reveal.js Content Generation Guide

frago-view-content-generate-tips-html

HTML/reveal.js content generation guide. Use this skill when you need to create HTML presentations that can be previewed via `frago view`. Covers reveal.js advanced design, CSS techniques, and multi-page collaboration workflow.

SKILL.md

Full skill instructions

HTML/​reveal.js Content Generation Guide

Create professionally designed HTML presentations and preview them via frago view.

Quick Start

Basic Structure

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Presentation Title</​title>
</​head>
<body>
    <div class="reveal">
        <div class="slides">
            <section>Slide 1</​section>
            <section>Slide 2</​section>
        </​div>
    </​div>
</​body>
</​html>

Note: frago view automatically injects reveal.js library, no manual inclusion needed.

Trigger Condition

HTML file automatically enters presentation mode when it contains class="reveal" or class="slides".

Preview Commands

frago view slides.html              # Default theme
frago view slides.html --theme dracula  # Specify theme
frago view slides.html --fullscreen     # Fullscreen mode

Available Themes

ThemeStyleUse Case
blackDark background (default)Technical presentations
whiteLight backgroundFormal reports
draculaDracula color schemeDeveloper presentations
moonDark blueNight mode
nightDark blue gradientTech style
serifSerif fontAcademic presentations
solarizedSolarized color schemeSoft style
bloodDark redEmphasis style
beigeBeigeWarm style
skyBlueFresh style
leagueGray gradientBusiness style
simpleSimple whiteMinimalist style

Slide Organization

Horizontal Navigation

Each <section> is one slide:

<section>Slide 1</​section>
<section>Slide 2</​section>
<section>Slide 3</​section>

Vertical Navigation (Nested)

Nested <section> creates sub-slides within a section:

<section>
    <section>Topic A - Overview</​section>
    <section>Topic A - Detail 1</​section>
    <section>Topic A - Detail 2</​section>
</​section>
<section>
    <section>Topic B - Overview</​section>
</​section>

Common Elements

Headings and Text

<section>
    <h1>Main Heading</​h1>
    <h2>Subtitle</​h2>
    <p>Body paragraph</​p>
</​section>

Lists

<section>
    <h2>Key Points</​h2>
    <ul>
        <li>Point 1</​li>
        <li>Point 2</​li>
        <li>Point 3</​li>
    </​ul>
</​section>

Code Blocks

<section>
    <h2>Code Example</​h2>
    <pre><code class="language-python">
def hello():
    print("Hello, World!")
    </​code></​pre>
</​section>

Images

<section>
    <h2>Architecture Diagram</​h2>
    <img src="./​images/​architecture.png" alt="Architecture diagram">
</​section>

Fragment Animations

class="fragment" makes elements appear progressively:

<p class="fragment">First step appears</​p>
<p class="fragment">Second step appears</​p>
<p class="fragment fade-up">Slide up and fade in</​p>
<p class="fragment highlight-red">Highlight in red</​p>

Animation Types:

TypeEffect
fade-inFade in
fade-outFade out
fade-upSlide up and fade in
fade-downSlide down and fade in
fade-leftSlide left and fade in
fade-rightSlide right and fade in
highlight-redHighlight in red
highlight-greenHighlight in green
highlight-blueHighlight in blue
growGrow
shrinkShrink

Keyboard Shortcuts

ShortcutFunction
→ / SpaceNext slide
←Previous slide
↑ / ↓Vertical navigation
FFullscreen
EscExit fullscreen / Overview
OSlide overview
SSpeaker notes

Multi-Page PPT Collaboration Workflow

Phase 1: Planning

Confirm with user:

  1. Presentation theme and target audience
  2. Section outline
  3. Type and core information for each slide

Phase 2: Skeleton Generation

Create basic structure and output directory:

outputs/​presentation/
├── slides.html       # Main file
└── images/           # Images directory

Phase 3: Slide-by-Slide Design

Iterative workflow:

  1. User provides core content for current slide
  2. Agent generates HTML + CSS
  3. User previews: frago view slides.html
  4. User provides feedback for adjustments
  5. Move to next slide when satisfied

Phase 4: Overall Optimization

  1. Check slide transitions
  2. Unify visual style
  3. Add fragment animations
  4. Final preview confirmation

Template Library

TemplatePurposePath
Basic skeletonQuick starttemplates/​basic-structure.html
Cover slideOpeningtemplates/​cover-slide.html
Content slideBody contenttemplates/​content-slide.html
Comparison slideComparisontemplates/​comparison-slide.html
Timeline slideTimelinetemplates/​timeline-slide.html
Closing slideEndingtemplates/​closing-slide.html

Design Pitfalls

PitfallReasonAlternative
Too much textSlides are not documentsExtract keywords
External CDNNot available offlineLocal resources
iframe embeddingSecurity restrictionsScreenshots
Complex JavaScriptpywebview limitationsCSS implementation

References

More Design skills

brandkit logo
Design

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

179.7K 114.2K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View