Pure CSS Icons
In this article, we will learn how to use icons in Pure CSS & will understand its implementation through examples. Pure CSS does not have any icon component, there are so many icon packages available that can be used in Pure CSS. In all of those icon packages, there are 3 most and easy use icons packages that are described below:
- Font Awesome Icons: Font-awesome is a web icon library that gives you scalable vector icons that can be customized in terms of color, size, and in many more aspects.
- Google Material Icons: Icons can be added to our HTML page from the icon library. All the icons in the library can be formatted using CSS. They can be customized according to size, color, shadow, etc.
- Bootstrap Icons: Bootstrap Icons are designed to figure with Bootstrap components, from form controls to navigation. Bootstrap Icons are SVGs, in order that they scale quickly and simply.
The below examples will illustrate the use of these packages with Pure CSS.
Example 1: In this example, we will use a fire icon for 3 different packages. These icons have different appearances with different classes for these 3 packages.
Example 2: This example illustrates the use of button icons in Pure CSS. We will utilize the same example that we have used above & implement the button icon on it. Please refer to the How to use buttons with icons using Pure CSS? article for further details.