1.6.0 • Published 3 years ago
@scavengerbot/cryptofont v1.6.0
Cryptocurrency Icon Font
A cryptocurrency font with over 400+ icons and actively being added to. Check out the demo.
Usage
Install locally
npm install @scavengerbot/cryptofontOr use with CDN
https://cdn.jsdelivr.net/npm/@scavengerbot/cryptofont/style.css
https://cdn.jsdelivr.net/npm/@scavengerbot/cryptofont/style.min.cssIcon Example
<span class="sbi sbi-btc"></span>Contributing
Designing Icons
- Find the original SVG icon and add it to the
icons/originalfolder - Open the
icons/starter.svgfile in Adobe Illustrator - Scale the original icon down to the correct pixel dimensions
(32x32) - Icon fonts can't be multicolored so choose the color best suited for the icon and apply it to the circle (ellipsis)
- Center the original icon on top of the ellipsis (
Horizontal Align CenterandVertical Align Center) - Use the Pathfinder tool to cut out the shape from the circle (
Minus Front) - Select all the paths you want to merge and exclude any internal paths you do not
- Open your Pathfinder and click
Uniteto merge the objects - Go to top menu and click
Objecttab, in drop down choosecompound pathand clickmakeor you pressctrl+8 - When finished
Save Asto theicons/colorfolder and name the icon correctly (this name will be the name used in the css class)
Contributing Icons
- Fork the repo
- Clone the repo
- Navigate to the project on your local machine
- Pull the latest changes
- Create a new feature branch
- Add original svg icons (multicolor) to the
icons/originalfolder - Add new svg icons (1 color) to the
icons/colorfolder - Go to icomoon and import the
selection.jsonfile and click YES to settings - Drag and Drop new icons from
icons/colorfolder into icomoon and be sure they are selected - Drag and Drop selected icons to bottom
- Click "Generate Font" at bottom right and then "Download"
- Replace everything in the local folder with the newly downloaded folder
- Update the
package.jsonversion number i.e. (1.3.0 to 1.4.0) - Commit your changes and list which icons were added
- Push your changes to your fork
- Create the Pull Request
For project maintainers
- When new PR's come in, test everything before merging
- Make sure the
package.jsonversion is bumped up - Merge the PR and remove the feature branch
- Publish package to NPM
npm publish - Update codepen demo
- Purge npm cryptofont stylesheet to receive new version
Special Thanks 👏
To those involved at SPOTHQ for the start. To those involved at CryptoFonts
