line-height-grid

Calculate line-heights for UI and prose in grid-aligned design systems.

1|Updated May 15, 2026
One-click install
npx skills add https://github.com/thrillmade/agent-skills --skill line-height-grid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: line-height-grid
Source: https://github.com/thrillmade/agent-skills/tree/main/skills/line-height-grid
Command: npx skills add https://github.com/thrillmade/agent-skills --skill line-height-grid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps maintain consistent line-heights in grid-aligned design systems, ensuring visual harmony and readability.

Core Features & Use Cases

  • Grid-Aligned Line Heights: Calculates and enforces line-heights that align with a design system's spacing grid.
  • Two-Track Model: Differentiates between UI and prose line-heights for various content types.
  • Worked Examples: Provides examples for different grid sizes and font sizes.
  • Use Case: When designing a UI component, use this Skill to ensure the line-heights are consistent with the design system's grid.

Quick Start

Use the line-height-grid skill to calculate the appropriate line-height for a 16px font size in a 4/8 grid system.

Frequently Asked Questions about line-height-grid

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

FAQPage Schema
How do I calculate line-height for text in a grid-aligned design system?

Grid-aligned line-heights ensure visual harmony and readability by matching text spacing to your design system's grid. You calculate the appropriate line-height by using the font size and the specific grid system in use.

What is the difference between UI and prose line-heights in a grid system?

A two-track model differentiates UI and prose line-heights to handle various content types within a grid system. UI tracks optimize compact interface components, while prose tracks enhance long-form text readability.

How do I ensure design consistency with a 4/8 spacing grid for typography?

Design consistency with a 4/8 spacing grid requires calculating line-heights that strictly align with these grid increments. This enforces vertical spacing rules so typography harmonizes with the overall layout.

Can I use a grid-aligned line-height approach for both UI components and prose content?

Yes, a grid-aligned line-height approach applies to both UI components and prose content. It uses distinct line-height tracks to accommodate the different visual and readability requirements of each content type.

What do I need to know before calculating grid-aligned line-heights for my UI?

Before calculating grid-aligned line-heights, you must know the specific font size and the grid system in use, such as a 4/8 grid. This prerequisite knowledge ensures the calculated spacing aligns correctly with the layout.

Why does my typography spacing break visual harmony in grid-aligned design systems?

Typography spacing breaks visual harmony in grid-aligned design systems when line-heights do not match the grid increments. Calculating line-heights based on the font size and grid system restores vertical rhythm and readability.