Skip to content

Need more specific examples in the docs #37

@yehosef

Description

@yehosef

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions