{"name":"@emotion/provider","version":"0.0.4","description":"A provider component to provide options to emotion and allow theming","main":"dist/index.cjs.js","module":"dist/index.es.js","license":"MIT","repository":{"type":"git","url":"https://github.com/emotion-js/next/tree/master/packages/provider"},"peerDependencies":{"react":">=16.3.0 || 16.3.0-alpha.0"},"publishConfig":{"access":"public"},"_id":"@emotion/provider@0.0.4","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-guSMHdaBKoNW/UxNkksX/ULm8RR3vPJb4Mwxg4fOp4M4ZCe+q3B3okTZAIfty5c6i/2TuoVoepUK5rNqQe3A9g==","shasum":"0ffcf6839170e58266fe48ca1d9680a038c898b7","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.0.4.tgz","fileCount":8,"unpackedSize":43852,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaacnu1F3L6fVU3u/sUtJKEWCPXCVHuvbeltp92fErmQIhAN1/JhpUI9mp6guJzlz34s0+rV8dLwIuVYChY+1ESRsb"}],"size":6272,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.0.4.tgz"},"maintainers":[{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},{"name":"tkh44","email":"kye.hohenberger@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_0.0.4_1518185364316_0.6204475661027593"},"_hasShrinkwrap":false,"readme":"# @emotion/provider\n\n> A React component to provide a theme to child components\n\n## Install\n\n```bash\nyarn add @emotion/provider\n```\n\n## Usage\n\n```jsx\n/** @jsx jsx */\nimport { jsx } from '@emotion/jsx'\nimport styled from '@emotion/styled'\nimport * as React from 'react'\nimport ThemeProvider from '@emotion/provider'\n\nlet SomeParagraph = styled.p`\n  color: ${props => props.theme.primaryColor};\n`\n\nclass SomeComponent extends React.Component {\n  constructor(props) {\n    super(props)\n    this.state = {\n      theme: {\n        primaryColor: 'hotpink'\n      }\n    }\n  }\n  render() {\n    return (\n      <ThemeProvider theme={this.state.theme}>\n        <h1 css={theme => ({ color: theme.primaryColor })}>some heading</h1>\n        <SomeParagraph>some text</SomeParagraph>\n      </ThemeProvider>\n    )\n  }\n}\n```\n","publish_time":1518185364390,"_cnpm_publish_time":1518185364390,"dist-tags":{"latest":"0.11.2"}}