JSFiddle - React, Tailwind, and code Playground
by wZVanG
HTML
<a href="#" class="one">One</a>
<a href="#" class="two">Two</a>
<a href="#" class="three">Three</a>
<div>Default link color: <b></b></div>
CSS
a{color:green}
.one{color:red}
.two{color:black}
.three{color:blue}
JavaScript
var element = document.createElement('a');
document.documentElement.appendChild(element);
var color = getComputedStyle(element).color;
document.documentElement.removeChild(element);
document.querySelector("div").style.color = color;
document.querySelector("b").innerHTML = color;