DEV Community

Discussion on: Use `currentColor` to Keep CSS DRY and Component Colors Flexible

 
5t3ph profile image
Stephanie Eckles

It is standard and has terrific browser support, clear back to IE9!

caniuse.com/#feat=currentcolor

The power is in using it for additional CSS properties beyond border color or SVG fill πŸ‘πŸ» It can even be used in gradients.

Thread Thread
 
taufik_nurrohman profile image
Taufik Nurrohman • Edited

But personally, I would prefer current-color or currentcolor just so that it would match to the CSS naming convention πŸ˜ƒ

I hope this value becomes case insensitive in the future. Same hope for viewBox attribute in SVG. I would like to see it as view-box or viewbox.