whether it is possible to dynamically change the style of a component to another style which is not in widget.xml?

or do something like this:
PHP Code:
...
<
parameters>
    <
parameter name="my_color">
        <
value>
            
red
        
</value>
    </
parameter>
</
parameters>
....
<
stylesheet>
tag_item{
         
color-1: $(my_color);
        }
</
stylesheet>
.... 
and then change style by changing parameter "my_color"?