This repository generates icon fonts for core-template using the fantasticon npm package. The necessary files are copied into core-template automatically and will override any fonts and css that already exist. The file paths for the generated files can be found in .fantasticonrc.js
You can view the icons by going to <domainname>/icons.html
- Clone this repo into the same parent directory as core-template.
npm iinside the icon-font-generator directory.
- Add SVG icons to the
srcfolder. Icons must be 24px by 24px. npm run create-icons.- In core-template, open
site/icons.html.jet. - Change the stylesheet link to point to the styles folder
<link rel="stylesheet" href="/styles/icons.css" />
<i class="icon icon-search"></i>
A unique class is generated from the SVG name with the icon prefix added.