DEV Community

Cover image for 7 popular Icon libraries you can use in your websites
Sam
Sam

Posted on • Originally published at blog.dotenx.com

7 popular Icon libraries you can use in your websites

Icons are an essential part of modern web design, as they provide a visual representation of an idea or concept simply and concisely. They are often used in navigation menus, buttons, and other interactive elements on a website to help users understand the purpose and function of those elements. In addition, icons can be used to add visual interest and personality to a website, helping to make it more engaging and appealing to users.

There is a wide range of icon libraries available for use in web design, each with its own unique aesthetic and set of icons. These libraries provide a convenient way to access a wide range of scalable vector icons that can be easily customized using CSS code. By using icons from these libraries, you can quickly and easily add visual elements to your website designs, helping to enhance the user experience and make your website more engaging and appealing.

Before we move on, I invite you to check DoTenX to create your free account and start building full-stack applications without coding. On DoTenX you can easily customise your applications with custom code.

If you're using DoTenX to build your website, make sure to switch to advanced mode and add the link tags to the head of your pages.


1) Font Awesome: Font Awesome is the most popular icon library that provides a massive range of icons that can be easily customized with CSS. To use Font Awesome, simply include the library's CSS file in your HTML code and then use the i tag with the relevant icon class to display the desired icon. The following code displays the "search" icon from Font Awesome:

<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet">

<i class="fa fa-search"></i>
Enter fullscreen mode Exit fullscreen mode

2) Material Icons: Material Icons is also a popular icon library, designed to match Google's Material Design aesthetic. To use Material Icons, same as before, you just need to include the library's CSS file in the head tag and then use the i tag with the relevant icon class to display the desired icon. For instance, the following code displays the "search" icon from Material Icons:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<i class="material-icons">search</i>
Enter fullscreen mode Exit fullscreen mode

3) Ionicons: Ionicons library offers icons that are designed to match the Ionic framework's design aesthetic. To use Ionicons include the library's CSS file in the head tag of your HTML page, and then use the i tag with the relevant icon class to display the desired icon. As an example, you can use the following code to use the "search" icon from Ionicons:

<link href="https://unpkg.com/ionicons@5.1.2/dist/css/ionicons.min.css" rel="stylesheet">

<i class="ion-search"></i>
Enter fullscreen mode Exit fullscreen mode

4) Bootstrap Icons: Bootstrap Icons is a popular icon library that provides a wide range of scalable vector icons that are designed to match the Bootstrap framework's design aesthetic. To use Bootstrap Icons, you simply need to include the library's CSS file in your page, and then use the i tag with the relevant icon class to display the desired icon. For example, the following code displays the "search" icon from Bootstrap Icons:

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">

<i class="fas fa-search"></i>
Enter fullscreen mode Exit fullscreen mode

5) Feather Icons: Feather Icons is one of the popular icon library that offers a wide range of scalable vector icons that are designed to be lightweight and easy to customize. To use Feather Icons, simply include the library's CSS file in the head of the page, and then use the i tag with the relevant icon class to display the desired icon. For instance, the following code displays the "search" icon from Feather Icons:

<link href="https://unpkg.com/feather-icons@4.28.0/dist/feather.min.css" rel="stylesheet">

<i data-feather="search"></i>
Enter fullscreen mode Exit fullscreen mode

6) Line Awesome: Line Awesome is another library designed to be easily customised and integrated with Bootstrap. To use Line Awesome, again include the library's CSS file in your page, and then use the i tag with the relevant icon class to display the desired icon. For instance, this is how you can display the "search" icon from Line Awesome:

<link href="https://cdn.jsdelivr.net/npm/line-awesome@1.3.0/dist/line-awesome/css/line-awesome.min.css" rel="stylesheet">

<i class="la la-search"></i>
Enter fullscreen mode Exit fullscreen mode

7) Nucleo: Last but not least, we have Nucleo. Similar to previous libraries, to use Nucleo, just include the library's CSS file in the head tag, and then use the i tag with the relevant icon class to display the desired icon. This is how you can display the "search" icon from Nucleo:

<link href="https://cdn.jsdelivr.net/npm/@nucleo/icons@0.3.1/css/nucleo-icons.min.css" rel="stylesheet">

<i class="ni ni-search"></i>
Enter fullscreen mode Exit fullscreen mode

Top comments (15)

Collapse
 
fanreza profile image
Muhamad Jamil

i used to iconify, its like combine all of icon library to one library

Collapse
 
mohsenkamrani profile image
Sam

Thanks for mentioning this. Good addition.

Collapse
 
j471n profile image
Jatin Sharma • Edited

I use react-icons all the time. It contains many libraries like Font Awesome, Game Icons, Heroicons, Ionicons, etc

For more info visit here

Collapse
 
mohsenkamrani profile image
Sam

Great addition Jatin. This post was more about the libraries you can use everywhere. I'll publish another post targeting only React.

Collapse
 
robertbernstein profile image
Robert Bernstein

This is a great article. Thanks for all the resources! I would just suggest that you include a link to each library's homepage for those who want to read up on them further.

Collapse
 
mohsenkamrani profile image
Sam

Glad you find it useful. Thanks for the good idea. Will add the links soon.

Collapse
 
tr11 profile image
Tiago Rangel

Great post, thanks!

Collapse
 
mohsenkamrani profile image
Sam

Glad you liked it, Tiago!

Collapse
 
charlesloder profile image
Charles Loder • Edited

Friconix is nice because it allows you to download only the icons you need

Collapse
 
siddikshaikh786 profile image
Siddik Shaikh

Tq FYKI

Collapse
 
trackhuynk profile image
Grace Huynh

Im using Font Awesome all the time

Collapse
 
mohsenkamrani profile image
Sam

Yup, that's my favourite too. It's awesome indeed!

Collapse
 
insomniak profile image
lapanikeugene

Without icon examples this article is not 100% useful

Collapse
 
dvqc profile image
Benfares Ibrahim

I don't really like using icon libraries because they tend to significantly increase your website's bundle size. Instead, I download only the icons that I'd be using in my project.

Collapse
 
mohsenkamrani profile image
Sam

There are usually some ways to just get the icons you need from the libraries.