Slides kit (draft)

The working kit behind the slides brief. Navigation is adapted from the frontend-slides skill (MIT, © 2025 Zara Zhang); the design layer (themes, layouts, size floors) is ours.

FileWhat it does
slides.cssSlide layouts and sizes (including .s--plate, a picture on its own with its caption, and .gallery, two or three in a row), and the calm look trial (.look-calm). Every size is in --u, one pixel of the 1920 × 1080 artboard.
deck.cssThe page around the slides: deck, read and overview views; print to PDF.
deck.jsThe engine: stage sizing, navigation, contents rail, views, keys.
fonts/Restora web fonts (licensed; in git).
themes/sor.cssThe Seeds of Renaissance theme (the "sand" look, ../look/analysis.md). Load after deck.css and put sor on the deck: <main class="deck sor">, with data-logo pointing at seeds-mark-black-128.png. sor sor--night sets a deck on night. poly on a cover or section sets its title in Polyamine (three words or fewer). A deck may set --accent for a series colour.

Make a single self-contained file with python3 ../build.py <deck>/index.html out.html.

A deck is one HTML page: a <main class="deck"> of <section class="s s--<layout>"> slides, each with its speaker note in <aside class="notes">. A slide with data-section="…" starts a section. See ../trials/collective-action-s1/index.html.

Keys: ← → ↑ ↓, space, Page Up/Down (clicker), Home/End; O overview; R read view (slides with notes); N speaker note; F full screen; A cycles the ratio; L toggles the calm look (trial); ? shows the keys. The wheel or a swipe moves one slide. The slide number is in the URL (#12).

Ratio: ?ratio=16:9 (or 16:10, 4:3) shows an exact frame with bars; the default, fill, fills the window and sizes everything from its shorter side. Use 16:9 when recording for YouTube.

PDF: print from Chrome (one slide a page at 1920 × 1080), or headless:

"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --no-pdf-header-footer --virtual-time-budget=6000 --print-to-pdf=deck.pdf "http://localhost:8790/path/to/deck.html"