Current color

noun

say it: “KUR-unt KUL-er” /ˈkɜːrənt ˈkʌlər/

A CSS keyword, written currentColor, that means this element's text color, so a border, an icon or a shadow can follow the text color when it changes.

What is currentColor?

currentColor means "whatever the text color is". Borders and icons that use it always match the text.

.tag { color: teal; border: 1px solid currentColor; }   /* the border matches the text */

In a sentence

  • “I gave the button a 2px solid currentColor border, so when hover turned the text orange, the border turned orange too.”

Level: Freelancer · More CSS terms at this level

Updated