JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test" style="font: bold 20px arial; color: red;">
    test
</div>

JavaScript

alert($('#test').css('font'));