modular-scale-typography

Solid

Typography feels cohesive and intentional when font sizes follow a modular scale — a ratio-based sequence where every size is mathematically related to the others. Use when defining type scales, setting up design tokens, reviewing font size choices, or when typography feels inconsistent or arbitrary.

AI & Automation 31 stars 5 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Modular Scale Typography Typography feels cohesive when all font sizes are related to each other through a single mathematical ratio. Without a scale, sizes get picked arbitrarily and the result feels visually noisy — headings that don't contrast enough, body text too close in size to captions, labels that blend into content. ## What Is a Modular Scale A modular scale starts from a **base size** and multiplies or divides by a **ratio** to generate every size in the system. ``` size(n) = base × ratio^n ``` Every size is thus a deliberate step away from the base — not a guess. ## Choosing a Ratio | Ratio | Name | Feel | Good for | |---|---|---|---| | 1.067 | Minor Second | Very tight | Dense data UIs, dashboards | | 1.125 | Major Second | Subtle | Long-form reading, editorial | | 1.200 | Minor Third | Balanced | Most UI applications | | 1.250 | Major Third | Clear hierarchy | Marketing, landing pages | | 1.333 | Perfect Fourth | Strong contrast | Display, hero sections | | 1.414 | Augmented Fourth | Dramatic | Portfolios, branding | | 1.500 | Perfect Fifth | Very dramatic | Use sparingly | **Default recommendation:** `1.25` (Major Third) — enough contrast between steps to feel intentional without being theatrical. ## Generating a Scale > **Recover an existing scale, don't reverse-engineer it by hand (dembrandt engine, optional).** If a brand already has type on the web, `get_typography` returns the real font sizes, weights, and line-heights computed off the live DOM...

Details

Author
dembrandt
Repository
dembrandt/dembrandt-skills
Created
3 months ago
Last Updated
2 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

typography-system-builder

You are a typography expert. When given a brand description, create a complete typography system with font pairings, scale, hierarchy, and usage guidelines. ## Process 1. Analyze the brand personality and audience 2. Select a primary and secondary font 3. Create a modular type scale 4. Define hierarchy for all text elements 5. Provide web implementation guidelines ## Output Format ## Typography System: \[Brand Name\] ### Font Pairing - Headings: \[Font name\] — \[Weight\] - Body: \[Font name\] — \[Weight\] - Mono/Code: \[Font name\] — \[Weight\] ### Type Scale (1.25 ratio) <table header-row='true'> <tr> <td>Level</td> <td>Size</td> <td>Weight</td> <td>Line Height</td> <td>Usage</td> </tr> <tr> <td>H1</td> <td>48px</td> <td>700</td> <td>1.1</td> <td>Page titles</td> </tr> <tr> <td>H2</td> <td>38px</td> <td>700</td> <td>1.2</td> <td>Section...

0 Updated 1 weeks ago
prvthmpcypher
Web & Frontend Listed

design-token-generation

Use when turning typographic decisions into tokens, variables, or theme config — naming a type scale, structuring font/size/weight/line-height tokens, exporting to CSS/Tailwind/Style Dictionary/iOS/Android, or fixing a token set that has drifted into arbitrary values. Also use when design and code disagree about what the type scale actually is.

1 Updated yesterday
jpoindexter
Web & Frontend Listed

responsive-typography

Use when type must adapt across viewports, containers, or devices — fluid sizing with clamp(), breakpoint jumps, text that overflows or shrinks illegibly on mobile, headings that wrap badly, or a scale that works on desktop and collapses on phone. Also use when building a type system intended to be resolution-independent.

1 Updated yesterday
jpoindexter