What problem does it solve?
Pretext solves the problem of creating precise, visually rich text layouts in the browser without relying on DOM reflow or guesswork. It is ideal when text must wrap around moving shapes, become part of the composition, or respond live to geometry.
Core Features & Use Cases
- Variable-width text flow: Lay out paragraphs around circles, cubes, logos, and other moving obstacles with row-by-row width changes.
- Text-as-geometry visuals: Turn measured lines and graphemes into collision-aware game elements, ASCII structures, or kinetic type.
- Single-file browser demos: Build self-contained HTML experiences with canvas rendering, interactive motion, and intentional typography.
- Use case: Create an editorial-style page where a paragraph parts around a draggable orb and then morphs into a more sculptural layout on interaction.
Quick Start
Use the pretext skill to build a single-file browser demo where text reflows around a moving obstacle and the composition feels polished on first load.