Skip to content

Instantly share code, notes, and snippets.

@jxnblk
Created June 11, 2018 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jxnblk/ecb4a036aa64349ba3b73ab39d7dbdf6 to your computer and use it in GitHub Desktop.
Save jxnblk/ecb4a036aa64349ba3b73ab39d7dbdf6 to your computer and use it in GitHub Desktop.
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>
{
"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