LM-COLOR-002
Find one-off hardcoded colors in CSS
An undeclared static color appears once and is not visually close to a declared palette token.
Color appears in one place
Name its specific role or fold it into the established palette. One-off artwork and data visualization colors are often valid exceptions.
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.
.promo { border-color: #d7d9dd; }:root { --promo-border: #d7d9dd; }
.promo { border-color: var(--promo-border); }Resolution workflow
Fix the source without erasing intent
- Inspect
Review every reported occurrence and the established candidates Ledgermachine found in the same project.
- Decide
Name its specific role or fold it into the established palette. One-off artwork and data visualization colors are often valid exceptions.
- 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