I need to dynamically change the color in the react component for specific selector. In scss (use sass) i have the following rule:
foo.bar.var * {
color: blue;
}
I want to change it in react code, to be yellow, red or something else.
I cant use
style
property for element, cause i need the selector to apply for all subchilds !=)
Is there any native ways? Or should i use Radium? Or is there any similar libs for this? Maybe css-next some hove can help with this?
I have color picker, i cant write class styles for every color =(
For some answerers NOTE:
So i have selector in some scss file, that imported in some root js file with
.class * {color: $somecolor}
and i need change the $somecolor in that selector, during picking colors in color picker
Maybe i can somehow set selector for all nested inside style
property? or there is the way how to recursively apply css style for every nested items from the style
prop?