Skip to content
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

Add storybook design addon #1828

Merged
merged 2 commits into from
Jun 3, 2022
Merged

Conversation

rogermparent
Copy link
Contributor

@rogermparent rogermparent commented Jun 3, 2022

This PR adds storybook-addon-designs to our Storybook setup, allowing us to associate specific Figma files to specific stories and view those figmas inside the Storybook UI. This works on both the individual story level and the module (file) level via the parameters field.

There is also a separate figma plugin to do integration in the opposite direction, i.e. viewing Storybook stories in Figma.

storybook-figma-demo.mp4

This use case may drive us to reconsider the format we keep our Figma files, seemingly being more oriented to files that just exhibit a UI element without much explanatory chrome surrounding that but it's also not impossible to use as-is so I'll leave it up to a discussion of our preferences on the dev and design side.

@codeclimate
Copy link

codeclimate bot commented Jun 3, 2022

Code Climate has analyzed commit 3d21cb7 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.9% (0.0% change).

View more on Code Climate.

@rogermparent rogermparent merged commit e8782d5 into main Jun 3, 2022
@rogermparent rogermparent deleted the storybook-to-figma-integration branch June 3, 2022 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants