JSFiddle - React, Tailwind, and code Playground
HTML
<div class="doublefont">HELLO</div>
CSS
div.doublefont {
position: relative;
color: red;
font-family: arial;
}
div.doublefont:after {
content: attr(content);
color: blue;
font-family: tahoma;
position: absolute;
top: 0;
left: 0;
}
JavaScript
$('.doublefont').each(function() {
$(this).attr('content', $(this).html());
});