Border-color with the same color of parent font dynamically .foo border-color currentColor color tomato !important, It works with all elements inside of parent. Codepen Example 🤘🤘