Skip to main content

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.

SurfacekindOutputTypical timeRenderer
PrototypeprototypeOne screen or short flow (HTML/JSX)60–120shtml
DeckdeckMulti-slide HTML presentation90–180sdeck-html
DocumentdocumentPaged HTML on a paper canvas60–120shtml
MotionmotionHTML+CSS composition → MP490–240smotion-html
Imageimage.png / .jpg / .webp via the backend20–90sfile viewer
Videovideo.mp4 via the backend1–5 minfile viewer
AudioaudioSpeech (TTS) audio file10–40sfile viewer
TemplatetemplatePre-built artifact, content personalised20–40shtml / deck-html
OtherotherFreeform artifactvarieshtml

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">
AttributeMeaning
data-od-durationComposition length in seconds (max 120)
data-od-fpsFrames per second (offer 24 / 30 / 60; any 1–120 accepted)
data-od-aspect16: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.

SurfaceModelsNotes
Image5 registeredAspect ratios, reference image, prompt influence, GIF loop
Video5 registeredPer-model duration ceilings; 5–6s single clips, longer via sequence
AudioSpeech onlyTTS 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
  1. Bind a design system first to establish visual rules. Once bound, the direction picker is skipped — the system is the direction.
  2. Then pick the surface. Every subsequent run reads the design system as a system-prompt layer and as a physical DESIGN.md.
  3. Templates inherit it too. Personalising a template still applies the active system.

Choosing a surface​

If you need…Use
A screen or UI mockupPrototype
A multi-slide presentationDeck
A printable report or specDocument
Animation you can retime laterMotion
A still imageImage
Invented footageVideo
Narration or a voiceoverAudio (speech)
Something in under a minuteTemplate
Brand rules to reuseDesign system, then any surface