CSS | currentcolor keyword
The CSS currentcolor keyword is used to define the color but use the currently used color property. If you want to use the same color at multiple places then you can easily use currentcolor keyword. Just you have to set a color property after that you can easily use currentcolor that will set the color for all the other places where you want to set them. So in future, if you want to change all the color then you need to change color in one place.
Example 1: In this example we will use currentcolor for box-shadow.
Example 2: Text Color on Backgrounds with currentcolor.
Supported Browsers: The browsers supported by CSS currentcolor keyword are listed below:
- Google Chrome
- Internet Explorer