✨(icons) add workflow to extract figma svg to react components#164
✨(icons) add workflow to extract figma svg to react components#164
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
An overall comment, I'll complete the README.md about this icon generation logic. |
0f77c9c to
3b35921
Compare
Add a script that fetches SVG icons from a Figma file, transforms them into React components via SVGR, and generates a barrel file. Also adds the required devDeps (@svgr/*, tsx) and the generate-icons npm script.
Provide a base SVG wrapper that handles size presets and offers a consistent API for auto-generated and custom SVG icons.
Product-specific icons exported from the Figma design system and transformed into React components via the generate-icons script.
Split the single Icon story into Material and SVG sub-pages for better discoverability. Add an MDX doc page explaining both icon types and export the new IconSvg component and generated icons.
Add the entries related to the new svg icons generared.
3b35921 to
d25aad4
Compare
Extract the render function body into a proper AllIcons component so that the useState hook is called from a valid React component context.
The lockfile was out of sync with package.json after adding @svgr/* and tsx, causing CI to fail on yarn install --frozen-lockfile.
By running
Via the Figma API the svg are download and transformed into React component via SVGR.
Todo