From 2c030074831ac05af44439a03819af53fb23161a Mon Sep 17 00:00:00 2001 From: Mimmo Lahia Date: Wed, 16 Sep 2026 11:07:58 +1000 Subject: [PATCH] Add preview:cards - render the per-card loop + poster GUIDE.md asks for GUIDE.md says a card is done when it 'lints clean, previews correctly in the Studio, and has a rendered preview MP4 + poster', and that 'the preview script is added once the first real card exists (so it's tested against something real)'. Both styles have real cards; the script was never added. npm run preview:cards -- 02-kallaway npm run preview:cards -- 02-kallaway --card kallaway.t1.section.ascend npm run preview:cards -- 01-vox-explainer --seconds 3 Three things it has to work around, all noted in the file: - The CLI renders a project directory, not a loose file, so each card is copied into a scratch project under tmp/ with its tokens.css beside it. - tier2 cards are transparent overlays and would preview as black, so they render over a neutral backdrop that exists only in the preview. - MP4 loops go to renders/previews/