Color switch widgets [css]

similar to this question...

i like to color the background (and maybe the text color) of every switch in the switch widget with a predefined color.

The values property looks like this:

{
"all": "all",
"WAH":"WAH",
....
}

In the Inspector the individual switches of the the switch widget
<value class> "all" ::after </value>

when using just "value" all switches getting the same color...

Thanks!

https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child