raulghm / Font-Awesome-Stylus

Stylus port for font-awesome 4.7.0
https://github.com/raulghm/Font-Awesome-Stylus
GNU General Public License v2.0
78 stars 26 forks source link

Need more specific examples in the docs #37

Open yehosef opened 6 years ago

yehosef commented 6 years ago

Example of requiring and using font-awesome middleware to create compile function to utilize in other frameworks

I'm sorry if this is a noob question - I'm a noob in this realm. I'm new to stylus and font-awesome. I'm playing around with https://github.com/vuejs/vue-hackernews-2.0 and it uses stylus in the components.

I'm not clear how to use this in a project. Here are some of my questions:

Is the $fa-font = ... in a certain stylus file, or all of them?

The same with the code var fontAwesome = ..., function compile(str) { .... Do I need this always or only in certain situations. And where do I put it?

And for the usage - the example is fa(user) - can I combine other properties like those at http://fontawesome.io/examples/#basic - eg fa(user rotate-90 2x)

a few full examples would really be helpful.