BEM port of Font Awesome
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fa Changed the default tag to <span> (#3) Mar 13, 2017
.gitignore initial Mar 5, 2017
README.md Update README.md Mar 20, 2017
bower.json Add bower.json Mar 7, 2017
generate.js Support aliases Mar 15, 2017
package.json package.json: Add homepage link Mar 7, 2017

README.md

bem-font-awesome

BEM port of Font Awesome.

See also bem-font-awesome-icons — Font Awesome icons extracted as SVG and provided via backgrounds or BEMHTML/BH tempaltes so no font required and only needed icons will be used.

Content

fa/
    fa.css # common styles
    _icon/
        fa_icon_500px.css
        fa_icon_address-book-o.css
        fa_icon_address-book.css
        fa_icon_adjust.css
        fa_icon_adn.css
        # and so on

Installation

  1. Add the library to project dependencies:
    npm i bem-font-awesome --save
    
  2. Add it as redefinition level

You're done :)

Usage

BEMJSON

{ block: 'fa', mods: { icon: '500px' } }

HTML

<span class="fa fa_icon_500px"></span>