use variables

https://www.youtube.com/watch?v=83F7PrfX5qw
$grayColor = "#eee";

.myClass{
    color: $grayColor;
}
.myBackground{
    background-color: $grayColor;
}

install sass in react.

$ npm add -D cass

Now, all you have to do is import when you create a file. for example: style.scss

import 'style.scss'


use in nested

SX9lDjFgeUU