https://github.com/hamlim/layout-primitives
A few (opinionated) styled defaults for layout built with React and Emotion 👨🎤
https://github.com/hamlim/layout-primitives
emotion layout react
Last synced: 2 months ago
JSON representation
A few (opinionated) styled defaults for layout built with React and Emotion 👨🎤
- Host: GitHub
- URL: https://github.com/hamlim/layout-primitives
- Owner: hamlim
- Created: 2017-07-11T00:00:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T00:14:07.000Z (almost 9 years ago)
- Last Synced: 2025-10-22T00:31:01.001Z (8 months ago)
- Topics: emotion, layout, react
- Language: JavaScript
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Layout Primitives built using Emotion and React
## Implementation:
1. `yarn add layout-primitives emotion`
2. Add emotion to `.babelrc`
3. Add the `ThemeProvider` at the top level of your app, with the theme function from `utils`
4. Make awesome things
## Usage:
```Javascript
import { ThemeProvider } from 'emotion/react';
import { Container, makeTheme } from 'layout-primitives';
const App = () => (
Hello World
);
```