Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nju33/postcss-octicon
Postcss plugin for octicons
https://github.com/nju33/postcss-octicon
base64 icons octicon postcss postcss-plugin svg
Last synced: 5 days ago
JSON representation
Postcss plugin for octicons
- Host: GitHub
- URL: https://github.com/nju33/postcss-octicon
- Owner: nju33
- License: mit
- Created: 2017-04-01T06:13:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-01T07:33:28.000Z (over 7 years ago)
- Last Synced: 2024-04-24T01:21:36.173Z (7 months ago)
- Topics: base64, icons, octicon, postcss, postcss-plugin, svg
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/postcss-octicon
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PostCSS Octicon
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
Postcss plugin for [octicons](https://octicons.github.com/).
## Install
```bash
yarn add -D postcss-octicon
``````js
postcss([octicon])
```## Usage
### Input
```css
.foo:before {
/*
octicon(iconName, fillColor);
*/
content: octicon(alert, orange);
}
```### Output
```css
.foo:before {
content: url(data:image/svg+xml;base64,...);
}
```## License
The MIT License (MIT)
Copyright (c) 2017 nju33