{"name":"@theme-ui/core","version":"0.15.0-develop.14","source":"src/index.ts","main":"dist/theme-ui-core.cjs.js","module":"dist/theme-ui-core.esm.js","types":"dist/theme-ui-core.cjs.d.ts","sideEffects":false,"scripts":{},"repository":{"type":"git","url":"git+https://github.com/system-ui/theme-ui.git"},"author":{"name":"Brent Jackson"},"license":"MIT","publishConfig":{"access":"public"},"dependencies":{"@theme-ui/css":"0.15.0-develop.14","@theme-ui/parse-props":"0.15.0-develop.14","deepmerge":"^4.2.2"},"peerDependencies":{"@emotion/react":"^11","react":">=18"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"gitHead":"3e03989518271ecc04e174c62b744fab5e19dd48","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\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","readmeFilename":"README.md","description":"[![Minified Size on Bundlephobia](https://badgen.net/bundlephobia/minzip/@theme-ui/core)](https://bundlephobia.com/package/@theme-ui/core)","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"homepage":"https://github.com/system-ui/theme-ui#readme","_id":"@theme-ui/core@0.15.0-develop.14","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-uU1nQdcX8Q372sjjWm6dC29CgM3BbRhOp7QUz08A/55AuRWl51X8s+wt2n/cSWXCgBL4DKERnIddTZzkOJGxvg==","shasum":"af728791675cb040b2d6823283ddcab9f83d2302","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.15.0-develop.14.tgz","fileCount":37,"unpackedSize":57217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFivSjRB3FJKEb902TWu8CBd34GJojqGgmTwbx2eJ5EWAiAJbNkYSYk41GhHTkYDZlm4UstQFLPaoq6Ui04IZjMuYw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi57jOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHvw//XVHzGLFxXMDQnbMGXRXDJ2mu/Pnl+GQ30NV6TAhKPnLT6p2F\r\nwUrIcUs3lvEF6kU2a0r0SQciAft6iBfvBQnirXiuhH0LQ2P7A5o3hvF/0ycB\r\nxZi4Yq6yTLriu2T5dlJ4xr1ZLf9pSwHiBlCzwXvupmOCHywbV9ZdL0nBtG6a\r\nO3esTDMZVigOGVvLmE1jy5lmW2Mn6IuzpOyTWVBx2UwJw5xIXoWuMbh3oCHi\r\nYNIFii5DO5tyT3MM5Ka3xWThfTxLZt5JLSjjuxWNkh1ng1AoJXtTi81f38xc\r\n163Qgb86Xu6LUVYPIdcz+LvH5CiUAAT+lqV4qjdkUvTL/YLKf7B4GTivQv9E\r\nuqiGQ/wLN1h9dsFY2UGoHblHgZQsGGpcLzbJK2yHbFY5llpIE+FnBiNcexC5\r\nBIEpBZprk5IiDYluV40EuC1+LGWVioBa8HiZuRMW4Qc2npP4XG2Qjo2pojr4\r\npNkb1rdc9Vh3c4/FvDxt4GBiJW+Db7CgxJmvW9J8t5ESoY0Sl22yoGmpSwdF\r\n284r6vV0UTw6VfF07IX9BKF6Ro4nR7r8vdOrVniKEou824/xZO0+0LqeicvB\r\n/K0HTKA0Jxtg2f8NKcGdPMatq4ksRp7FQyj+4b1eV9JW3ZFpvr7f7/ufwvE9\r\nQBQyjlW/aS1K8EkjMzfqq1S3O4AGCvHX1Qw=\r\n=vKlM\r\n-----END PGP SIGNATURE-----\r\n","size":12249,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.15.0-develop.14.tgz"},"_npmUser":{"name":"hasparus","email":"hasparus@gmail.com"},"directories":{},"maintainers":[{"name":"jxnblk","email":"jxnblk@gmail.com"},{"name":"johno","email":"johnotander@gmail.com"},{"name":"hasparus","email":"hasparus@gmail.com"},{"name":"lachlanjc","email":"lachlanjc@hey.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core_0.15.0-develop.14_1659353294307_0.23496295124746402"},"_hasShrinkwrap":false,"publish_time":1659353294456,"_cnpm_publish_time":1659353294456,"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"}}