$ npm install fxos-tv-iconsThen include folowing file in HTML
<link rel="stylesheet" href="node_modules/fxos-tv-icons/fxos-tv-icons.css">Use i tag to represent an icon.
<i data-icon="camera" data-l10n-id="camera"></i>If you wish to make changes to the icon font you'll need to follow these steps:
- Add, remove or change respective
.svgfiles insideimages/. - Run
$ npm installto get pull in all the required build tools. - Make sure you have
fontforgeandttfautohintinstalled on your machine. The grunt-webfont installation guide outlines the prerequisites. - Run
$ grunt. - Load
index.htmllocally in your browser and check your icon looks good. - Submit a pull request.
- Module owner will review, land, and stamp a new version.
Run lint check with command:
$ npm run lint