{"name":"create-emotion","version":"11.0.0-next.6","description":"The Next Generation of CSS-in-JS.","main":"dist/create-emotion.cjs.js","module":"dist/create-emotion.esm.js","types":"types/index.d.ts","scripts":{"test:typescript":"dtslint types"},"dependencies":{"@emotion/cache":"^11.0.0-next.6","@emotion/serialize":"^0.11.15-next.1","@emotion/sheet":"0.10.0-next.0","@emotion/utils":"0.11.2"},"devDependencies":{"babel-plugin-transform-define":"^1.3.0","create-emotion-server":"11.0.0-next.0","dtslint":"^0.3.0"},"author":{"name":"Kye Hohenberger"},"homepage":"https://emotion.sh","license":"MIT","repository":{"type":"git","url":"https://github.com/emotion-js/emotion/tree/master/packages/create-emotion"},"keywords":["styles","emotion","react","css","css-in-js"],"bugs":{"url":"https://github.com/emotion-js/emotion/issues"},"browser":{"./dist/create-emotion.cjs.js":"./dist/create-emotion.browser.cjs.js","./dist/create-emotion.esm.js":"./dist/create-emotion.browser.esm.js"},"readme":"# create-emotion\n\n### Create distinct instances of emotion.\n\nThe main [emotion](https://github.com/emotion-js/emotion/tree/master/packages/emotion) package can be thought of as a call to `createEmotion` with sensible defaults for most applications.\n\n```javascript\nimport createEmotion from 'create-emotion'\n\nexport const {\n  flush,\n  hydrate,\n  cx,\n  merge,\n  getRegisteredStyles,\n  injectGlobal,\n  keyframes,\n  css,\n  sheet,\n  cache\n} = createEmotion()\n```\n\n### Upside\n\n- Calling it directly will allow for some low level customization.\n\n- Create custom names for emotion APIs to help with migration from other, similar libraries.\n\n- Could set custom `key` to something other than `css`\n\n### Downside\n\n- Introduces some amount of complexity to your application that can vary depending on developer experience.\n\n- Required to keep up with changes in the repo and API at a lower level than if using `emotion` directly\n\n### Primary use cases\n\n- Using emotion in embedded contexts such as an `<iframe/>`\n\n- Setting a [nonce](/packages/cache#nonce-string) on any `<style/>` tag emotion creates for security purposes\n\n- Use emotion with a developer defined `<style/>` tag\n\n- Using emotion with custom stylis plugins\n\n## Multiple instances in a single app example\n\n```jsx\nimport createEmotion from 'create-emotion'\n\nexport const {\n  flush,\n  hydrate,\n  cx,\n  merge,\n  getRegisteredStyles,\n  injectGlobal,\n  keyframes,\n  css,\n  sheet,\n  cache\n} = createEmotion({\n  // The key option is required when there will be multiple instances in a single app\n  key: 'some-key'\n})\n```\n\n## Options\n\n`createEmotion` accepts the same options as [createCache](/packages/cache#options) from `@emotion/cache`.\n","readmeFilename":"README.md","_id":"create-emotion@11.0.0-next.6","_nodeVersion":"10.17.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-rX499SgECLtNALACKjRkAAQyoUd1UcyPuTzJj58UZKs8G+MsGTgx1V4nIBpN2L8VeRg7eLxGBw70hZlY0V0Uhw==","shasum":"60a94ef4e7ae5f0d8104a5fd71bda9ccf6e0c09d","tarball":"http://registry-npm.ywwl.com/create-emotion/download/create-emotion-11.0.0-next.6.tgz","fileCount":15,"unpackedSize":31239,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3FlQCRA9TVsSAnZWagAAlw8P/2MidrDzu5JnKquA/Dvv\nUzHZWsxQHHzdNf5Aii7VxXSfzLNXvUlHrFPFePPvDzPeWoMuEUW4KYZcGgMa\n+gW54t1/mA0tm3iLJCK8kWqUv2PXsnlhy9MrjzqVDJwcfXoaZu+am+IvjjFo\np0lHyqdH/g3OKHzG2oRauKI7fLVCyoSac0iK8/flMEQvlO0Hp8b5NoseGk0f\nFtc9o9pTEtctFTnlFmHBeetxEXC5nqsO+Bo7unTpg09yUt2FB2wnR5kATAQ9\nJhrtwfd5jhxe7rijWp+Rgdi4R257iYGIoYJY0kh/rC7/ujWFzV6AgE6Exdmm\nXXZZTL17vGQQwNTP3t9t95U8ILfu//80qzz11cqxagrjNQ4LzGOJGb0dBUd1\nohQbXE0jgCYAaa7rL8i5/cSNFARYntxO9CdkTz1wDPOvkmZFEQ19d3isLapd\nnR4w4xsw0rj2WEfN+ymm0vIybHXXqRgt5Aq7Z7ss9kYAIhrrMSHPryruJWaJ\nKJeBdxfALes28YycazQEbfYZ4p4jEejiOMVSLfUJyEMIjJlsLwNFYTC9ErE8\nN7/hkxpOQgIr5SF+uUZ3j/BCEHrqoidj4LdpkMLv3JH3ujhx726ra1JxEk2R\nOpQc0OXChR3Hfkmn7QzSK7lMT8SbrU4YdBfnom8PUGOHI5yymvcMuc8VNRHm\n6Ong\r\n=Exuv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4D9g1UiA8c3GtbaQ/IOs+5JFXloMoho9XaXuTIEm+YAiEAuD/0iYXqblXlILmdna6dSkjLdTqzRNiZWRlqUBZ6BMI="}],"size":5989,"noattachment":false,"key":"/create-emotion/-/create-emotion-11.0.0-next.6.tgz"},"maintainers":[{"email":"mitchell+emotion-release-bot@hamil.town","name":"emotion-release-bot"},{"email":"mitchell@mitchellhamilton.me","name":"mitchellhamilton"},{"email":"kye.hohenberger@gmail.com","name":"tkh44"}],"_npmUser":{"name":"emotion-release-bot","email":"mitchell+emotion-release-bot@hamil.town"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-emotion_11.0.0-next.6_1574721870670_0.5968444896452918"},"_hasShrinkwrap":false,"publish_time":1574721870771,"_cnpm_publish_time":1574721870771,"dist-tags":{"latest":"11.0.0","next":"11.0.0-next.10","rc":"11.0.0-rc.0"}}