What problem does it solve? Measuring text height and width in the browser normally requires DOM APIs like getBoundingClientRect or offsetHeight, which trigger layout reflow and cannot run before render or outside the DOM. This Skill installs and configures @chenglou/pretext so text dimensions are computed as pure arithmetic, making layout decisions deterministic and verifiable without a browser. ## Core Features & Use Cases - Pre-render text measurement: Compute text height, line counts, and shrink-wrap widths before rendering to prevent layout shift on async text loads. - Centralized measurement helper: Creates src/lib/text-measure.ts exposing measureTextHeight, shrinkWrapWidth, and fitsInOneLine, keeping font strings synced with CSS tokens. - Design-system rule fold-in: Adds measurement rules to references/tokens.md, components.md, primitives.md, responsive.md, animation.md, and platform-mapping.md. - Use Case: When building a virtualized list or a button with dynamic labels, verify that labels fit and precompute item heights without rendering hidden DOM nodes or spinning up a headless browser. ## Quick Start Install pretext in this project and set up the text measurement helper so I can verify that my button labels never overflow.