Skip to content

Write and present your first deck

Goal: create a three-slide Markdown deck, run it locally with recit dev, move between slides with the keyboard, edit a slide live without reloading the page, and build a static site into dist/ with recit build.

The complete working file for this guide lives in examples/deck-starter/slides.md.

1. Create the deck

Récit is used under licence and is not on npm: install the recit command line from the archives of the private channel, as the Quickstart shows. Then, in that folder, write slides.md, either with npx recit init slides.md or by copying the file below:

Markdownslides.md
--- title: Starter description: "The minimal deck: three slides of plain Markdown, no configuration." lang: en --- --- { "layout": "center", "id": "cover" } # Lorem Ipsum ### Dolor sit amet, consectetur adipiscing elit --- { "layout": "grid", "cols": 2, "id": "grid" } # Sed do eiusmod :::card ### Tempor incididunt - Ut labore et dolore - Magna aliqua ::: :::card ### Ut enim ad minim - Quis nostrud - Exercitation ullamco ::: --- { "layout": "center", "id": "quote" } > "Lorem ipsum dolor sit amet, consectetur adipiscing elit." > > — Marcus Tullius

Each --- { … } line starts a new scene (id names it, layout chooses how the slide is arranged):

  1. Slide 1 (cover) — centered title slide with the # Lorem Ipsum heading and a subtitle.
  2. Slide 2 (grid) — # Sed do eiusmod above two :::card blocks laid out in two columns (cols: 2).
  3. Slide 3 (quote) — a centered block quotation.

2. Run the deck

Start the local development server on slides.md:

TerminalBash
npx recit dev slides.md

slides.md is the default file of recit dev. By default, recit dev listens on http://localhost:3000 (pass -p, --port <port> to pick another port, or --open to open your browser automatically).

Open http://localhost:3000 in your browser: the first slide (Lorem Ipsum) is displayed.

3. Move between slides with the keyboard

Click the deck if needed so the page has focus, then press ArrowRight (→): the deck advances from slide 1 (Lorem Ipsum) to slide 2 (Sed do eiusmod, with its two cards).

  • ArrowRight (→), ArrowDown (↓), Space, or PageDown moves to the next step or slide — press ArrowRight once more to reach the quotation on slide 3.
  • ArrowLeft (←), ArrowUp (↑), or PageUp moves back to the previous step or slide, and Home / End jumps straight to the first or last slide.
  • O opens the thumbnail overview of all slides, S opens the presenter console in a second window, F enters fullscreen, T switches between light and dark color modes, and ? lists every shortcut (see Presenting).

Return to slide 1 (Home, or ArrowLeft back to Lorem Ipsum) before the next step.

4. Edit slides.md and save

Leave recit dev slides.md running, open slides.md in your editor, change the first heading on slide 1, and save:

Markdownslides.md
--- { "layout": "center", "id": "cover" } # Lorem Ipsum, edited ### Dolor sit amet, consectetur adipiscing elit

Récit watches slides.md, recompiles the story, and pushes the update over its live-reload stream: the slide updates in place to Lorem Ipsum, edited without reloading the page, and you stay on the current slide. If a slide exceeds the density budget or misses image alt text, recit dev prints the diagnostic in the terminal with its file and line.

5. Build the deck

Stop the dev server (Ctrl+C) and build the deck into a static site:

TerminalBash
npx recit build slides.md

By default, recit build writes into ./dist (pass -o, --output <dir> to choose another output directory, or --no-strict to keep building past density or data errors):

  • dist/index.html — the entry page of the deck;
  • dist/assets/ — the compiled main.js, main.css, fonts, and any local media the slides reference.

When the command finishes, the terminal prints ✅ Built 3 slides in …/dist. The folder needs no Node.js server at runtime: any static file host can serve it as is.

Check

  1. Running recit dev slides.md serves the deck on http://localhost:3000 (or the --port you chose) and shows the first slide's Lorem Ipsum heading.
  2. Pressing ArrowRight moves to slide 2 and shows the Sed do eiusmod heading with its two cards.
  3. Saving # Lorem Ipsum, edited in slides.md updates the heading on slide 1 in the open page without a browser reload.
  4. Running recit build slides.md exits with 0 and writes an index.html file (alongside assets/) inside the output folder (dist/ by default).

See also

  • Quickstart — installing the command line from the archives of the private channel, and recit init.
  • Tutorial — a guided tour through slide syntax, layouts, themes, MDX components, presenting, and deployment.
  • Exporting — turn the same slides.md into a single self-contained HTML file, a PDF, slide images, or a PowerPoint file.
  • Deploy on Vercel — publish the dist/ folder online from Git or with the Vercel CLI.