LEDGERMACHINE

LM-TOKEN-002

Find near-duplicate CSS values and design tokens

A direct color is difficult to distinguish from a declared color token under the project’s color-distance setting.

What Ledgermachine reports

Value is close to a declared token

Decision, not automatic repair

Merge it into the token if the small difference carries no real semantic or accessibility role.

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
:root { --ink: #1f2022; }
.card { color: #202124; }
One possible resolution
.card { color: var(--ink); }

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

    Merge it into the token if the small difference carries no real semantic or accessibility role.

  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