hi, I just managed to have it done by creating a dynamic class:
// Inject dynamic styles based on school colors
useEffect(() => {
const styleSheet = document.styleSheets[0];
resourceData.forEach((resource) => {
const className = `checkbox-${resource.id}`;
const rule = `
.property-panel-content .e-checkbox-wrapper.${className} .e-frame {
background-color: ${resource.schoolColor};
border-color: transparent;
}
`;
styleSheet.insertRule(rule, styleSheet.cssRules.length);
});
}, [resourceData]);
and then