Fill and stroke as parameters

It would be great to operate on fills and strokes as properties.
For example - I have several color variants of the same component. Instead of creating variants, I would like to define a property (e.g. positive / negative) and this would contain the info about the fill and stroke to show (it could work as a switch on/off of multiple fill / stroke styles)