title: How to share value from js object to sass variable in react-js?
body: <p>I'm trying to change my application theme colors dynamically. I want to get object from the server that has the values of the colors by JavaScript, then pass these values to sass variables.</p>
  
  <p>I found many articles about this but nothing worked for me below some of them: </p>
  
  <p><a href="https://itnext.io/sharing-variables-between-js-and-sass-using-webpack-sass-loader-713f51fa7fa0" rel="noreferrer">https://itnext.io/sharing-variables-between-js-and-sass-using-webpack-sass-loader-713f51fa7fa0</a></p>
  
  <p><a href="https://github.com/pmowrer/node-sass-json-importer#node-sass-json-importer" rel="noreferrer">https://github.com/pmowrer/node-sass-json-importer#node-sass-json-importer</a></p>
  
  <p><a href="https://stackoverflow.com/questions/9354319/is-there-a-way-to-import-variables-from-javascript-to-sass-or-vice-versa/47796586#47796586">Is there a way to import variables from javascript to sass or vice versa?</a></p>
  
  <p><a href="https://frontend-cookbook.ack.ee/pages/implementation/SharingVariables.html" rel="noreferrer">https://frontend-cookbook.ack.ee/pages/implementation/SharingVariables.html</a></p>