What problem does it solve?
This Skill solves the difficulty of creating high-performance, creative text layouts in the browser that require precise geometric control, such as text flowing around moving obstacles or kinetic typography, without the performance overhead of DOM reflows.
Core Features & Use Cases
- DOM-free Layout: Uses canvas-based measurement to calculate text flow, line breaks, and glyph positions at 60fps.
- Creative Primitives: Enables advanced effects like text-as-geometry games, particle-based typography, and editorial-style reflow around moving sprites.
- Use Case: Build a hero section where a paragraph of text dynamically parts and flows around a user-dragged orb or logo, maintaining perfect alignment and readability.
Quick Start
Use the pretext skill to build a creative demo that flows a paragraph of text around a moving circular obstacle.