JavaScript HTML CSS
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
test
.babelrc
.gitignore
.npmignore
LICENSE.md
README.md
gulpfile.babel.js
package.json
yarn.lock

README.md

PostCSS Octicon

XO code style

Postcss plugin for octicons.

Install

yarn add -D postcss-octicon
postcss([octicon])

Usage

Input

.foo:before {
  /*
    octicon(iconName, fillColor);
   */
  content: octicon(alert, orange);
}

Output

.foo:before {
  content: url(data:image/svg+xml;base64,...);
}

License

The MIT License (MIT)

Copyright (c) 2017 nju33 nju33.ki@gmail.com