octicons-extended
v1.0.2
Published
A handcrafted extension to Github's beautiful Octicons
Downloads
9
Maintainers
Readme
Octicons Extended
A handcrafted extension to GitHub’s beautiful Octicons. This is the Node build. Use React build to access Octicons Extended in React projects.
Usage
The usage is almost identical to the original Octicons and all original icons are covered. Therefore, transferring from the Octicons to Octicons Extended requires almost minimal modifications to your existing code.
// grab an icon
var octicons = require("octicons-extended")
octicons.alert
// output
"alert": {
"name": "alert",
"category": "original octicons",
"heights": {
"16": {
"width": 16,
"path": "<path fill-rule=\"evenodd\" d=\"M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z\"></path>"
},
"24": {
"width": 24,
"path": "<path d=\"M13 17.5a1 1 0 11-2 0 1 1 0 012 0zm-.25-8.25a.75.75 0 10-1.5 0v4.5a.75.75 0 101.5 0v-4.5z\"></path><path fill-rule=\"evenodd\" d=\"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752L9.836 3.244zm3.03.751a1 1 0 00-1.732 0L2.168 19.499A1 1 0 003.034 21h17.932a1 1 0 00.866-1.5L12.866 3.995z\"></path>"
}
}
}
Contributing
Feedback, ideas, and bug reports
If you have feedback and ideas for improvement, open a new issue in the repo.
Request a new icon
Icon requests are welcome! Don't hesitate providing an idea or a detailed example. To request a new icon, simply open an issue.
Adding or updating an icon
Pipelines are being set up to make this easier. Meanwhile, just drop your icon into icons/[one-of-the-categies]
. Make sure the filename is [icon-name]-[icon-size].svg
. Then create a pull request.
License
When using the GitHub logos, be sure to follow the GitHub logo guidelines.
Code License: MIT Applies to all other files