Skip to content
Discussion options

You must be logged in to vote

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.

  1. If you are using Vue or React components, you just need to set the text color you want on the icon.

For React, this will look like:

<LockShield className="text-blue-600" />

Similar in Vue

<lock-shield class="text-blue-600" />
  1. If you are using SVGs directly by importing the svg markup and adding it to the page, you can achieve s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by digitalsadhu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant