I’m using the FontAwsome implementetion from miguel-s/ex_fontawesome.
It renders the icons as expected, but I’m not sure how change the colors of the icons.
I would like to use white icons instead of the default black ones.
The official FontAwsome docs says it’s possible to add colors by using a CSS style tag.
It does support a class attribute though, so if you’re using something like Tailwind (or have your own classes that change text colours) you could use those instead.
The “icon” class is now added to the generated HTML.
I applied this to my CSS, but non it had no impact.
nav .icon {
font-size: 42px;
color: white;
}
I have tried to change font-size and color by the Chrome Development tooling, but that didn’t have any impact either.
Can you see what I’m doing wrong?