LM-COLOR-003
Consolidate duplicate color opacity values
One base color uses multiple alpha levels within a narrow visual range.
Similar opacity levels share one color
Consolidate levels that do the same job; preserve levels that express distinct states or depth.
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.
.scrim { background: rgb(0 0 0 / 14%); }
.popover { background: rgb(0 0 0 / 16%); }:root { --overlay: rgb(0 0 0 / 16%); }
.scrim, .popover { background: var(--overlay); }Resolution workflow
Fix the source without erasing intent
- Inspect
Review every reported occurrence and the established candidates Ledgermachine found in the same project.
- Decide
Consolidate levels that do the same job; preserve levels that express distinct states or depth.
- 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