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/.
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:
slides.md
Each --- { … } line starts a new scene (id names it, layout chooses how the slide is
arranged):
- Slide 1 (
cover) — centered title slide with the# Lorem Ipsumheading and a subtitle. - Slide 2 (
grid) —# Sed do eiusmodabove two:::cardblocks laid out in two columns (cols: 2). - Slide 3 (
quote) — a centered block quotation.
2. Run the deck
Start the local development server on slides.md:
Bash
slides.md is the default file of recit dev. By default, recit dev listens on
http:// (pass -p, -- to pick another port, or --open to open your
browser automatically).
Open http:// 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, orPageDownmoves to the next step or slide — pressArrowRightonce more to reach the quotation on slide 3.ArrowLeft(←),ArrowUp(↑), orPageUpmoves back to the previous step or slide, andHome/Endjumps straight to the first or last slide.Oopens the thumbnail overview of all slides,Sopens the presenter console in a second window,Fenters fullscreen,Tswitches 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:
slides.md
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:
Bash
By default, recit build writes into ./dist (pass -o, -- to choose another output
directory, or --no-strict to keep building past density or data errors):
dist/— the entry page of the deck;index.html dist/assets/— the compiledmain.js,main.css, fonts, and any local media the slides reference.
When the command finishes, the terminal prints ✅ Built 3 slides in …/. The folder needs no
Node.js server at runtime: any static file host can serve it as is.
Check
- Running
recit dev slides.mdserves the deck onhttp://(or thelocalhost: 3000 --portyou chose) and shows the first slide'sLorem Ipsumheading. - Pressing
ArrowRightmoves to slide 2 and shows theSed do eiusmodheading with its two cards. - Saving
# Lorem Ipsum, editedinslides.mdupdates the heading on slide 1 in the open page without a browser reload. - Running
recit build slides.mdexits with0and writes anindex.htmlfile (alongsideassets/) 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.mdinto 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.