{"name":"@emotion/provider","version":"0.7.2","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.7.1"},"peerDependencies":{"@emotion/core":"0.x.x","react":">=16.3.0"},"publishConfig":{"access":"public"},"files":["src","dist"],"umd:main":"./dist/index.min.js","_id":"@emotion/provider@0.7.2","dist":{"shasum":"55cdfa349e2a7da4d9ad8ebd7319b91d0ab469b4","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.7.2.tgz","fileCount":13,"unpackedSize":129767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7S1qCRA9TVsSAnZWagAA4PsP/2IqFe6B7QYb1HkZ2AG3\nj+qb8lZKDtntX8jktRG/r3V4U/XEnqC5GcVCPJNu7CC8geezPuVIGu+85WFr\n2XH03DHwqUZKvloC0TuQjqWVh2vikT1tCfhLg/EI6W+2xivZ1YVYLy5U7o5d\nWwH7gu1+QEnRhb0D+nOLv/0Xno8SiU+9sTVuCyjwgyw/zw01UphyHVJz1xCL\nWtz0gIagrqDX4qBX7UgXNdsbgU9yA07y5FFOt7JMax0lrSGuRUJPPp7POuEL\n0D+GGYz0rlk1YtEtHmKQ5xSYv3m8KKZ2SOy3zSqOnwGtkbxWmzi1oJpap8cA\nD9nmeWiqlF6bihPAd0rNdZdtas1bvxFV9m0EsOtJoCcxXzzhRqj1xDXy8zEl\n+Ec9+6rvdKsyoQZGDymtb6S7rBEsyDdX2MjcADSyhROV27MAA0oS8c4+nf51\nEoY/lfui4JZwYgTC8r2zWrwQvSOiyyMDWUSwwMbtkImGb50wRdQAT0jCrCw3\nwu1/Nn7a5Y+rVhJCca4I5lN3WJryeFTpA/YnV5qO3ESugos0XVuZP5g7MSCk\nBmhhwNhu6tTW2dfzUGslkXSfSVTqkQ9gam/cGqYs58PgGktTOmO00lCRyxbW\n6fSg/WINJfsxwNL8oqT64sMcWJ9Y2CeMKCeJhonPTM2dIJZbiNZL0oWC4iYO\nlYtw\r\n=BzJz\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-36+iNO94aTJ7WURe83oCOQ0rHe6U447Dik1fcTsMRYxG9IRAtUfRbT6k7gDie352Vse7zbjwV57JS7cj6OZ2xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSqwmZY5AjZGtKVURs2hmgcWSTfOTn8DmXYlzWcIQAXwIgV1TM/e28n/oUeD8FNZ8jOxawFvsskHTmG/Nw+Wwv6mM="}],"size":29281,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.7.2.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.7.2_1525493097465_0.02569007821826319"},"_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":1525493097598,"_cnpm_publish_time":1525493097598,"dist-tags":{"latest":"0.11.2"}}