Hatch's icon font library with 1000+ icons
Add the following to your ~/.npmrc (global, recommended) or create
a .npmrc in your project root:
@hatchsoftware:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
Replace YOUR_GITHUB_TOKEN with a GitHub Personal Access Token
(classic) with read:packages scope.
npm install @hatchsoftware/hatch-icons
In your CSS or SCSS:
@import "@hatchsoftware/hatch-icons/dist/hatch-icons.css";
Or in your JavaScript/TypeScript entry file:
import "@hatchsoftware/hatch-icons/dist/hatch-icons.css";
Download the font files from GitHub, copy them to your project, and import the CSS:
@import "path/to/hatch-icons.css";
Use icons in your HTML:
<i class="hi hi-arrows-arrow-up"></i>
<i class="hi hi-general-check"></i>
Icons inherit the current text color and size:
.my-icon {
font-size: 24px;
color: #ff4b24;
}