How do I change the color of Fabric icons? #80
Answered
by
digitalsadhu
digitalsadhu
asked this question in
Q&A
-
|
The design I'm working against uses icons that are colored but the Fabric icons package only provides grey. How can I deal with this? |
Beta Was this translation helpful? Give feedback.
Answered by
digitalsadhu
Apr 19, 2022
Replies: 1 comment
-
|
Whoa whoa whoa. Hold up there. First. Check that the icon you are using really should be colored. There are some cases where icons can be primary blue rather than grey but outside of that you might want to ask your designer to check in with the other designers about this. Ok, that said. If you do need an icon to be a color other than grey, here are your options.
For React, this will look like: <LockShield className="text-blue-600" />Similar in Vue <lock-shield class="text-blue-600" />
<div class="text-blue-600">
${svg}
</div> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
digitalsadhu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whoa whoa whoa. Hold up there. First. Check that the icon you are using really should be colored. There are some cases where icons can be primary blue rather than grey but outside of that you might want to ask your designer to check in with the other designers about this.
Ok, that said. If you do need an icon to be a color other than grey, here are your options.
For React, this will look like:
Similar in Vue