Skip to content

fix(linter): recognize numeric color palette scales - #199

Open
vaibhavrvalakunde2006-gif wants to merge 1 commit into
google-labs-code:mainfrom
vaibhavrvalakunde2006-gif:fix/orphaned-palette-scale-tokens
Open

vaibhavrvalakunde2006-gif wants to merge 1 commit into
google-labs-code:mainfrom
vaibhavrvalakunde2006-gif:fix/orphaned-palette-scale-tokens

Conversation

@vaibhavrvalakunde2006-gif

Copy link
Copy Markdown

Summary

  • Recognize numeric color palette families such as green-50 and green-900.
  • Avoid reporting unreferenced shades as orphaned when at least two shades share a prefix.
  • Preserve orphaned-token warnings for isolated custom tokens such as brand-100.

Issue

Addresses the numeric palette-scale false positives described in #188.

Testing

  • Focused orphaned-tokens tests: 8 passed.
  • TypeScript lint: passed.
  • CLI build: passed.
  • Full CLI suite: 406 passed, 1 skipped, 1 unrelated Tailwind/PostCSS resolution failure in the local Bun environment.

Scope

This addresses palette-scale false positives. Semantic-token false positives described in the issue are not addressed by this change.

@google-cla

google-cla Bot commented Nov 24, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant