pretext

Generate DOM-free kinetic typography with canvas-based text layout.

7|1|Updated Jul 26, 2026
One-click install
npx skills add https://github.com/paxlabs-inc/ion-agent --skill pretext-paxlabs-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pretext
Source: https://github.com/paxlabs-inc/ion-agent/tree/main/skills/creative/pretext
Command: npx skills add https://github.com/paxlabs-inc/ion-agent --skill pretext-paxlabs-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

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.

Frequently Asked Questions about pretext

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create kinetic typography that flows around moving objects without DOM reflows?

You can create dynamic text reflow without DOM overhead by using canvas-based measurement to calculate text flow and glyph positions directly. This DOM-free approach computes line breaks and precise grapheme segmentation at 60fps, allowing paragraphs to dynamically part and flow around moving geometric obstacles while maintaining perfect alignment.

What is DOM-free text layout and how does it handle real-time text reflow?

DOM-free text layout replaces standard HTML rendering with canvas-based measurement to calculate line breaks and glyph positions directly. This mechanism enables real-time text reflow around dynamic geometry by avoiding browser layout recalculations, ensuring high-performance 60fps rendering for complex editorial layouts and generative art.

Can I build generative art with particle-based typography using canvas rendering?

Yes, you can build generative art with particle-based typography by applying canvas-based rendering and precise grapheme segmentation. This DOM-free approach treats text as interactive geometry, enabling text-as-geometry games and particle effects while maintaining high-performance visual accuracy for interactive web design.

Does canvas-based text layout support precise grapheme segmentation for visual accuracy?

Yes, canvas-based text layout requires precise grapheme segmentation to ensure visual accuracy and performance in kinetic typography. By calculating glyph positions directly on the canvas without DOM interference, it maintains correct character rendering and alignment for complex editorial layouts and interactive web design.

When should I use a DOM-free layout instead of standard HTML for interactive text?

Use a DOM-free layout for interactive text when you need real-time text reflow around dynamic geometry at 60fps. Standard HTML DOM reflows cause performance overhead for complex editorial layouts, whereas canvas-based rendering calculates line breaks and glyph positions directly, enabling high-performance kinetic typography and generative art.