Skip to content

Setting default font colors - svg fill currentColor not behaving as expected #13750

Closed Answered by wongjn
Der-Alex asked this question in Help
Discussion options

You must be logged in to vote

Setting the color property for * means that you override the default inherit value. Thus the currentColor value on the <path> is resolved as red.500 from the * rule you have, instead of inheriting from parents, that you seem to desire.

You could:


As an aside, Adam Wathan, creator of Tailwind advocates avoiding @apply:
https://twitter.com/adamwathan/status/1226511611592085504
https://twitter.com/adamwathan/status/1559250403547652097

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Der-Alex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants