You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap your App in a ThemeProvider component like this:
24
+
Assuming you're using webpack, you'll need to use sass-extract-loader to require/transform your sass variables file. Then you can pass the styles as a theme via a ThemeProvider component like this:
25
25
26
26
```jsx
27
-
// Import `sass-extract` library
28
-
importsassExtractfrom'sass-extract';
29
-
30
-
// Call the `renderSync` function with the path to your Sass file
31
-
// and specify the `sass-extract-js` plugin
32
-
constrendered=sassExtract.renderSync({
33
-
file:'./path/to/vars.scss'
34
-
}, {
35
-
plugins: ['sass-extract-js']
36
-
});
27
+
// Require your sass variables using sass-extract-loader and specify the plugin
0 commit comments