LEDGERMACHINE

LM-TYPE-005

Find duplicate text styles in CSS

Several selectors produce the same text-style signature, but some use tokens while others repeat values directly.

What Ledgermachine reports

The same text style is declared two ways

Decision, not automatic repair

Prefer one declaration path so later typography changes do not split the roles apart.

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
.card-title { font-size: 20px; line-height: 1.2; }
.modal-title { font-size: 20px; line-height: 1.2; }
One possible resolution
:root { --title: 20px/1.2 var(--font-ui); }
.card-title, .modal-title { font: var(--title); }

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

    Prefer one declaration path so later typography changes do not split the roles apart.

  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