LEDGERMACHINE

LM-TYPE-002

Find off-scale line heights in CSS

A rare line height is close to a repeated or declared line-height value.

What Ledgermachine reports

Line height may not belong to the type scale

Decision, not automatic repair

Reuse the role’s line height unless content density, language, or typeface metrics justify the difference.

Source example

What this finding can look like

The exact candidate comes from the project’s own tokens and repeated values. This example shows the shape of the issue, not a universal replacement.

Flagged source
.body { line-height: 1.47; }
One possible resolution
:root { --line-body: 1.5; }
.body { line-height: var(--line-body); }

Resolution workflow

Fix the source without erasing intent

  1. Inspect

    Review every reported occurrence and the established candidates Ledgermachine found in the same project.

  2. Decide

    Reuse the role’s line height unless content density, language, or typeface metrics justify the difference.

  3. Verify

    Make the change in your editor or coding agent, then rescan. Ledgermachine stays read-only and records whether the finding cleared.

Run it on your source

See the evidence behind this rule.

Open a folder locally, inspect the exact occurrences, and decide whether to repair or preserve the difference.

Open Ledgermachine