Uh oh!
There was an error while loading. Please reload this page.
Exposing lineHeight tokens in MCP & adding color to token conversion - #7601
Conversation
🦋 Changeset detectedLatest commit: 662f475 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Pull request overview
This PR enhances the Primer MCP (Model Context Protocol) server to better expose lineHeight design tokens to AI tools. The MCP server helps AI agents understand and use Primer's design system, and this change ensures AI tools can properly compose typography using individual CSS variables when shorthand tokens aren't available.
Changes:
- Added three new search aliases for lineHeight tokens ('line-height', 'lineheight', 'leading') to the GROUP_ALIASES map
- Updated the typography shorthand rule documentation to include fallback guidance for using individual tokens (font-size, font-family, line-height) when component-specific shorthands don't exist
- Enhanced the text group hint to emphasize using lineHeight tokens instead of raw numeric values when splitting typography properties
Uh oh!
There was an error while loading. Please reload this page.
…ing or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
🤖 Lint issues have been automatically fixed and committed to this PR. |
Uh oh!
There was an error while loading. Please reload this page.
…7601) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
This provides better info for AI when no shortcut for text is available and it needs to compose it from individual css variables
Changelog
New
Changed
Removed
Rollout strategy
Testing & Reviewing
Merge checklist