Kishan Jasani

Code, Creativity & Everything I Learn

currentColor CSS

The currentColor uses the current text color value.

It works something like this :

p { 
  color: red; 
  border: 5px solid currentColor;
  box-shadow: 0 0 5px solid currentColor;
}

You can use this value for other properties that accept color values like border, box-shadow, outline, background-color, and so on.

Leave a Reply

Your email address will not be published. Required fields are marked *