react-toolbox / react-toolbox-themr

A tool to statically extract and generate custom themes for React Toolbox
MIT License
240 stars 24 forks source link

theme.css doesn't work in react-boilerplate #41

Open glocore opened 7 years ago

glocore commented 7 years ago

I followed the steps given in the readme, but when I try a simple button <Button primary raised>Welcome to RT</Button>, it doesn't take any styling.

screenshot from 2017-04-15 12-26-47

I tried including the generated CSS file assets/react-toolbox/theme.css in react-boilerplate/app/app.js, but I get the following error:

screenshot from 2017-04-15 12-31-40

Riff451 commented 7 years ago

Hello @platonish , having assets folder inside react-boilerplate/app/ I've used this import in app.js and it works: import '!style-loader!css-loader!./assets/react-toolbox/theme.css';