font awesome color code example
Example 1: change font awesome icon size
<i class="fas fa-camera fa-xs"></i>
<i class="fas fa-camera fa-sm"></i>
<i class="fas fa-camera fa-lg"></i>
<i class="fas fa-camera fa-2x"></i>
<i class="fas fa-camera fa-3x"></i>
<i class="fas fa-camera fa-5x"></i>
<i class="fas fa-camera fa-7x"></i>
<i class="fas fa-camera fa-10x"></i>
Example 2: css change font awesome icon color
<a href="/users/edit"><i class="fa fa-cog" style="color:black !important;"></i> Edit profile</a>
Example 3: css change font awesome icon color
.fa {
color: red !important;
}
Example 4: font awesome color icons
<span style="font-size: 3em; color: Tomato;">
<i class="fas fa-camera"></i>
</span>
<span style="font-size: 48px; color: Dodgerblue;">
<i class="fas fa-camera"></i>
</span>
<span style="font-size: 3rem;">
<span style="color: Mediumslateblue;">
<i class="fas fa-camera"></i>
</span>
</span>
Example 5: css change font awesome icon color
.<fa-icon-class> { color: red !important; }