{"name":"@emotion/provider","version":"0.6.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"},"dependencies":{"@emotion/cache":"^0.6.4"},"peerDependencies":{"@emotion/core":"0.x.x","react":">=16.3.0"},"publishConfig":{"access":"public"},"files":["src","dist"],"_id":"@emotion/provider@0.6.4","dist":{"shasum":"6331194ae6534b4c3493fa766344fdeac54230c7","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.6.4.tgz","fileCount":11,"unpackedSize":57413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa0n+zCRA9TVsSAnZWagAAUDMP/0jf4cUs0OvrURmgiVkv\nJK8wJ0tl2aX+HepZ5vgzgGDEqiCL1d32aQXb9bnYJ/OeH45BX0dTkeBXpE3k\n4Fiaf34A0oQiovHFabaCmQa+YZYXLQjbfXRS0G7Y4TS+7u2GFZKhPq0G5uCn\nipJy8iBlC9cRgo89rvgIskYd49gpy7ouhZpA+0DBSiCRk53tcLjLh/gHr9Fb\nohnCvaQuZ1nsAJHhJmvRL9mg7ji9QD0WL/479IaKf/nzU8ootw5J8cHEqrYP\n5dmAQ9yZthlAuP5u9ZGJmZoUI0ORDeZ4n2QHe7YNafurw1zzP72JnKbsRYAV\n7CMycPPyocNx6jzGKEEOqCZVcdx4yOQ3pxDQrCNJrRJTg3iFeGCgZtcF6z5d\nKvl12QVSbNjvdL3StnEFRPDdukNrk2eG/LDSH1/v69nxsEHKAWDuSd8icQjy\n3tdbDItpDM1KvTmO0IWgk5cS2/9o5ohh1ItoxR+b9PF5bbiF/aESzm+OCQrS\nfTp2BaWkw/58HQymzubA57/sc2sgsJkxidkMQZABncVo37EgfA/wkaJXTKH2\nZFREhT6+bijY3YwpYwn3ZvwPOuPA2Q62VDUz70KrBIOERcExHl76C6WKPQa6\nOd7Z1CuFh/QxCItPFnScbWxnGoJj6lF9ktQ9b8J93kjE/DAi1MumL+mI4NUA\nkVSj\r\n=R6KV\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-JZhAus0Ag6A3mywxMr9T7VcwDTGmSpqUV3OoLFE5BOmLRyFFdz9W6JuWCYJl7j540C0ulnOhmk+BJdnZmxUhgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt0ZiF77AZPkY9wR/F8FCkJBporvtyvT5tKLz+pv826AIhAMdgpVC+AePW6N0Gy1qnSqSzHcYkwkRz5adCso6qAQzC"}],"size":8432,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.6.4.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.6.4_1523744690636_0.42601166533820334"},"_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":1523744690704,"_cnpm_publish_time":1523744690704,"dist-tags":{"latest":"0.11.2"}}