-
Notifications
You must be signed in to change notification settings - Fork 203
Figma code connect #3921
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
Figma code connect #3921
Conversation
* main: Bump actions/download-artifact in the artifacts-actions group (#3907) Bump actions/checkout from 4 to 5 (#3913) Fix closeText style of BpkModal in dark mode (#3919) Bump the babel group across 1 directory with 5 updates (#3917) Bump @babel/runtime in the npm_and_yarn group across 1 directory (#3884) Bump actions/cache from 4.2.3 to 4.2.4 (#3905) Bump webpack from 5.99.8 to 5.101.2 (#3916) QUAR-1046 Fix CTA Button Alignment, Logo Sizing, and Logo Vertical Alignment in Inset Banner (#3912) chore: removed duplicate aria-label (#3911) [CAPY-1594][BpkNavigationTabGroup/BpkBubble] Create and integrate 'new' bubble tooltip in navigation tab bar (#3909) [CLOV-381][BpkBreakpoint] update bpk breakpoint readme (#3910) [CYB-3904][BpkGraphicPromo] Render wrapper as semantic anchor tag to improve SEO (#3904) [CLOVER-532][BpkText] Add BpkText color prop with leverage css classname (#3900) fix: A11y and icon issue for inset banner sponsored (#3901) # Conflicts: # packages/bpk-component-text/README.md # packages/bpk-component-text/src/BpkText-test.tsx # packages/bpk-component-text/src/BpkText.tsx
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
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.
Pull Request Overview
This PR introduces Figma Code Connect integration to synchronize Figma designs with React components. It adds the necessary configuration, workflow automation, and connects four components to their Figma counterparts.
- Adds GitHub Actions workflow to automatically sync Code Connect files
- Configures Figma Code Connect with project settings and file patterns
- Creates Code Connect mappings for BpkBadge, BpkButtonV2, BpkPrice, and BpkImage components
Reviewed Changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Adds @figma/code-connect dev dependency |
| figma.config.json | Configures Code Connect settings and file inclusion patterns |
| .github/workflows/sync-figma-code-connect.yml | Sets up automated workflow for syncing Code Connect on file changes |
| packages/bpk-component-badge/src/BpkBadge.figma.tsx | Maps BpkBadge component styles to Figma variants |
| packages/bpk-component-button/src/BpkButtonV2/BpkButton.figma.tsx | Maps BpkButtonV2 component properties to Figma design variants |
| packages/bpk-component-price/src/BpkPrice.figma.tsx | Maps BpkPrice component size and alignment properties to Figma |
| packages/bpk-component-image/src/BpkImage.figma.tsx | Basic Code Connect mapping for BpkImage component |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
packages/bpk-component-button/src/BpkButtonV2/BpkButton.figma.tsx
Outdated
Show resolved
Hide resolved
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Hi Gert-Jan Vercauteren (@gert-janvercauteren) , Great work, I can’t wait to see how it’s going! However, when I transpiled locally, it failed. Perhaps we should also exclude packages/**/*.figma.tsx in tsconfig.declaration.json. I’m not sure why the transpile command hasn’t been added to the CI. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/3921 to see this build running in a browser. |
0e4df68
into
main

This pull request introduces Figma Code Connect integration to the project, enabling synchronization between Figma designs and React components. The main changes include adding configuration and workflow files for Code Connect, installing the required dependency, and connecting two components (
BpkBadgeandBpkButtonV2) to their respective Figma design files.Figma Code Connect Integration
.github/workflows/sync-figma-code-connect.yml) to automatically run Code Connect on pushes and pull requests affecting.figma.tsxfiles in themainbranch.figma.config.jsonto specify which files to include, set the label to "React", and link the interactive Figma file for setup.@figma/code-connectpackage as a dev dependency inpackage.json.Component Figma Connections
BpkBadge.figma.tsxto connect theBpkBadgecomponent to its Figma design, mapping badge styles to Figma variants.BpkButton.figma.tsxforBpkButtonV2, connecting it to its Figma design and mapping button styles, sizes, states, and icon configurations.Remember to include the following changes:
[Clover-123][BpkButton] Updating the colourREADME.md(If you have created a new component)README.md