fabiospampinato / icon-font-buildr

Build custom icon fonts, it supports remote and local icons sources.
MIT License
55 stars 5 forks source link

Generate stylesheets #9

Closed ZanyMonk closed 3 years ago

ZanyMonk commented 3 years ago

It would be nice to implement automatic stylesheets generation so icon-font-buildr integrates nicely into a building pipeline, for hot-reloading for example.

Do you plan on implementing this in a near future ? Are you open to PRs ?

Nice project you have here :)

fabiospampinato commented 3 years ago

I'd consider that a bit out of scope, but I can see the usefulness of that in some cases.

What do you think the API should look like for this?

ZanyMonk commented 3 years ago

We can expose a getIconsStylesheet() function, which would render and return a simple EJS template based on the generated codepoints and a few options (class prefix, CSS/SCSS/custom template). The generated file would contain:

Maybe some other lib should do this job ? You tell me.

fabiospampinato commented 3 years ago

Yeah maybe it's better to have this logic separate from the library.