Skip to content

nju33/postcss-octicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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