{"name":"@emotion/provider","version":"0.6.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.6.2"},"peerDependencies":{"@emotion/core":"0.x.x","react":">=16.3.0"},"publishConfig":{"access":"public"},"files":["src","dist"],"_id":"@emotion/provider@0.6.2","dist":{"shasum":"6a079723bbb414d0d07f8c76395aeaf2eb4de1c9","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.6.2.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\nwsFcBAEBCAAQBQJa0dByCRA9TVsSAnZWagAA+6YP/iznszmtRiDHK7BxDjXe\nb/+xSfxG0O4/7f8u0j8f91HYM/omEy4opOgeofw1JHt6kKe8LyEWIG8LjzZ3\nQ9OGcz5jqA9eybX7llqvbahcb4Q8gGx6THMHFLYahr6iA8bRSXYJ2Ape0aIV\nZlKZ+WR+VsnXrXWCx7JjWs760eZRYsXc0a0bMxry0TPcU+NPHBiFeI7mYFoa\nQ7YFyUH92QlZbX1zzrcR5hOxHopedp46Iw1Cu1l76IUjxeGI7Rg807F5PGr7\nLsU+unY1pIOtofDRLDWFH6BqhWX8WF1O0QFZeRpeB+3R8ibqX1nbU0WcejHU\nvUxposOmoAk/w8uOuDQP1yDC4BP4spHsfhIEzjZzzH2b4LFHwcLbT6dWp/zQ\nm0LiTktSxepve2Enn6bz+Wlf400UVe3oMTVBm05O4nSXPRinLKZrrqZR30tv\nSlHoPil4c24pPaBZb90BZXpSWBDR9DeROiL2Tbr+XbKXHZ3f9C6KZhWWNX2B\n2VV5WqzkpoMBWHdsQJGj4lx9N32Eh/w8nNWJ05CbxXCKzFGJfff+vPx5XA7V\nZQk0kWv6yzoj19dw2p8Dv5conDipKLbRj8wBFgdBDM3u6P+pzCzWnifhwnA6\n27+UXeuPeZfe+U8ntiy8ssSNxjxu90oDAvOuXIGNuwyYTTtRfepdtpSkzS3Q\nG1Fo\r\n=FT1p\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-ptBHWwlEW0DaNNiTB1zjdMvcidMpBGGFkWGyJTDfZv1pGvhJAg8jkNdlqbe3QnM0nz6xwhihVyUGrL6gxZakzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAgPtNJnNEEat2rdUx5ZsqVJSpr6CWCjG2D1TzZ9N0K9AiAU6wM7fSM4twcJTIL6pRqu4YZxDklPJUCXK74yhKbUHw=="}],"size":8434,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.6.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.6.2_1523699826420_0.013709114057484761"},"_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":1523699826497,"_cnpm_publish_time":1523699826497,"dist-tags":{"latest":"0.11.2"}}