Add IcoMoon to Angular Project
Published: 2021-06-07 22:13:49

Follow https://icomoon.io/ and click on IcoMoon App. 
![IcoMoon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/coda0jnw8pgomksaqa4a.png)

This will take you to a new page probably with a default set. You can remove this if need by clicking in the menu an selecting the option Remove set.
![remove](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kq3t89smtt0o0veb8zrj.png)

Now we are ready to create a new library on IcoMoon. Click on Import Icons button. 
![import](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4b6xoqb31alyoma1qx6.png)

Import the set of icon you want.
![icons](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ae3hknici410rh7bfd18.png)
 
If the Library name is not set you can do it by clicking on the menu, and select the option Properties.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vf2t88i0najp1dy6dr5i.png)

Modal will be display showing the properties of the set, click on Edit Metadata. After  a form will appear, here set the name as you wish and close the form to save it
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wszfg98pomfsmj85jqc7.png)

All icons will be display on IcoMoon page now select all to add them to the library by clicking on them. On the bottom of the page we will see the number of icons selected, then we click on Generate Font.
![generate](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/906ybwh5ny0xwzwjpllk.png)

Update the names if need, for example for filled icons I'll add the suffix -fill. Ex bell-fill
 ![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p88k1455ap2fbvmgxn2y.png)
 
Now we make sure the set the font name  by clicking on Preferences.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mobrvllmcbcf4hlloxdt.png)

A modal will appear, we set the font name and we can also change the class prefix.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pysc18tzj5nbtxau8h4v.png)

Now we continue by clicking Download, .zip file will be download
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pfwxcz1reycv7bdq8xog.png)

Extract the files into your PC. 
This folder  must contain :
•	Demo file -> demo.html
•	Styles file -> styles.css
•	Fonts folder -> fonts to display the icons

At this point we finish with the part of IcoMoon page, now we continue to update in the project. For this case we will take an Angular project as a reference. The process should be similar in any other project.

Inside the project search for the assets folder and add (copy) the Fonts folder.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfo9b7mddo90vrgbfqgz.png)

The fonts with the icons are ready to use, in this project I have a separate file for the icons but we can add the styles.css in the styles file of the project.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7yfe47l5bqps0h03cacm.png)

Now we can use the icons inside the html by adding the class of the icon we need. Ex:
 ![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6fe9yat1c5n871thsyj4.png)
 ![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jiqu0xwqa9rgqw2wh2w8.png)