{"name":"@emotion/provider","version":"0.11.2","description":"A provider component to provide options to emotion and allow theming","main":"dist/provider.cjs.js","module":"dist/provider.esm.js","license":"MIT","repository":{"type":"git","url":"https://github.com/emotion-js/emotion/tree/master/next-packages/provider"},"dependencies":{"@emotion/cache":"^0.8.8","@emotion/weak-memoize":"^0.1.3"},"peerDependencies":{"@emotion/core":"0.x.x","react":">=16.3.0"},"publishConfig":{"access":"public"},"umd:main":"./dist/index.min.js","gitHead":"94fed7652759a0f1962da66b922299398e39fe4d","_resolved":"","_integrity":"","_from":"file:emotion-provider-0.11.2.tgz","_id":"@emotion/provider@0.11.2","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-y/BRd6cJ9tyxsy4EK8WheD2X1/RfmudMYILpa8sgI3dKCjVWeEZuQM17wXRVEyhrisaRaIp1qT4h0eWUaaqNLg==","shasum":"7099f1df5641969ee4d6ff5cf1561295914030aa","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.11.2.tgz","fileCount":10,"unpackedSize":11116,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpAnkCRA9TVsSAnZWagAAEJAP/1tlk3Acd1RcjFuyaMJH\nYNzwAjY6m7hZB+QDsUdWWfE0DYu2m83NBuICqJdLGr4Cpm6b6fyBlWSWPeZi\nfMl3RpqwZuLHjZtnhvG/Oc2PKLYiei7zm41Vn2VQH89c66Z+9Of23gZ5AaPl\nFaCILJTIzwaNx++8DeT3kKmWAi9fY5l1cumtoA3N/Wkj2cQnQRf4E44lcaXM\nBqp52FF30ulaO1ce4UUitXQabB1iLeK3gUWIlLf7B5bjP8D/kQRYq55sWUfG\n2uWWGIAMdRefe2/EIfXuuOzSDedAVSdikfTPerGIBtCrx7/Xcz9Nrk3j7LwJ\nvhhNhg7qcDDFVbdtTSto9uZQbVPHXB6Sg+SYumglq7qY784BWL31zH26/Aq0\ny4A/V3IA25jFq9d7jNOtKsgKWryrIMTAwSkA22aWHW/8TGImggs3DREzBOSI\nqMitcZA/1SwIgiF0WOALflELnioqJV3JlI87iZ1KN4mkDXxE1t9QnybNherx\njppfPlA30suT9cCdmNwfIhCreGlMjmkPnPzNUnXhY8bABw0qydBm12VteVVY\n2kSdaDTphWjx6U6MbHcOeHbQeGWPLtW5SYgYAtMWA9KBDisF5SQCtzXCHCBm\nb71bIjsPR4tUprfkS293QfEdHyf4bxYgAo8lxMYxpIIiryBnIq04Zrlc4Ld9\ndnt4\r\n=iFlN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDk5SCo3zLoKUJ+b3qrldvGyWHxm4jo3v032wsxwNYrnwIgf3/ozDD8C32RqoKLpqt2POv70tveiZmyTpA+xEUml4o="}],"size":3789,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.11.2.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.11.2_1537477092180_0.8995853129629994"},"_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":1537477092335,"_cnpm_publish_time":1537477092335,"dist-tags":{"latest":"0.11.2"}}