Can I change the color of Font Awesome's icon color?
This worked for me:
.icon-cog {
color: black;
}
For versions of Font Awesome above 4.7.0, it looks this:
.fa-cog {
color: black;
}
HTML:
<i class="icon-cog blackiconcolor">
css :
.blackiconcolor {color:black;}
you can also add extra class to the button icon...
You can specify the color in the style attribute:
<a href="/users/edit"><i class="icon-cog" style="color:black"></i> Edit profile</a>
To change the font awesome icons color for your entire project use this in your css
.fa {
color : red;
}