Open Andrew15-5 opened 3 weeks ago
I was looking for a package that provides icons for popular platforms, but the https://typst.app/universe/package/fontawesome only support black and white versions, while this package requires a name. It probably has a different usage in mind, but from the package name it feels like it should also give the full control to the user and allow using the icons separately from the link generator function.
To be honest I really didn't had the use-case of using the icons separately in mind when I created this package but I think it's a legitimate suggestion and shouldn't be that complicated to implement. :smiley:
I was looking for a package that provides icons for popular platforms, but the https://typst.app/universe/package/fontawesome only support black and white versions, while this package requires a name. It probably has a different usage in mind, but from the package name it feels like it should also give the full control to the user and allow using the icons separately from the link generator function.
As a workaround, I had to grab the package directory and copy the
svg
subdirectory to my project. Then I added a few variables for the needed icons and after imported them locally. Here is my use case:My local copy includes
./icons/svg/*.svg
and./icons/icons.typ
. Then I can import all the variables directly:Or make an
icon
module:BTW, I used the Mastodon logo from https://joinmastodon.org/logos/logo-purple.svg (https://joinmastodon.org/branding).