A media plan from one source
Goal: from one folder of Markdown files and one data table, produce every support of a campaign
— vertical cards for stories, a square carousel, a short film in two ratios and two languages, an A3
poster per partner and a leaderboard banner — and check that each file is listed in exports.json.
A media plan usually means the same figures redrawn in five tools, each copy drifting from the
others. Récit reads the figures once (data: in the front matter), draws them with the same
directives (:::kpi, ::chart, ::map, ::qr) in every format, and exports each support at the
size its channel expects.
The complete working files for this guide live in examples/: story.md, film.md and
film.fr.md, carousel.mdx, poster.md, banner.md, the data/ folder and the logos/ folder.
The blocks below are excerpts of those files, shortened to what each step needs. Its scenario is
also an end-to-end test, which runs each step below.
1. Share the data and the signature
Put the figures in one table next to the stories, and point each story to it with data: in its
front matter:
YAML
Put what every support shares in recit.: the theme colors, the signature (brand:) and
the defaults of tracked links (utm:).
recit.config.ts
The signature is drawn on every card, slide, page and film shot; without brand:, nothing is drawn
and the layout leaves no gap. A story overrides it in its front matter, and brand: false removes
it from one story. See Variants and signature.
2. Write the vertical cards
story.md is a web story in 9:16, one card per scene. Its front matter names the channel and the
text of the post, which travel with every exported file:
story.md
A web story also takes aspectRatio: or 1:1 for a feed post. ::qr draws a vector code, and
adds the utm_* parameters of the configuration to its address (utm_medium is qr unless you set
it); utm="none" keeps the address as written.
3. Write the square carousel and the film
carousel.mdx is a deck in aspectRatio:, with the same :::kpi and ::chart as the cards.
film.md is a film (format:): a ::chart scene becomes an animated still, a type=stat
scene a large figure, and the text under :::notes its spoken line and caption. film.fr.md
completes it in French scene by scene, as a web story's languages do: it repeats only what changes.
copy: takes one text per language:
YAML
4. Write the poster and the banner
A poster and a banner are not formats of their own: they are print layouts of a report,
print. or print..
poster.md prints on A3 with 3 mm of bleed, and declines itself per partner from
data/ (variants:), with the partner's logo and name in the signature:
poster.md
A tracked link in the text is written :link[Explore the kit]{href=:
it takes the same utm: defaults as ::qr, without a default utm_medium, and utm="none" keeps
the address as written. On a poster, the ::qr code goes to the page footer, with a short caption.
banner.md is a short report in print.: its title, its first :value and its first
link become the banner's headline, figure and call to action.
5. Validate everything
Bash
recit validate checks every data: reference, every {{…}} placeholder of every variant, and the
text that would fall outside a preset's safe zone or not fit a banner. Add --strict to turn these
warnings into errors before a release.
6. Export each support
Each command writes its files and an exports.json in its output folder.
Bash
A preset whose ratio does not match the story is refused with its reason, never cropped: an
instagram- (4:5) on a 9:16 story, or an og-image (1200×628) on a 728×90 banner. Change
the story's aspectRatio, or pick a preset of its ratio.
7. Show the kit on a site
A site built with @recit/site publishes the exports of its stories (publish.,
or recit export --), and an MDX page shows them with <MediaKit>: a preview, one
card per file with its channel, its text to copy and its download link, grouped by variant. See
A media kit.
Check
out/lists twelve PNG at 1080×1920, each withstory/ exports.json preset,channelandcopy.out/has six square pages.carousel- pdf/ carousel.pdf out/film/holdsfilm.,9x16.mp4 film.1x1.mp4,film.andfr. 9x16.mp4 film..fr. 1x1.mp4 out/posters/holds oneposter.per row of<id>.pdf partners.csv, each naming its partner.out/is 728×90.banner/ leaderboard/ banner.png