JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">test</div>

CSS

#test{background-color:#ff0000}

JavaScript

AvGen = {
    paper: null,
    theBody: {
        bodies: [
            [0,0,277.9,308.5,{
                type:'path',
                'fill':'#e59225',
                'stroke':'none',
                'stroke-width':'0',
                'fill-opacity':'1',
                'stroke-opacity':'0'
            }],
        ],
        currNr: 1,
        currObj: null,
        bodyColor: '#e59225'
    },

    init: function() {

    }
}

$(document).ready(function(){
    
    $('#test').attr('style', 'background-color:' + AvGen.theBody.bodyColor);
});