--- name: define-typography description: "Set typography roles and font sources in DESIGN.md. Use for text hierarchy, font selection, or font changes." --- # Typography data Read [Procedure data](../../references/procedure.md) before the task. Read [Design format](../../references/design-format.md) for document changes. Read [Technical terms](../../references/technical-terms.md) for skill language. ## Task Set typography data for the developer interface. ## Input - Design file or design brief. - Font sources and developer selections. - Content types, languages, and target viewports. ## Procedure 1. Read the design data and available font assets. 2. Get the developer selections for text hierarchy and density. 3. Record each font source and its fallback family. 4. Make tokens for headline, body, and label roles. 5. Set font size, font weight as a number, and unitless line height. 6. Set `letterSpacing` when the target format is DTCG. 7. Record text wrapping, long content, and content language conditions. 8. Record font states that the available assets do not supply. 9. Change only typography data and related instructions. 10. Do the document checks from the procedure. 11. Show the typography selections and unresolved items. ## Output - Typography tokens, font source paths, and text behavior instructions. ## Completed task - Each typography role has a function. - Font families and weights agree with the supplied assets.