Open eelcoj opened 2 days ago
I love the idea of updating this to support syncing any set of icons following the format defined in the 'SET' for the three we currently have defined in there. I think it could be setup with minimal work for more flexibility by the end user without needing to fork/submit a PR. Would allow anyone to keep their icon sets up to date without any manual work.
Is this what you had in mind?
That's what I had in mind, indeed.
I like the versatility of it, but unsure how big the upside is (vs the amount of code/added complexity).
I just added the Feather library and this is really all it takes: https://github.com/Rails-Designer/rails_icons/pull/29/files
There is currently the option to render custom icons. In (main) you can run
rails generate rails_icons:initializer --library=custom
and it will add the following to config/initializer/rails_icons.rb:Super useful for for one (or a few) icons you manually download. But would be useful to allow to sync custom libraries too? So non-first-party libraries can be synced too?
API/interface could be the same, eg.
rails generate rails_icons:initializer --library=simple_icons
. Then in the custom configuration something like this could be added:Not 100% sure if useful. As a PR with the correct config would be pretty simple (thanks to @jordancalhoun!).