klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 295 forks source link

"Extending Twine" suggestion: option to use Tabler icons for toolbar buttons instead of having to supply icons oneself #949

Open webbedspace opened 3 years ago

webbedspace commented 3 years ago

I feel like most story format toolbars will generally need the same kinds of symbols: bold, italic, hyperlink, borders, colours, alignment, columns, etc. It would be convenient if the same icon library that Twine uses was made available to story formats. I envision specifying icon-tabler-, and a suffix, for the "icon" property, in place of a URI.

Tabler has an icon font .woff which can be included, even if the Twine UI only uses its transcluded SVGs.

klembot commented 2 years ago

I get why this is an appealing idea. This is another place I was trying to keep Twine and story format extensions less tightly coupled, as I could imagine a lot of gnashing of teeth if the Font Awesome dep had been exposed to formats in the past and I switched to Tabler (there are many overlaps between the two, but it's not a one-to-one). A couple considerations...

From a practical standpoint, are there difficulties with adding the icons via NPM and including them during story format production? That was the strategy I was planning to use with Chapbook.