{"name":"create-emotion","version":"11.0.0-next.8","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.12.0-next.3","@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.8","_nodeVersion":"10.17.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-VCe1XayR4hJD8NvtbDio69170oD0mQtDMXLYLrOfGNdZ9W9og2lTYwbNKmNgl7FXnfX8pZWNbUPk/Aj2ydRGgQ==","shasum":"7c497459c082ed0006d4f42afdc40e64f0bf6bbd","tarball":"http://registry-npm.ywwl.com/create-emotion/download/create-emotion-11.0.0-next.8.tgz","fileCount":15,"unpackedSize":31432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7BaYCRA9TVsSAnZWagAAgKoP/3kBlJPEMtrw2gjaF6do\nuQbrRC8pjgmvalD0K82CN2QOebaJdey3HEukgI/4BubyOf7abfhupOyeLH3K\nSuzQGd9UK2tM6kIccrocWibqoW9IBC42aOmcDULuhJvVIttfUK+U5An/E9HZ\nUKjB6sZx0z/0nPfQYO4E0cbCS7bR0r8oJnLzZZ3GoMtVE651wR/IZVwPeBWn\ni/XLTEItM4wbnHz3uuiXeop02S/Fu3630FrhvMpLsP0gjyMSqGlDvq5nZblS\n/SFKRrFwEoQAX4uA8CtnO8PA8wmT+GkWNLpNnJEDT3rFKIhNSHrc74+kwqH2\nED6FJVoz7/HIIoAk1qhcCdJSqQAfZ5KgVWfDAvIVWU9+ndx/FAkUKZgu3mPv\nGE3pmNI+bo3CDgNZQ6OuKgCBHsT8En0sSgxnYtk5DRhswwwa3qEdl8EebCsq\ntVmSjusL4lJ2cNQnH8dGtOW+FtdCeKvwSNbwG2azkaOXMC2Srxz7vl9uGA7B\nNOftzgczTUGE+xoXmDXumNAFz2BDc1K5oeDVg/DLqe1WkyNqkBa98ll8HZQx\nVrAr6LlQTU1qyhkJhk7rYB5EAwBuup5ELAuuMLh/oIaO95mj7lIzBO/KcxDk\nAaSis6fwXpEa1zke8B0+BZFl/F4b/4mbcumyok9CzLao6QHZAVGcEelO2uzm\nIG9m\r\n=05eW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIENK/o/SrFsIk4fi5pl/frJ+3NlB3SGtBEcviPYIkhqbAiApfpbLyh3ueyLpnH/hCcShjfZGYoeBbRySjv+XrBFYTQ=="}],"size":6041,"noattachment":false,"key":"/create-emotion/-/create-emotion-11.0.0-next.8.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.8_1575753368558_0.32169575929194205"},"_hasShrinkwrap":false,"publish_time":1575753368646,"_cnpm_publish_time":1575753368646,"dist-tags":{"latest":"11.0.0","next":"11.0.0-next.10","rc":"11.0.0-rc.0"}}