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.
The same text style is declared two ways
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.
.card-title { font-size: 20px; line-height: 1.2; }
.modal-title { font-size: 20px; line-height: 1.2; }:root { --title: 20px/1.2 var(--font-ui); }
.card-title, .modal-title { font: var(--title); }Resolution workflow
Fix the source without erasing intent
- Inspect
Review every reported occurrence and the established candidates Ledgermachine found in the same project.
- Decide
Prefer one declaration path so later typography changes do not split the roles apart.
- 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
LEDGERMACHINE