Set the background color of the Skuid Header dynamically on basis of the value of a field in custom

you will need to place it in quotes, but I believe that should work:
skuid.$(‘.HeaderComponentCssClass’).css(“background-color”,“red !important”);