LM-TOKEN-001
Replace hardcoded CSS values with design tokens
A direct visual value resolves to exactly the same value as a declared token.
Value matches a declared token
Use the token unless the direct value must remain independent from theme or system changes.
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 { --ink: #1a1a1a; }
.card { color: #1a1a1a; }.card { color: var(--ink); }Resolution workflow
Fix the source without erasing intent
- Inspect
Review every reported occurrence and the established candidates Ledgermachine found in the same project.
- Decide
Use the token unless the direct value must remain independent from theme or system changes.
- 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