JSFiddle - React, Tailwind, and code Playground

HTML

<div id='box'></div>

CSS

#box {
    width:100px;
    height:100px;
    background-color:transparent;
    border:1px solid black;
}

JavaScript

$(function() {
    var bkgnd = $('#box').css('background-color');
    console.log('background-color is ' + bkgnd);
});