npm.io
0.1.7 • Published 8 years ago

react-themable-hoc-aphrodite-interface

Licence
MIT
Version
0.1.7
Deps
1
Vulns
0
Weekly
0
Stars
1

react-themable-hoc-aphrodite-interface

Allows Aphrodite to be used with react-themable-hoc

npm i react-themable-hoc-aphrodite-interface

Usage

import AphroditeInterface from 'react-themable-hoc-aphrodite-interface';
import { ThemeManager } from 'react-themable-hoc';

const aphroditeInterface = new AphroditeInterface();
ThemeManager.setStyleInterface(jssInterface);
ThemeManager.addTheme('theme1', {
    // theme styles
});

Usage with aphrodite extensions

import { Stylesheet } from 'aphrodite';
import AphroditeInterface from 'react-themable-hoc-aphrodite-interface';

const customAphrodite = Stylesheet.extend([
    /*...extensions*/
]);

const aphroditeInterface = new AphroditeInterface(customAphrodite);

License

MIT

Keywords