{"name":"@theme-ui/core","version":"0.3.0-alpha.0","main":"dist/index.js","module":"dist/index.esm.js","scripts":{"prepare":"microbundle --no-compress","watch":"microbundle watch --no-compress"},"repository":{"type":"git","url":"git+https://github.com/system-ui/theme-ui.git"},"author":{"name":"Brent Jackson"},"license":"MIT","publishConfig":{"access":"public"},"dependencies":{"@emotion/core":"^10.0.0","@theme-ui/css":"^0.3.0-alpha.0","deepmerge":"^4.2.2"},"peerDependencies":{"react":"^16.11.0"},"devDependencies":{"react":"^16.11.0"},"gitHead":"1b72612681a1cbac1bd1610d118cd209ceba9b88","description":"Core Emotion and JSX implementation for Theme UI","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"homepage":"https://github.com/system-ui/theme-ui#readme","_id":"@theme-ui/core@0.3.0-alpha.0","_nodeVersion":"12.13.1","_npmVersion":"lerna/3.20.1/node@v12.13.1+x64 (linux)","dist":{"integrity":"sha512-oYYoxqHhdJKB6+fu8zs7gqpaGvhCMNgyJ6ZNt11gtilkf/l9ewTMhvjFMyZuqXnSJO2YQrIXQs2WVHdJmQC2fw==","shasum":"935c3c3485f087fd11e0679b79fc21f9f86a874e","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.3.0-alpha.0.tgz","fileCount":12,"unpackedSize":38031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeC2qzCRA9TVsSAnZWagAACmAP/2nf3GzAgNpQAicT/pwV\nacTzgBIS91W7yqbKTG3nAES4CaRJt3qFgSoZVI3PBfujTmYB0TTudzfLWEfw\n7uirvCIynOB7VvYyyhN2mbpQVq/lVy3VHTeWAnXHutVzAQBa6Bvt515sC/0X\nypEpH7QKvTPlFYFS0vW22GmP4MoNI/pxMPUih3XTM8FH6cru7SP56lrIs+E4\nd+m6nk8l1BeMZiGormUKgSskvpSvmr6kdAf+x+lsl+39owsQ6sXiPFMdijXR\nv9HYHUbR/r2vd/Gi4XT462Q4d0l/sANnQom7BKLgzyu9Eg9lNUCbJ9svPFwF\nmAwvP2MgkDL1lMXeAHJsStnKI13/99sBcdw8CN6rdLUFVSVCO9ZdK14KabRT\nqA2b80GGcbpgoLILrxdzzesKGXzCZ8a6om/pHMM7mDgnOADvgNlgC6wB0Jio\nFJ5go77JMIhAOBgJsjqWZPFYTWKopxRA4pJlqLGDQlYKITbL9msb3EkWvIlO\ny37JB4Y5f3DgfKHIVyMwe7zdN9vm51mZVWliTHUQEU5bYBFhl7sa9cCoDWhV\nW2SUcqtZMOBCGLTtc+87adDlHX9WwjJg1jBYgcdeusnGpVI441gwtplDqAv0\nBswZnYLpNJ6JbsZj4bCe0nNi2vFOkaGPSLsiRZqSTg7tU+7p4mdGTtTFcMm7\npfkj\r\n=DpIg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2KPit7QkkKj8p8N433xjkBT7t7aVaFjY+mKEeGjy+lAiAA25EPc8WQ/DXWwp2RXZJyIw5l3TPS93vFR4OXjOLKPg=="}],"size":7517,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.3.0-alpha.0.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"jxnblk","email":"jxnblk@gmail.com"}],"_npmUser":{"name":"jxnblk","email":"jxnblk@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core_0.3.0-alpha.0_1577806515396_0.17027944585603283"},"_hasShrinkwrap":false,"readme":"# @theme-ui/core\n\n[![Minified Size on Bundlephobia](https://badgen.net/bundlephobia/minzip/@theme-ui/core)](https://bundlephobia.com/package/@theme-ui/core)\n\n`@theme-ui/core` provides minimal React support for lightweight usage.\n\n```sh\nnpm i @theme-ui/core @emotion/react\n```\n\n## Usage\n\n```js\n/** @jsxImportSource @theme-ui/core */\n\nimport { ThemeProvider } from '@theme-ui/core'\n\nexport function App() {\n  return (\n    <ThemeProvider theme={{ colors: { primary: '#33e' } }}>\n      <h1 sx={{ color: 'primary' }}>Hello</h1>\n    </ThemeProvider>\n  )\n}\n```\n\nIf you already use `theme-ui` package, the batteries-included version of Theme\nUI, you don't need to install `@theme-ui/core` separately — it's already in your\nnode_modules, and `theme-ui` reexports everything from it.\n\n## API\n\n- `jsx` — JSX function to create React elements supporting `sx` prop\n- `ThemeProvider` — a [context provider](https://reactjs.org/docs/context.html)\n- `useThemeUI` — a hook to access your theme\n- `merge` — an utility function to deeply merge themes together\n\nNote that `@theme-ui/core` doesn’t add global or root styles to\n`<html>`/`<body>`. Refer to the\n[Global Styles docs](https://theme-ui.com/guides/global-styles) for how to add\nglobal styles.\n\n## JSX Runtime\n\nAs `@theme-ui/core` defines `jsx` function and types for it, you can use it to\nconfigure JSX runtime without installing `theme-ui` package.\n\n### Entry point `/jsx-runtime`\n\n- `jsx`\n- `jsxs`\n\n### Entry point `/jsx-dev-runtime`\n\n- `jsxDEV`\n","publish_time":1577806515529,"_cnpm_publish_time":1577806515529,"dist-tags":{"canary":"0.16.2-scale-tuples.0","develop":"0.17.2-develop.1","highlight":"0.4.0-highlight.0","latest":"0.17.4","next":"0.6.0-alpha.8"}}