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.

rulesfont-fallbacks.md

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

Define Strong Fallback Font Stacks

Every font-family declaration needs a carefully chosen fallback stack. Include likely-installed system fonts that match the primary font's metrics and style. Test with fallbacks active to catch layout shifts. Ensure accent and special character support.

Incorrect (no meaningful fallback):

body {
  font-family: 'Libre Baskerville';
}

Correct (robust fallback stack):

body {
  font-family: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
}

/* Sans-serif example */
h1 {
  font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
}

Use size-adjust, ascent-override, and descent-override in @font-face for fallbacks to minimize layout shift (CLS):

@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
}

Avoid over-subsetting fonts, which can cause empty glyph boxes for characters outside the subset range.

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 24 minutes ago.

Activeupdated last week

README badge

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