{"name":"@emotion/provider","version":"0.2.1","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"},"dependencies":{"@emotion/cache":"^0.2.1"},"peerDependencies":{"@emotion/core":"0.x.x","react":">=16.3.0 || 16.3.0-alpha.0"},"publishConfig":{"access":"public"},"files":["src","dist"],"_id":"@emotion/provider@0.2.1","dist":{"shasum":"1d8c964e4c0df70d9d539cd0052c38d12aaf6771","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.2.1.tgz","fileCount":11,"unpackedSize":60655,"integrity":"sha512-Wq+om3cn1V1oG/UBl2Lx5c4LUoVpDRoOcSvRZKJhPpCXdDr0FX6hoCzpnmFrjZsxlFR7dddPbEbjau2t0aKPqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHD9zJfQWhtw7ze/lMh2VuOC+P1sjwKQUfa99uvz1dISAiEApfXUPgm/fjdjDCEIBd69VBt24TIbSNKw6bAELt+Y5Ew="}],"size":8828,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.2.1.tgz"},"maintainers":[{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},{"name":"tkh44","email":"kye.hohenberger@gmail.com"}],"_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_0.2.1_1518567826949_0.6759903852531852"},"_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":1518567827080,"_cnpm_publish_time":1518567827080,"dist-tags":{"latest":"0.11.2"}}