currentColor is kinda like a native CSS variable that takes the current value that the color property has. So instead of using the same color code everywhere, you can use currentColor
The idea looks really interesting to me but I'm not sure if it should be used in major projects or not. is it a good practice to use currentColor in CSS?
Mike Cornish
JS Developer • CSS Lover • UX Explorer
If you're asking in terms of support, Can I Use reports that you'll be fine as long as you don't care about old IE versions. Other than that, I don't see why not. I don't use it very often or see it talked about very often, so I assume most people just don't have much use for it. That doesn't mean you shouldn't give it a try, though.
The only time I think to use currentColor is when I want to make a button with a border color that matches the text color; that's about it. If you can find a good use for it, I'm sure people would love to hear about it.