Created
June 11, 2018 17:32
-
-
Save jxnblk/ecb4a036aa64349ba3b73ab39d7dbdf6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import System from 'system-components/dist/System' | |
import styled from 'react-emotion' | |
const sys = new System({ | |
createComponent: type => (...styles) => styled(type)(...styles) | |
}) | |
const Heading = sys({ | |
fontSize: 5, | |
color: 'tomato' | |
}) | |
export default props => | |
<Heading bg='black'> | |
Hello emotion + system-components | |
</Heading> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"name": "emotion-system-components", | |
"scripts": { | |
"start": "npx @compositor/x0 . --open" | |
}, | |
"dependencies": { | |
"emotion": "^9.2.3", | |
"react": "^16.4.0", | |
"react-emotion": "^9.2.3", | |
"system-components": "^2.0.4" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment