pretext

Generate interactive text-based visual effects using @chenglou/pretext for DOM-free text measurement and layout.

9|3|Updated May 18, 2026
One-click install
npx skills add https://github.com/jordanhubbard/mac --skill pretext-jordanhubbard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pretext
Source: https://github.com/jordanhubbard/mac/tree/main/src/mac/_hermes/skills/creative/pretext
Command: npx skills add https://github.com/jordanhubbard/mac --skill pretext-jordanhubbard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @chenglou/pretext, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill allows users to create visually stunning text-based effects and interactive demos, enabling the transformation of text into engaging and dynamic visual experiences.

Core Features & Use Cases

  • Text Layout: Offers precise control over text layout, including flowing text around shapes and creating typographic games.
  • Creative Demos: Provides templates and patterns for creating interactive text-based demos.
  • Use Case: Imagine you want to create an interactive educational tool that teaches the principles of typography. You can use this Skill to design a game where words transform based on user input, illustrating the effects of various typographic techniques.

Quick Start

Use the pretext skill to create a new demo by selecting a pattern and modifying the text in the template file 'demo-template.html'.

Frequently Asked Questions about pretext

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

FAQPage Schema
How do I create interactive text-based visual effects for a canvas?

You can create interactive text-based visual effects on a canvas by utilizing this Skill's @chenglou/pretext dependency for DOM-free text measurement and precise layout control in creative coding projects.

What's the best way to flow text around shapes in creative coding?

The best way to flow text around shapes in creative coding is using this Skill's advanced text layout features, which provide precise control over typographic wrapping and interactive design scenarios.

Does this Skill require any specific dependencies for text layout?

Yes, this Skill requires the @chenglou/pretext library as a dependency to handle DOM-free text measurement and execute canvas-based layout tasks for interactive demos.

Can I use canvas text measurement without relying on the DOM?

Yes, you can achieve DOM-free text measurement using the @chenglou/pretext library included in this Skill, which handles canvas-based text layout directly for interactive typographic demos.

How do I modify templates for typography games and interactive demos?

To modify typography games and interactive demos, select a pattern and edit the 'demo-template.html' file, which provides ready-made templates for transforming text into engaging visual experiences.