How to use form className?

I have a style and form definition as below:

<style>
    .myLabel {
    color: red;
    }
</style>

{type: "label", label: "Some text", className: "myLabel"}

The label renders and I can see in the dom that my custom class has been included but the style does not get applied. It looks like the material style is overriding my custom style for the color property, Any ideas?

Unfortunately it is not available to customize the text color of the dhtmlxForm.