Repository navigation
Update Figma design tokens - #4964
Gert-Jan Vercauteren (gert-janvercauteren) merged 3 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.
Updates the Backpack design-token outputs to align naming and add new component tokens, while adjusting typography line-height representations.
Changes:
- Renames Chip Group token namespace (and corresponding CSS custom properties) from
chip-group-filtertochip-group. - Adds new
Page Indicatorcolor tokens and exports them to light/dark theme CSS. - Converts many typography
line-heightvalues from token aliases / integer-like values into unitless numeric ratios.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| token-sync/tokens/manifest.json | Refreshes generation metadata and token counts to reflect the updated exports. |
| token-sync/tokens/backpack.light.json | Renames a token group, adds Page Indicator, and inlines/changes line-height values. |
| token-sync/tokens/backpack.dark.json | Mirrors the light theme token changes for dark mode. |
| token-sync/css/theme-backpack-light.css | Renames Chip Group CSS vars, adds Page Indicator vars, and updates typography line-height values. |
| token-sync/css/theme-backpack-dark.css | Mirrors the light theme CSS variable updates for dark mode. |
Files not reviewed (1)
- packages/backpack-web/src/bpk-stylesheets/base.css: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
| }, | ||
| "Chip-group-filter": { | ||
| "Chip Group": { |
| }, | ||
| "$type": "color" | ||
| }, | ||
| "Page Indicator": { |
| "bg-overImage-selected": { | ||
| "$value": "{Neutral.White}" | ||
| }, | ||
| "bg-overImage-unselected": { |
| --bpk-typography-body-longform-family: 'Skyscanner Relative'; | ||
| --bpk-typography-body-longform-letter-spacing: 0; | ||
| --bpk-typography-body-longform-line-height: 28; | ||
| --bpk-typography-body-longform-line-height: 1.399999976158142; |
| --bpk-typography-caption-family: 'Skyscanner Relative'; | ||
| --bpk-typography-caption-letter-spacing: 0; | ||
| --bpk-typography-caption-line-height: 16; | ||
| --bpk-typography-caption-line-height: 1.3300000429153442; |
| --bpk-typography-display-1-family: 'Skyscanner Relative'; | ||
| --bpk-typography-display-1-letter-spacing: -0.21875rem; | ||
| --bpk-typography-display-1-line-height: 192; | ||
| --bpk-typography-display-1-line-height: 0.800000011920929; |
| --bpk-typography-footnote-family: 'Skyscanner Relative'; | ||
| --bpk-typography-footnote-letter-spacing: 0; | ||
| --bpk-typography-footnote-line-height: 20; | ||
| --bpk-typography-footnote-line-height: 1.4279999732971191; |
| "Line-height": { | ||
| "$value": "{Type.Line-height.24}", | ||
| "$value": 1.5, | ||
| "$type": "number" | ||
| }, |
|
Visit https://backpack.github.io/storybook-prs/4964 to see this build running in a browser. |
Adds an `excludeVariablePrefixes` option to the sync pipeline and wires it up with `['Typography']` so typography variables are filtered out before tree-building. Also strips the previously-synced typography entries from the committed token JSON, CSS, and manifest files. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
|
Visit https://backpack.github.io/storybook-prs/4964 to see this build running in a browser. |
Regenerates the compiled stylesheet after typography tokens were excluded from the Figma variable sync. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
|
Visit https://backpack.github.io/storybook-prs/4964 to see this build running in a browser. |
539f11e
into
main
Summary
Automated Figma variable sync generated updates to Backpack design tokens and CSS custom properties.
Additionally rebuilds
packages/backpack-web/src/bpk-stylesheets/base.cssto incorporate the updated CSS custom properties.Typography tokens are excluded from this sync — they are not ready to be shipped yet.
Release label:
majorRelease label rules:
major— an existing token path was removed, renamed, or had its value changed (consumer code may break).minor— only new token paths were added.Deleted or renamed tokens
The following token paths existed in the previous commit but are missing from the fetched tokens. Treat them as breaking changes and verify usages have been migrated.
backpack.dark.json
Component/Chip-group-filter/Colour/bg-icon-hover-on-imageComponent/Chip-group-filter/Colour/bg-icon-off-on-imageComponent/Chip-group-filter/Colour/bg-icon-on-defaultComponent/Chip-group-filter/Colour/bg-icon-on-on-darkComponent/Chip-group-filter/Colour/bg-icon-on-on-imageComponent/Chip-group-filter/Colour/stroke-icon-hover-defaultComponent/Chip-group-filter/Colour/stroke-icon-hover-on-darkComponent/Chip-group-filter/Colour/stroke-icon-off-defaultComponent/Chip-group-filter/Colour/stroke-icon-off-on-darkComponent/Chip-group-filter/Dimensions/min-heightbackpack.light.json
Component/Chip-group-filter/Colour/bg-icon-hover-on-imageComponent/Chip-group-filter/Colour/bg-icon-off-on-imageComponent/Chip-group-filter/Colour/bg-icon-on-defaultComponent/Chip-group-filter/Colour/bg-icon-on-on-darkComponent/Chip-group-filter/Colour/bg-icon-on-on-imageComponent/Chip-group-filter/Colour/stroke-icon-hover-defaultComponent/Chip-group-filter/Colour/stroke-icon-hover-on-darkComponent/Chip-group-filter/Colour/stroke-icon-off-defaultComponent/Chip-group-filter/Colour/stroke-icon-off-on-darkComponent/Chip-group-filter/Dimensions/min-heightSource
schedule