layout-primitives
2.0.0 • Public • Published Layout Primitives built using Emotion and React
Implementation:
yarn add layout-primitives emotion theme-provider
- Add emotion to
.babelrc
- Add the
ThemeProvider
at the top level of your app, with the theme function from utils
- Make awesome things
Usage:
import { ThemeProvider, withTheme } from 'theme-provider';
import { Container, makeTheme } from 'layout-primitives';
const Wrapper = withTheme(Container);
const App = () => (
<ThemeProvider theme={...makeTheme()}>
<Wrapper>
<h1>Hello World</h1>
</Wrapper>
</ThemeProvider>
);
Package Sidebar
Install
Weekly Downloads