CSS JavaScript HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example added dev version Apr 9, 2017
fonts update to 4.7.0 Nov 23, 2016
lib added dev version Apr 9, 2017
recipes update recipes May 10, 2017
.editorconfig added dev version Apr 9, 2017
.gitignore added dev version Apr 9, 2017
LICENSE Initial commit Oct 30, 2013
README.md added dev version Apr 9, 2017
bower.json update version May 10, 2017
index.styl added dev version Apr 9, 2017
package.json update version May 10, 2017

README.md

Font Awesome Stylus

Stylus Port for Font Awesome

Installation

Import font-awesome in your project and configure fonts path correctly ($fa-font-path)

Bower support

bower install font-awesome-stylus

NPM support

npm install font-awesome-stylus

Usage

Set font path

$fa-font-path = "../fonts"
// OR
$fa-font-path = "http://netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts"

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

var fontAwesome = require('font-awesome-stylus'),
    stylus      = require('stylus');

function compile(str) {
  return stylus(str)
    .use(fontAwesome());
}

To import whole font-awesome in your stylus file:

@import "font-awesome-stylus"

Include icon using mixin

.my-icon
  fa(user)

Original source

http://fortawesome.github.io/Font-Awesome