LM-TOKEN-003
Find duplicate design token values
Independent tokens in the same context and category resolve to one value without aliasing each other.
Several token names share one value
Keep separate semantic names when their roles may diverge; otherwise alias them to one canonical token.
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.
:root {
--text: #1a1a1a;
--foreground: #1a1a1a;
}:root {
--text: #1a1a1a;
--foreground: var(--text);
}Resolution workflow
Fix the source without erasing intent
- Inspect
Review every reported occurrence and the established candidates Ledgermachine found in the same project.
- Decide
Keep separate semantic names when their roles may diverge; otherwise alias them to one canonical token.
- 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