react-cosmos-background-proxy
Easily apply both global and fixture specific background settings for react-cosmos
Installation
npm install --save-dev react-cosmos-background-proxy
Usage
Basic
// cosmos.proxies.js; ;
// __fixtures__/example.js component: MyComponent // will apply this style to the <body> element of the fixture iFrame background: backgroundColor: 'white' ;
Global Styling
// cosmos.proxies.js; ;
Contributions are more than welcome! 🍻