All skills
mblode avatar

/typography-audit

@59baecd
by Matthew Blodemblode/agent-skills136 stars
12

Audits font loading, type scales, measure, spacing, OpenType, and rendered punctuation with 78 scoped rules. Use when asked to "audit typography", "fix the fonts", or "review my type system". For a new visual direction use ui-design Direction; for general UI defects use ui-design Audit.

Use this Skill: https://skilld.dev/gh/mblode/agent-skills/typography-audit

This session only. Nothing lands on disk.

ruleslayout-widows-orphans.md

≈378 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Manage Widows and Orphans with Non-Breaking Spaces

A single word dangling on a headline's last line looks awkward. Insert a non-breaking space ( ) between the last two words of headlines and nav items. Use white-space: nowrap sparingly for short phrases.

On body paragraphs, accept imperfection: dynamic content and responsive design make full widow/orphan control impractical.

Incorrect (headline with a dangling word):

<h1>Getting Started with Web
Typography</h1>
<!-- "Typography" sits alone on the second line -->

Correct (non-breaking space prevents break):

<h1>Getting Started with Web&nbsp;Typography</h1>

Also use &nbsp; for:

  • Navigation items: About&nbsp;Us
  • Time expressions: 3:00&nbsp;PM
  • Brand names: New&nbsp;York
  • Short phrases on homepage hero text

CSS text-wrap also helps, and it is Baseline since October 2024. Use balance for headings and short UI copy (distributes text evenly across lines) and pretty for body paragraphs (avoids orphaned last words by adjusting only the final lines). balance silently stops applying past 6 lines in Chromium and 10 in Firefox, so it is a heading tool, not a paragraph one; pretty costs layout performance, so keep it off short strings where it buys nothing.

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

Source: SKILL.md on GitHub

1 warning9d5 checks · Risk SAFE
  • Gen Agent Trust Hub9d

    The typography-audit skill is a comprehensive and secure set of rules for auditing web typography. It provides guidelines for font selection, sizing, and layout through static markdown files. No malicious code, exfiltration attempts, or security vulnerabilities were detected.

  • Socket9d

    No alerts

  • Snyk9d

    Risk: LOW · No issues

  • Runlayer6mo

    2/92 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 59baecd. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 26 minutes ago.

Activeupdated last week

README badge

README badge for mblode/agent-skills/typography-audit