Imagine having a CSS property called box-shadow
:
box-shadow: 5px 5px 0 #ccc;
What if there is a need to create a variable from the color #ccc
? While in SCSS, you could accomplish this with code like:
$grey: #ccc;
.element {
box-shadow: 5px 5px 0 $grey;
}
However, it doesn't seem to work with regular CSS variables. Could there be a missing piece that I am not aware of?