How to get SCSS variables into react

UPDATE: The original answer claims that it is only supported by webpack, but this is no longer true. Many bundlers now support this via their own css processing pipeline. Original Answer: That’s a webpack/css-loader feature and only works with webpack and css-loader (https://webpack.js.org/loaders/css-loader/#separating-interoperable-css-only-and-css-module-features) Important: the :export syntax in your SCSS/CSS files will only work for … Read more