LEDGERMACHINE

LM-COLOR-004

Standardize inconsistent CSS color formats

Different CSS notations normalize to the same color.

What Ledgermachine reports

One color is written in several formats

Decision, not automatic repair

Standardize the notation when it improves search and maintenance. Keep authored formats when a tool or color space requires them.

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.

Flagged source
.a { color: #fff; }
.b { color: rgb(255 255 255); }
One possible resolution
:root { --white: #fff; }
.a, .b { color: var(--white); }

Resolution workflow

Fix the source without erasing intent

  1. Inspect

    Review every reported occurrence and the established candidates Ledgermachine found in the same project.

  2. Decide

    Standardize the notation when it improves search and maintenance. Keep authored formats when a tool or color space requires them.

  3. 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