{"name":"@theme-ui/core","version":"0.15.6-develop.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,"repository":{"type":"git","url":"git+https://github.com/system-ui/theme-ui.git"},"author":{"name":"Brent Jackson"},"license":"MIT","publishConfig":{"access":"public"},"dependencies":{"deepmerge":"^4.2.2","@theme-ui/css":"^0.15.6-develop.0"},"peerDependencies":{"@emotion/react":"^11","react":">=18"},"devDependencies":{"@types/react":"^18","@babel/core":"^7","@theme-ui/test-utils":"^0.15.6-develop.0"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"scripts":{},"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","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.6-develop.0","_integrity":"sha512-OW219rzfsRy5Qcae0CL/6ODtBJbHYLozLCevZdOLMusdDqhGlbGV3arpocmaehLrLF2UFwkCzDvkr6VsJTytMw==","_resolved":"/tmp/78122e71d9616d0ace297c8b39ba2269/theme-ui-core-0.15.6-develop.0.tgz","_from":"file:theme-ui-core-0.15.6-develop.0.tgz","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-OW219rzfsRy5Qcae0CL/6ODtBJbHYLozLCevZdOLMusdDqhGlbGV3arpocmaehLrLF2UFwkCzDvkr6VsJTytMw==","shasum":"0897e3d3f155b843f095c8a22cc29c5eafbade1a","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.15.6-develop.0.tgz","fileCount":43,"unpackedSize":60637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCz2FHA8tv41ms3SWiZAGaGDPvm7Gp6uBoySVE6FHlUswIgB/HCU+mVtWEsZTmvg3qdwKSzIgZceaIur3cXqdtcZZw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/V+VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrl1xAAhZX3n+DlB9R5mg3nsZu32EtSkXkoGMxlvKnO7ZxpZlnI3KPG\r\nM+/7hnejfSYpwfp2BYCV59DWATyS+KQdwHdI1/DKqlgVPpFqeYVbRfUBt0+e\r\n+6YszTIwVv3nP7qJdfCGKYXZc3VMs7GrINWTnuZJpnTS9CoOniGs9ueMZCcE\r\nEkPzpXzrM50vkzaBgYdOXNXA7Ri4EliK5TdUbllvrykF30Isq1G5enaZy5Xq\r\nhAJFHCdOxp/KEScZgrnh+JlaVjxB4Dc+Zj+PyKHb/+er8xiIYiN+TiSHEEcM\r\nr9YmUZdvpRxrYfSJR+dSSWU9TCw4EkHChDOBxNUzt9feeZ7jpm4ycpwOk/H6\r\nkk3C0DAtBXHaanxa/sxfeoNSJtbaL1sP+5fGC0g67f/9jTqZlDZZRoiapiAb\r\npi6npB+J+XTIiYfJyUSoRk1IjbZhRLdp3DWD0HARKTqT+oYFReQGIiCc9kHx\r\nQdirJOoNA26a18f/CuYwcuQunDcm4WVy49pJWpvcQrPkx9K4g1YAXY23ptbD\r\ndPKUiwmAzQPy8cxHSuP6WavkTxm9e8SqoReSWz+4lTTLreBA3qhoJe1J2oz7\r\n88BRo2xWWMhgWHPKEbzFXoLWYAFaom8fAIG8f7c58O8ghrmTzmB2C5aig/WF\r\nWcrZ2SzU0gPuJS9iRtmH8G9U2K4hOH/z7Ws=\r\n=60Zi\r\n-----END PGP SIGNATURE-----\r\n","size":13293,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.15.6-develop.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.15.6-develop.0_1677549461544_0.9709579289242476"},"_hasShrinkwrap":false,"publish_time":1677549461728,"_cnpm_publish_time":1677549461728,"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"}}