# currentColor in CSS


currentColor acts like a variable for the current value of the color property on the element.

//Html


```
<div>Hello from currentColor</div>

``` 


//css


```
div {    color: blue;    
  border: 5px solid currentColor;    
 box-shadow: 0 0 5px solid currentColor; }

``` 


![](https://cdn.hashnode.com/res/hashnode/image/upload/v1639214151281/Vf9emu2mP.png)

Happy Coding… 👏👏
