audit_typography
Audit typographic scale, line-height consistency, and weight ladder of a web page or text nodes. Detects dominant ratio, body rhythm, and weight outliers.
Instructions
Audit the typographic SCALE of a rendered page (pass url) or a pre-collected snapshot of text nodes. Emits a focused report: (a) MODULAR SCALE — detects the dominant ratio (~1.2/1.25/1.333/1.5) across distinct font sizes and flags off-scale outliers; (b) LINE-HEIGHT CONSISTENCY — unitless lh/fs ratio per node, identifies the body rhythm and flags outliers; (c) WEIGHT LADDER — distinct weights, flags >4 weights or non-standard CSS values. Returns scale, line_height, weight_ladder, nodes_analyzed, and findings[{rule,severity,selector,message,fix}]. Goes beyond audit_page's pass/fail typography checks. url mode requires headless chromium.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to render and measure (http/https or file://). Requires headless chromium. | |
| nodes | No | Pre-collected text nodes to analyze without rendering. |