{"name":"create-emotion","version":"10.0.0-beta.9","description":"The Next Generation of CSS-in-JS.","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"types/index.d.ts","scripts":{"test:typescript":"dtslint types"},"dependencies":{"@emotion/cache":"^10.0.0-beta.9","@emotion/serialize":"^0.10.4","@emotion/sheet":"^0.9.1","@emotion/utils":"^0.11.0"},"devDependencies":{"babel-plugin-transform-define":"^1.3.0","create-emotion-server":"^10.0.0-beta.9","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"},"umd:main":"./dist/emotion.umd.min.js","publishConfig":{"tag":"next"},"browser":{"./dist/index.cjs.js":"./dist/index.browser.cjs.js","./dist/index.esm.js":"./dist/index.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\nconst context = typeof global !== 'undefined' ? global : {}\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(context)\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]() 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### nonce: string\n\nA nonce that will be set on each style tag that emotion inserts for [Content Security Policies](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).\n\n### stylisPlugins: Function | Array<Function>\n\nA Stylis plugin or plugins that will be run by stylis during preprocessing. [Read Stylis' docs to find out more](https://github.com/thysultan/stylis.js#plugins). This can for be used for many purposes such as RTL.\n\n### prefix: boolean | Function\n\nAllows changing Stylis' prefixing settings, this defaults to `true`. It can be a boolean or a function to dynamicly set which properties are prefixed. [More information can be found in Stylis' docs](https://github.com/thysultan/stylis.js#vendor-prefixing)\n\n### key: string\n\nThe prefix before class names, this defaults to `css`. It will also be set as the value of the `data-emotion` attribute on the style tags that emotion inserts and it's used in the attribute name that marks style elements in `renderStylesToString` and `renderStylesToNodeStream`. This is **required if using multiple emotion instances in the same app**.\n\n### container: HTMLElement\n\nA DOM Node that emotion will insert all of it's style tags into, this is useful for inserting styles into iframes.\n","readmeFilename":"README.md","_id":"create-emotion@10.0.0-beta.9","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"mitchellhamilton","email":"mitchell@mitchellhamilton.me"},"dist":{"integrity":"sha512-KaTLwGoN+XEVr1ax1pMHtUPAP6id2QtTky4rsNzsug8zj5xXXfMG8e7kExU6QdkhrZA032L2k5qmpzMVUb+0vA==","shasum":"83ae17df8a7a5157225f101fae4614d6178adf0b","tarball":"http://registry-npm.ywwl.com/create-emotion/download/create-emotion-10.0.0-beta.9.tgz","fileCount":12,"unpackedSize":12306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6QjCCRA9TVsSAnZWagAA/TEQAI5BCuY9DxlPfZPZShhT\nS9gvf6NuuCOC4bz0bpg1sTHV3L1XGD2rPgNWQN/TQ96NbBXMBZTbFXDeoUoz\n0n/EoGgGho3/ih0MsDenTRpsZHPpkjoTFPvhal71GZIk+vFTobtssEf8+M0h\nws2AdBg815k9nBrd2fLnQkfE0VsfzcJZbrb6gQ5ssy7VqWNfe3gasfsXvcGs\n+BGCF5lIJW2CsqdlgqiM8M7M5+60awL2Edg4qXVHRKlqKa7EIaV4gU+oA0Xf\nsLarS6WXGQSD+7v/Dwx/KqqR3jlnvW7Z4YJX0WM3Y5Bdj8SEgiKGj2AMjzVr\nR6y0EW5eiL0Ehkq2v3NQReMrmYXPX6WJsJZn2pY+BjPa96kTO6VyVmByvJoV\n3c/wc4Uu+NbBRceC7AxCopRUxZRCA7uSE0zD3t1LYJ1w1a7859Ncp7i4GPIw\nEcglR7XbdX3sHrYJgVeQdyNHfpk+BILcKMs0wRGrhR2AovIEymmeDuu994Yv\nEJUhP+baoj5vSE7mFhRHl8hi9nNW5aGvZ7pt21DW+kHuybcfOKLKG2C3cYSO\ngPd/Pvj+L1A/4c2ztiDZrpdLUyUxoOWtYukg2G78W8LqXcFrHva2RXgq5a3Z\nOTomuVBsFTfWL2dLsX/AmzXGx1YbtGThYUktr5gJ8Ij9Dni/WoKBf3NDo6Io\ndH4w\r\n=xKvs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFl5y9PrRfqPOoGm4EEnxokZ2m5Xtsp5OOlSNGYhmFgOAiBHyqUp/l0wQE7LT3u7R8X8QQQHGcOJyO+K3XQvN5g6cw=="}],"size":4606,"noattachment":false,"key":"/create-emotion/-/create-emotion-10.0.0-beta.9.tgz"},"maintainers":[{"email":"mitchell@mitchellhamilton.me","name":"mitchellhamilton"},{"email":"kye.hohenberger@gmail.com","name":"tkh44"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-emotion_10.0.0-beta.9_1541998786311_0.3240819731327442"},"_hasShrinkwrap":false,"publish_time":1541998786488,"_cnpm_publish_time":1541998786488,"dist-tags":{"latest":"11.0.0","next":"11.0.0-next.10","rc":"11.0.0-rc.0"}}