Repository navigation
fix: figma-tokens - Build font stacks from the clean family name, not the raw @font-face name #4032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ZaredRogers
merged 10 commits into
fix/git-2766-site-tokens-spacing-min-order
from
fix/git-2770-figma-tokens-font-stacks
Nov 11, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2fc479d
fix(figma-tokens): start font stacks with the clean family name
ZaredRogers 79aa6e7
fix(figma-tokens): keep the declared system stack for a generic family
ZaredRogers ce00aa6
fix(figma-tokens): map content and wide width to settings.layout
ZaredRogers 5fc2814
fix(site-tokens): export the palette ramps in the LightSpeed order
ZaredRogers 39aab34
fix(orphaned-refs): skip dependency folders and check border-radius p…
ZaredRogers c377002
refactor(orphaned-refs): convert the scan script and its tests to Typ…
ZaredRogers 6ac7772
Merge pull request #4037 from lightspeedwp/fix/git-2774-orphaned-refs…
ZaredRogers f2c273a
Merge pull request #4035 from lightspeedwp/fix/git-2773-site-tokens-p…
ZaredRogers 958d605
Merge pull request #4034 from lightspeedwp/fix/git-2772-figma-tokens-…
ZaredRogers 5b77b17
Merge pull request #4033 from lightspeedwp/fix/git-2771-figma-tokens-…
ZaredRogers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: lightspeedwp/.github
Length of output: 2770
Script executed:
Repository: lightspeedwp/.github
Length of output: 25130
Script executed:
Repository: lightspeedwp/.github
Length of output: 25130
Script executed:
Repository: lightspeedwp/.github
Length of output: 14300
Preserve the default
sans-serifkeyword.When no body font is found, the export supplies
Sans Serifwith the stacksans-serif. This code emits"Sans Serif"instead. CSS treats that as a font name, so the body can render with the wrong font category.Suggested fix and test
In
figma-variables-to-theme-json.test.ts:expect(stack(font('Moret', 'CSS stack: moret'))).toBe('Moret'); + expect(stack(font('Sans Serif', 'Body text (default). CSS stack: sans-serif'))).toBe('sans-serif');Committable suggestion