{"name":"@emotion/provider","version":"0.6.3","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.3"},"peerDependencies":{"@emotion/core":"0.x.x","react":">=16.3.0"},"publishConfig":{"access":"public"},"files":["src","dist"],"_id":"@emotion/provider@0.6.3","dist":{"shasum":"760ec6bcd1047ad157da8f441e0f40768b688caf","tarball":"http://registry-npm.ywwl.com/@emotion/provider/download/@emotion/provider-0.6.3.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\nwsFcBAEBCAAQBQJa0f4tCRA9TVsSAnZWagAAm4cP/iTlozGsBShBpJhTcebw\nezCzvdN4k2Y0ZTIyeOPo0OKC8KGGwJmmw2xYQluvh8joaSEVDeX7MJRKPtnA\n5ygXttZKLAtMHQlBzZee4PGb7AfDDGSe74U+JWTt/sU3i0Z85TILJtKdo6sX\n6YrfCJ/wkGTSXTDaf6o8/WYCgWBbErKCItXOwSu0QTzjsJR9bUjSKn3V1Yuv\ny9L8rtBgKhPite9yyI/V3jVq+iro/w27CzcApGDFiNqUiAK7MT6LIXXOcXXz\nsR5QTV8yensmE5zzINshXRTnsPZKs135pP1UkdfWz2TyFPCrdlDDqMQMrhj+\nrusiZR0zlJLc2WAluX1bV0ow8wKI0Qnbc7C805cifrCQki2pKEOcBd7khqg9\nF5LnUarwsYY8DVmJAPqb096BcE3p1918wt73LnVHUZQU+ub7N2JVjI8ZVBpf\nJ+OemSlPe/HJjN539rvMwlSyitsuDsczOhGYpWkS5tlCJB7lp4OqfBoKl6dP\ns8Zpnmblx8qLcYglPHAG6v2cVuCCf0UkPDLBVlebT5DlZcAiglEy9cYdRQHi\nUbiw/ImOcHykZq/rw8mNQwM1sg/10qk1qy/DI+f3726aqEkT/uThXI9BL6sZ\n9EQ9rHnnWRVnrDKJFWuYVIHds7OKhv34k7kUvBLCNLGMkMsokzK5iTzh6qKr\n4Z8a\r\n=9U3N\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-rD+bnPMG4x2/LIaLhfK9aiWiJu5KboCsYTrMyp0Wk0jLyNFBRWB+mXqtaUrrYOxI4N9eq7B+lMgNr7Uefd/25Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPAjn5OKv19/hD02+l7mytnV0O26Z0UsG5UsLOmPnHjwIgeR79FGjK0BvSCuvZqC/uxmDupUji0gL9la9jY6DL3Ss="}],"size":8434,"noattachment":false,"key":"/@emotion/provider/-/@emotion/provider-0.6.3.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.3_1523711532808_0.920017305042357"},"_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":1523711532886,"_cnpm_publish_time":1523711532886,"dist-tags":{"latest":"0.11.2"}}