{"name":"@theme-ui/core","version":"0.14.0--canary.2043.a8ab69e57240f26f57b17517635946d6918bb5e7.0","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.14.0--canary.2043.a8ab69e57240f26f57b17517635946d6918bb5e7.0","@theme-ui/parse-props":"0.14.0--canary.2043.a8ab69e57240f26f57b17517635946d6918bb5e7.0","deepmerge":"^4.2.2"},"peerDependencies":{"@emotion/react":"^11","react":"^16 || ^17"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"gitHead":"a8ab69e57240f26f57b17517635946d6918bb5e7","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.14.0--canary.2043.a8ab69e57240f26f57b17517635946d6918bb5e7.0","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-mFxZHEKzDKCfGhhJplnsALctXD6qB7ke4N2hQeDDt4Zzi0+qERpK2vZsQuUZ/aVEg3/GK+BPkTnG5RS8guoCdg==","shasum":"92a63eae27e695f1ff015953c35f03ca5c736697","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.14.0--canary.2043.a8ab69e57240f26f57b17517635946d6918bb5e7.0.tgz","fileCount":37,"unpackedSize":54061,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOGoNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXng//ejVOQXWWJpv1i42w4rGTi9sh0AjVcgVF07kN6eW6r8bwCFmP\r\n6M0mjI2LPVvM7iXevzpBMfQsPBCex+cs0foFPkBUP2nCe0bGcWRq9YnJkbs+\r\nTkM89kA0cjhnjO5qcfFdQZQxyXokm6jWT2A3vbonmkkD0w8OM+zX6KqYmvXZ\r\nuDZsCRj3ZCxYt+VGxY5vHKToMbslyRwN3WS5QdemWDN3JPQV5XmxiBmfUZWh\r\nz8fq31NoVVAmvqaHtft09TIHN4hZpzocy5bfNswd90/2K1dQXDwo/BHduEsL\r\n29f8v+6wtJPhoao7MVh/qxqQnro/e0AZnJuRPx315DlyLuybNsl0bYzQX07s\r\nCX4gC48rkGzWSDXaH8i2/PI0OmC7kwoWSt5V/laUcF7p2ldpaZKDpSsRxWrf\r\n/hZtxC5JhVJXsxEaju6xrr2/NuvwrcpYqkQJFnvUw3tsUaon2u6fJ7aUPUMt\r\neJHm/7hh3g5ROb6V6CVZ13aYMgdpbjsAJpvaNMsZJaFsNZ8YE7QfrWfm3nDR\r\nckfzUoWErTPIm9kZnTxT5lFheQcovmt3oQKucCJWF/5NkFz/GYQVG+jmP+M9\r\n1fqa44G8d0DvvwhRp58/1OwoNjQ/yGyvyprHmmf727TkHgwblvvtGF14Ebod\r\niQwMmYOt/bZiRM5At8ZaeK4f0ZzN2T4pEmU=\r\n=E5c9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7FI3xaLJF/cD7zHCJdXsPqrniRaVhyk7tSvGLRsWN2AiEA64JmIVhRWKl3YW/Jh4jR7WlB+chr4Mi7ynvOCzjxggo="}],"size":11864,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.14.0--canary.2043.a8ab69e57240f26f57b17517635946d6918bb5e7.0.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.14.0--canary.2043.a8ab69e57240f26f57b17517635946d6918bb5e7.0_1647864333241_0.8244229318510508"},"_hasShrinkwrap":false,"publish_time":1647864333614,"_cnpm_publish_time":1647864333614,"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"}}