Modes
A mode is the project surface you choose when you create a project. It decides the output format, the prompt stack the agent receives, the renderer the preview uses, and which export paths are available.
Modes compose: a design system applies to any structured surface, and a deck or document can be exported to PDF and PPTX through the same skill pipeline.
| Surface | kind | Output | Typical time | Renderer |
|---|---|---|---|---|
| Prototype | prototype | One screen or short flow (HTML/JSX) | 60–120s | html |
| Deck | deck | Multi-slide HTML presentation | 90–180s | deck-html |
| Document | document | Paged HTML on a paper canvas | 60–120s | html |
| Motion | motion | HTML+CSS composition → MP4 | 90–240s | motion-html |
| Image | image | .png / .jpg / .webp via the backend | 20–90s | file viewer |
| Video | video | .mp4 via the backend | 1–5 min | file viewer |
| Audio | audio | Speech (TTS) audio file | 10–40s | file viewer |
| Template | template | Pre-built artifact, content personalised | 20–40s | html / deck-html |
| Other | other | Freeform artifact | varies | html |
The kind column is the value stored in project metadata and the value tfdesign run --kind accepts.
Prototype
A single high-fidelity screen or a short multi-screen flow, rendered as HTML or JSX inside a sandboxed iframe. This is the default for most design work.
Use when
- You need a landing page, dashboard, pricing page, or mobile screen.
- You want a self-contained artifact you can iterate on file-by-file.
- You are exploring visual directions before committing to a deck.
Flow — discovery form → direction picker (unless a design system is bound) → generation → 5-dimensional self-critique → emit.
Export — HTML, PDF, ZIP, Markdown; PPTX through pptx-svg-export when the artifact is slide-shaped.
Deck
A multi-slide HTML presentation with keyboard, scroll, and touch navigation. Deck skills add a deck-framework directive: a fixed slide scaffold, print stylesheet, and nav/counter chrome the agent copies rather than re-derives.
Use when
- You need a pitch deck, status update, or keynote.
- You want slide-by-slide navigation plus PDF/PPTX export.
Deck-only extra round — after the direction pick, deck projects generate five candidate first slides as separate files and emit a deck-design form. You pick one; the agent builds the full deck from that choice. This is deliberate: a deck's typography and hero treatment propagate to every slide, so locking them on slide 1 is cheaper than re-rolling a finished deck.
Export — PDF (one page per slide via the deck print stylesheet) and PPTX (native, editable, via the SVG pipeline).
Document
A single-page deck on a paper-sized canvas: A4, A3, Letter, or Legal, portrait or landscape. Pagination, page breaks, and running headers behave like a word processor rather than a browser print.
Use when
- You need a spec, report, proposal, or runbook that prints correctly.
- The deliverable is read on paper or as a PDF, not scrolled on screen.
Page size lives in project metadata (canvasWidth / canvasHeight) and can be changed after creation from the page-size dropdown. Word-style editing is available in the document editor (bold/italic, headings, lists, page breaks).
Motion
Animated slides authored as plain HTML + CSS and rendered to MP4. This is motion graphics — code, not generated footage — so it stays fully editable: change one number or retime a scene and the rest is untouched.
Use when
- You want an explainer, animated chart, kinetic type, or brand-first presentation.
- The user will want to tweak the result later.
- You need a deterministic, repeatable render.
Do not use a diffusion video model for this. Use the video surface when you want invented footage — see Video.
The composition declares its own render contract on <html>:
<html lang="en" data-od-duration="6" data-od-fps="30" data-od-aspect="16:9">
| Attribute | Meaning |
|---|---|
data-od-duration | Composition length in seconds (max 120) |
data-od-fps | Frames per second (offer 24 / 30 / 60; any 1–120 accepted) |
data-od-aspect | 16:9 (1920×1080), 9:16, 1:1, 4:3 |
Scenes declare their own windows with data-od-start / data-od-end. Media layers (video, audio, images) are declared with data attributes and composited by ffmpeg — they never go through the browser.
Seekable timeline is the load-bearing idea: the renderer writes one CSS custom property (--od-t) per frame and every animation re-evaluates through a negative animation-delay. Compositions therefore contain zero animation JavaScript while still rendering frame-exact and repeatably.
See Motion for the skeleton, layer contract, and rendering requirements.
Image, Video, Audio
Media surfaces do not emit <artifact> HTML. The agent writes a prompt and calls the dispatcher, which writes real bytes into the project.
| Surface | Models | Notes |
|---|---|---|
| Image | 5 registered | Aspect ratios, reference image, prompt influence, GIF loop |
| Video | 5 registered | Per-model duration ceilings; 5–6s single clips, longer via sequence |
| Audio | Speech only | TTS over your prompt text; music/SFX have no backend endpoint |
See Media Generation.
Template
A saved project snapshot the agent personalises. The visual structure is fixed; the agent only rewrites content.
Use when
- You need something in under a minute.
- The output shape is settled and only copy changes.
Templates are created from existing projects. The template tab in the surface picker offers user-saved templates only — there is no built-in fallback, which is the point: a template is your artifact.
Other
A freeform canvas for artifacts that do not fit the structured surfaces. No canvas metadata, no specialised renderer — just HTML the agent writes.
Mode composition
Design system (bind once)
│
├── Prototype ──► PDF · PPTX · HTML · ZIP · Markdown
├── Deck ──────► PDF · PPTX (native)
├── Document ──► PDF · DOCX
├── Motion ────► MP4
└── Template ──► inherits the active design system
- Bind a design system first to establish visual rules. Once bound, the direction picker is skipped — the system is the direction.
- Then pick the surface. Every subsequent run reads the design system as a system-prompt layer and as a physical
DESIGN.md. - Templates inherit it too. Personalising a template still applies the active system.
Choosing a surface
| If you need… | Use |
|---|---|
| A screen or UI mockup | Prototype |
| A multi-slide presentation | Deck |
| A printable report or spec | Document |
| Animation you can retime later | Motion |
| A still image | Image |
| Invented footage | Video |
| Narration or a voiceover | Audio (speech) |
| Something in under a minute | Template |
| Brand rules to reuse | Design system, then any surface |