Skip to content

alp82/react-cosmos-glamorous-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-cosmos-glamorous-proxy

A simple proxy for react-cosmos to load glamorous themes.

It's basically wrapping your components with a ThemeProvider.

Getting started

Be sure to have all needed peer dependencies installed.

Import glamorous-proxy and create a new proxy instance with your theme:

// config/cosmos/glamorous-proxy.js
import myTheme from 'theme/myTheme';

const GlamorousProxy = createGlamorousProxy({
  theme: myTheme,
});

export default GlamorousProxy;

Use this instance in your proxy config:

// cosmos.proxies.js
import glamorousProxy from 'config/cosmos/glamorous-proxy';

export default [glamorousProxy];

About

A simple proxy for react-cosmos to load glamorous themes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published