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

tool to convert arbitrary svg to IconSource json #27

Closed
ronkeiser opened this issue Jun 9, 2023 · 2 comments
Closed

tool to convert arbitrary svg to IconSource json #27

ronkeiser opened this issue Jun 9, 2023 · 2 comments

Comments

@ronkeiser
Copy link

Do you already have a convenient way to take an svg and convert it into the IconThemeSource format that is ready to be used with the Icon component?

@JustinVoitel
Copy link
Contributor

@ronkeiser For this case you can copy the template-builder!

Just copy your svg files to themes/default, update package.json (name, author etc) and run pnpm i && pnpm publish --no-git-checks and you can use your custom icons like you usually would with this library.

With the build.js file you can further configure how your sources will be treated (e.g where to collect them from or exclude/extend Attributes for the output)

Hope this helps!! (reopen if this wasn't what you were looking for)

@ronkeiser
Copy link
Author

Perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants