modular-scale-typography

Generate modular typography scales from a base font size and ratio.

33|6|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/dembrandt/dembrandt-skills --skill modular-scale-typography-dembrandt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modular-scale-typography
Source: https://github.com/dembrandt/dembrandt-skills/tree/main/skills/modular-scale-typography
Command: npx skills add https://github.com/dembrandt/dembrandt-skills --skill modular-scale-typography-dembrandt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates arbitrary font-size decisions by creating a cohesive, mathematically related typography system with clear hierarchy, readable spacing, and responsive behavior.

Core Features & Use Cases

  • Modular Type Scales: Define font sizes from a base value and ratio using practical presets for dense interfaces, general UI, and marketing pages.
  • Typography Tokens: Create CSS custom properties, Tailwind configurations, and role-based tokens for consistent type systems.
  • Responsive Readability: Apply fluid sizing, line-height guidance, measure constraints, and accessibility-aware minimum font sizes.
  • Use Case: When a product has inconsistent headings, labels, and body text, use this Skill to establish a coherent scale, improve hierarchy, and generate implementation-ready tokens.

Quick Start

Use the modular-scale-typography skill to create a responsive type scale for this design system using a 16px base and a 1.25 ratio.

Frequently Asked Questions about modular-scale-typography

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

FAQPage Schema
How do I create a responsive type scale for my design system?

A responsive type scale is created by defining a base font size and applying a mathematical ratio to generate cohesive font sizes. This approach uses fluid sizing and accessibility-aware minimums to ensure readable typography across devices.

What is a modular scale in typography and when do I need it?

A modular scale in typography is a system of mathematically related font sizes derived from a base value and a consistent ratio. You need it when a product has inconsistent headings, labels, or body text, requiring a coherent hierarchy.

How do I generate typography tokens for CSS and Tailwind from a type scale?

You can generate typography tokens by translating your modular scale into CSS custom properties, Tailwind configurations, and role-based tokens. This creates implementation-ready variables that ensure consistent font sizes across your codebase.

Does this typography approach work for dense interfaces and marketing pages?

Yes, this typography approach works for both dense interfaces and marketing pages by using practical ratio presets. These presets adjust the scale's intensity to suit different contexts, ensuring readable line lengths and spacing.

How do I fix inconsistent heading hierarchy and arbitrary font sizes?

To fix inconsistent heading hierarchy, you establish a coherent type scale from a base size and ratio. This eliminates arbitrary font-size decisions by applying mathematical relationships and role-based tokens.

What line-height and measure constraints should I apply for readable text?

For readable text, you should apply appropriate line-height guidance and measure constraints alongside your type scale. These constraints ensure accessible minimum font sizes and validated text-clamping patterns for optimal readability.