typography-scale

Design modular typography scales with size, weight, and line-height mappings for web and app interfaces.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/soeiroo/multifunctional-web --skill typography-scale-soeiroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typography-scale
Source: https://github.com/soeiroo/multifunctional-web/tree/main/.agents/skills/typography-scale
Command: npx skills add https://github.com/soeiroo/multifunctional-web --skill typography-scale-soeiroo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a modular typography scale that ensures readable, harmonious, and consistent text across a product.

Core Features & Use Cases

  • Size Scale: Based on a ratio (e.g., 1.25 major third, 1.333 perfect fourth) with sizes: Caption: 12px, Body small: 14px, Body: 16px (base), Subheading: 20px, Heading 3: 24px, Heading 2: 32px, Heading 1: 40px, Display: 48-64px.
  • Weight Scale: Regular (400), Medium (500), Semibold (600), Bold (700).
  • Line Height: Tight: 1.2 (headings), Normal: 1.5 (body text), Relaxed: 1.75 (long-form reading).
  • Letter Spacing: Tight: -0.02em (large headings), Normal: 0 (body), Wide: 0.05em (uppercase labels, captions).
  • Font Pairing: Primary: UI and body text; Secondary: headings or editorial (optional); Mono: code, data, technical content.
  • Responsive Typography: Scale down heading sizes on mobile; Maintain body size (16px minimum for readability); Adjust line lengths (45-75 characters optimal).
  • Best Practices: Use a mathematical ratio for harmony; Limit to 4-5 sizes in regular use; Ensure body text is minimum 16px; Test with real content, not lorem ipsum; Document usage rules for each style.

Quick Start

Create a modular typography scale with defined size, weight, and line-height mappings for a UI design.

Frequently Asked Questions about typography-scale

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a modular typography scale for a web design system?

A modular typography scale uses mathematical ratios like 1.25 or 1.333 to define harmonious font sizes for headings, body text, and captions. This ensures consistent text sizing across digital interfaces by mapping specific pixel dimensions to each UI element.

What is the best way to handle responsive typography for mobile interfaces?

Responsive typography requires scaling down heading sizes on mobile while maintaining a 16px minimum body text size for readability. It also involves adjusting line lengths to an optimal 45-75 character range to ensure text remains legible across smaller screens.

What line height and letter spacing should I use for headings versus body text?

Use a tight 1.2 line height with -0.02em letter spacing for large headings, a normal 1.5 line height with 0 spacing for body text, and a relaxed 1.75 line height with 0.05em spacing for uppercase labels, captions, and long-form reading.

How many font sizes should a design system include for UI design?

A design system should limit regular use to 4-5 typography sizes to maintain visual harmony. This typically includes a base body size of 16px, with subheadings, headings, and display sizes calculated using a consistent mathematical ratio like the perfect fourth.

Can I use a typography scale to define font weights and font pairing rules?

Yes, a typography scale defines weight mappings using Regular, Medium, Semibold, and Bold styles. It also establishes font pairing rules, assigning primary fonts for body text, secondary fonts for headings, and mono fonts for technical content or code.

Why does my typography look inconsistent across different app screens?

Typography appears inconsistent when sizes and weights lack a mathematical scale and documented usage rules. Applying a standardized ratio for size, line height, and letter spacing across all UI labels and headings ensures readable, harmonious text throughout the product.