{"name":"@emotion/provider","version":"0.7.1","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.7.0"},"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.7.1","dist":{"shasum":"e5689fb74d6d1e05ae4696004e38cf5f13c97b4d","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.7.1.tgz","fileCount":13,"unpackedSize":129765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7Eh4CRA9TVsSAnZWagAA5m0P/3O86Lab/5RKkaPbqwAO\nUhXxkvOes2GtFhxTAZB5gtQUtPtncnSxPxhpnV2GF47fpAYPsM9QSHZN5+4t\nuGVqwaMSMcdNt2++89kgsbNI0/huc0gr1xl27L2gRUy84pgiYzo2wyn6Ablv\nM34lTvq+k8yqDgsYAL3+kbOep1NT1Huk1GE2ujZpqw4tRJRGEjL6MH2NGQnk\nS27Gg0yh3CvJadXgYI7amH+quU3rQhPh3ovUC+wNoJvGxTF6QORPh7nMVx10\n6tOser+94TJPiZIw8dHKPQ7gAnrqg6MjDJdgm27X8S3G3s8qty/+BtCvjvMv\nhOTCNq8YoPRDP95LLxbmK3TFhyRYv7lAtFdPaVs5i2mOhiPyDBLOcYUa7HF5\ntTkvR5PDp+INz1lfSTc7EwySsAkWc/DQ09BC89g7fqy3Y2684SonOP43a2bh\nN4TdNS6/QwrlRDNlTJ/oYHDzZhG/m842EgadZO5Y1s90QawOI/K8OFyOqNyv\nqBkgY5g3Yg0nqP7QMPr9T+9ygV5wiDyWl1sY33v2qEqI0VSqNifdEGSpb8p4\nW/uOcTr0/2q7EQve1mxTwUYfLdZ+UbY4TGzNez3XoRbpk4ONOmbaiQN8qKEf\n1kvZiV/32OvCEQhcbwLbRLp9GmpfWVxttFVOi0BJeuRT34CyBZ7i+jKv3+I2\nT6dA\r\n=6cEK\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-hFaytQROup2ifQdSY0XsI8iZzWYHUMhZGERiXKGZ/WiiCLDnT6+bMehH5xIPZDwVS5m/+FvYyIyYxrgQQECh0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH/nb5iWo7K/55q/qXfMwucYeTvKhw2XZZcCJ1kSL00DAiATFAunLdXlOxdXI8AUSMbi4YkvmaTBd5cmNDVbpgou1Q=="}],"size":29280,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.7.1.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.7.1_1525434487861_0.7810667295429996"},"_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":1525434487932,"_cnpm_publish_time":1525434487932,"dist-tags":{"latest":"0.11.2"}}