{"name":"@emotion/provider","version":"0.9.0","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.8.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.9.0","dist":{"shasum":"df5b0e7bb4651f87155064fe0cf418b888c15965","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.9.0.tgz","fileCount":13,"unpackedSize":128826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/8zvCRA9TVsSAnZWagAALCMP/j/X1lzX2fZXNZwkjaxz\nFxMwiaUahpdWRZxRsvk0vW9cVHKqHkI68Hj4ZcXiPHO/N/9Qf1uJpSSEr5Xc\nyuVBu8G/rveJVDnBa+HT0qimdtQmrblRKeamE5QNxB/1DWkJFt/a/SQuRRLG\nH1rWVGIht44G8l3EV1bBm1ccv2+JWz1Zw9gK+iyHbDJP7NMm20aSHNtjslXj\nnX2x6WCQtCGrXbn2i+xw+BvkLqd234YW1f9esr5EhwTta0Ni1ruJOx4xlA7i\ncfmRpo9n9RSwfxMzA17sp6MgzcDnkC05mRGO2lsWJBPodz1MhH3LQFS8ve2f\nwzxd5HWjppRYR11X19Gn4O6VbiqIKLwDDr6Grq7nTIJmpsl9X2wPhYGDDkD8\nHm1DvDoISUoHUIeUqn+XBzUdTg8Ro1QTvoO0lYlxGD/FhqjQXTzyQpeXrvbD\nvx5yiLT8kZvapTDR4QikFeTGukFWtIztgTK6g0ZPXxx+Cr1l7hEc5ODpIouX\njZMVljKHzDGYKbTOQqrkzBXSSOKGv2HqSkGhSUv9qYDqW3bjO+BxL4eu7Q5h\nKhyChHV4UGw4znXzTwhs8Khu8TT2O4BagNWfn6GINtll7d4vd04wP55bajde\nxQUn1CPINB5I9MiENziIFQWHLw6FxljHfO3nC93Ovq3HjD3Rm5agylIFS94f\nTRmP\r\n=IeLm\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-CZoJ4jM4IFiHBlmBgp5vLCvfzrDhj1VN8S2RKqqmaudLOdBaKGzHkgyxcOJmKZi7gW21DkrmqvgTxe9a3QbZng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8EeG/jZMUJtecd+rDAEuO+gy+NlA3QWUIWKW96Utw0wIhAPMsU9+FcweWKg1ghg96bJCnl/6STVVTYbZjYMtorWu/"}],"size":29171,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.9.0.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.9.0_1526713581690_0.1605005376982196"},"_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":1526713582559,"_cnpm_publish_time":1526713582559,"dist-tags":{"latest":"0.11.2"}}