{"name":"@emotion/provider","version":"0.9.3","description":"A provider component to provide options to emotion and allow theming","main":"dist/index.cjs.js","module":"dist/index.esm.js","license":"MIT","repository":{"type":"git","url":"https://github.com/emotion-js/emotion/tree/master/next-packages/provider"},"dependencies":{"@emotion/cache":"^0.8.4","@emotion/utils":"^0.7.2"},"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.9.3","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-zUxUYasy/Uzgbqt+Mh7S7Q4lNgMtwELldJwr/NsfzoQw0VC/2Tp2u3X2lqV87HgFKlfAS8WUc9g4dfnksgc9VA==","shasum":"10754ffcc09cad25a7c2d2cc1b1c6020a2080723","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.9.3.tgz","fileCount":8,"unpackedSize":70236,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSXeKCRA9TVsSAnZWagAANVMP/imG2KmZkU9sADcaR37S\nDXVxmFWdfWmX6ECE05By/pkk1TYWkvvi8/3O5OvaKlSzQBMw7B8qGlTGpuN0\nwAzn6r9UDcp459Htt5ijOcunB2KgEmUQOF7AKZv8G4KOBbPfnk9HTUagf6oR\nKac9cujagJ0Q4HpvpvyI785MMZB5EYqbbMPxCUgE/5HLoALbx3jxrmIsts8z\nhjI6z6l7qpL9bazXA+8eBbuH8dMIoowITGVDPG/iRfhcvE6Ky+Vycuo7NpcQ\n9rdRIK1OkK7BYsf6/DKrXUCwqX//id8weGmfKdBzRWdT7l/gBOpX8SS7100i\n0KLiQXb6/hn9wZobl0w8VH+jq7ilyHK3LAm5sKRY1/cvdtiLE8ZeBluZl0f5\nyoJvQFdXxB2gDWpiiwSn9x6D51zl0bQGgau4XvW43rPoTeZvB+VbJx61TO8z\nln4yPrH3MK7h1nBV8TXXqgUZiUFUEqk07F3gKB/9/mxYdqN/Y8/M9aHL3r/w\ngz+0T8Ii7wCdNf5QIYvsq+z/ZnzOVzdL7UhBWTZf6PZTBIm1YFYQlBRvJCmD\nNn235ypZtyBGtENVilNM7zSZg1puygk0RTU3hIoq4eBcMdg1Lc52ONUkE5sU\nlxtUDT6Co7uENVWata+Iuoab4RaYcKt8gEezW+PXRVUZrc8HHDChUSFqmbPh\n3MfK\r\n=+qG2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyH434pF9J/jaywm8ebEFaRSBjv8YKq0NPtrOwnpwcbQIhAJOHfSITveOdhNCl+LdkDz+xRFf+VO1g+appNe+84xDV"}],"size":19984,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.9.3.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.9.3_1531541386577_0.2137581967842388"},"_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":1531541386650,"_cnpm_publish_time":1531541386650,"dist-tags":{"latest":"0.11.2"}}