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

ci(primitives): add capability to generate a list of icons to be used in Figma #271

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

brionmario
Copy link
Member

@brionmario brionmario commented Oct 8, 2024

Purpose

In Figma, we currently have to manually add icons one by one to the board, which is inefficient. The inconsistency in naming conventions, due to contributions from multiple people, adds to the complexity and leads to issues when collaborating on the design system. This results in extra manual work to rename and organize icons.

Usage

To generate the icons manifest, run the following command:

cd packages/primitives
node scripts/export-icons-for-figma.mjs

This will generate a .export with the following structure:

.export
├── icons
│   ├── manifest
│   │   ├── icon-manifest.txt
│   ├── AppIcon.svg
│   ├── ...

These icons can exported to the Assets board in the Asgardeo Design Library in Figma.

The icon-manifest.txt file contains the list of icons that were exported and this list can be used to update the Figma board's icon manifest.

Related Issues

Related PRs

  • N/A

Checklist

  • UX/UI review done on the final implementation.
  • Story provided. (Add screenshots)
  • Manual test round performed and verified.
  • Unit tests provided. (Add links if there are any)
  • Documentation provided. (Add links if there are any)

Security checks

@brionmario brionmario changed the title ci(primitives): add capability to generate a list of icons ci(primitives): add capability to generate a list of icons to be used in Figma Oct 8, 2024
@brionmario brionmario merged commit 61b3a77 into main Oct 8, 2024
7 checks passed
@brionmario brionmario added the hacktoberfest-accepted Eligible PRs for Hacktoberfest label Oct 8, 2024
@brionmario brionmario deleted the ci-automation-export-for-figma branch October 9, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Eligible PRs for Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce a script to generate a list of icons and a manifest that can be exported to the Figma board
2 participants