{"name":"@theme-ui/core","version":"0.14.0-develop.21","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-develop.21","@theme-ui/parse-props":"0.14.0-develop.21","deepmerge":"^4.2.2"},"peerDependencies":{"@emotion/react":"^11","react":"^16 || ^17"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"gitHead":"bd22b3ed3dd3da98d2659774b0feb70d804ad0b7","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-develop.21","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-9SLR3qgrGEN/bbrFazwAGez7ncZCdsgBWYzDPuvNeILQG3/prmUtb14ELyxLtEvZW386TX5GNtVHMRcsreH52g==","shasum":"712683967d5cf44c16fc87afda27664f7c67c67c","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.14.0-develop.21.tgz","fileCount":37,"unpackedSize":53926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiManCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrrcg/+LHy4G/WHB/8btKTyHtXGjMnNZ5gt9ib0AH2Wx7GUJ9x6pd+g\r\n0FORlAHOOqJbicSpehxKZGz3a5BmZmaWJ7U4M6Mf6QUaXsPkQQyeSmFlSbBz\r\nLAoSqxjK63TkaNIBiTfEyWdRLy9FoDc1TGqbHhBgIgq5zp74eCGwFdrMx7WF\r\nMcNOTSFwvB8csYZCKqRF9DYhrE1DKjCpj8i/cp7wQVUckutnt90XRCzYG9q2\r\ny3EdVS78iAywl78trfxpamE6i+hzJCBvQ7XR7Rq3RVF1nES7X5KrYRROXuDT\r\nWkOF3E+DJ+uyWiVoJZq29xPRD3tTi+D+4SVEpWL1EylMTsQcNNdDUiHAveRF\r\nq8gDc4rs7MqpP55mvLqavhPWSz3QsPVUQWemWLq9Uxpq3nj5ESd7M4vTdAay\r\nV1miaW7jAgfJzJtYOcdLVKONXqS12cvD/C0IdQEI7fGvwFnF/Kr1AMOiZBiy\r\noBfARmm8ArFcy5V0NUcOYmCOksPpboUUGoN4ORkpMsuHa0FDspSC3xq9bvLo\r\nM1OmTverMNpiETmEpn5NLDgTTHqxTEzF+Hx/nhUVqQmFrvJPbEar/dYKyvx5\r\nSkWhXd29X6OI+DtAHHaxO5ZAYWEzXT6tQDdRPrevN5lJ2tj8hWVdDstCKDev\r\nujix/0RQorM2Gx9tke70L33rUHqiFBe/9J8=\r\n=U8ZA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC8Y+Zau38XcXR8cxMgcuk7M9R9a25aE1PyfEWCBWGYAIgWobfrLqiVwl/XmergzvcScfE9nrxE/F2FM53jNwcFd0="}],"size":11849,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.14.0-develop.21.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-develop.21_1647421889992_0.09208460021953169"},"_hasShrinkwrap":false,"publish_time":1647421890096,"_cnpm_publish_time":1647421890096,"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"}}