I am currently working on extracting a color value from the database and applying it to my external .css files. I have searched extensively online but haven't found a satisfactory solution yet. Here is the JavaScript code snippet:
createBackgroundHeaderColor() {
return `linear-gradient(0deg, rgba(0,0,0,0.0) 0%, ${this.data.setting.hbgColor} 90%)`;}
Below is the part of the code where I retrieve the color value from the database. And here's how I apply it in my CSS:
.focused {
background: createBackgroundHeaderColor !important;
}