Is there a way to extract a CSS value from a specific class on a webpage and then use it for styling other elements in different ways?
I created an example on jsfiddle where I want to retrieve the background color from
.box
and save it to a variable named "bg".