{"name":"@theme-ui/core","version":"0.15.0-develop.12","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.12","@theme-ui/parse-props":"0.15.0-develop.12","deepmerge":"^4.2.2"},"peerDependencies":{"@emotion/react":"^11","react":">=18"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"gitHead":"4bc3a8cdf7446b3ec349c9c55e299cc0fd8e36f4","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.12","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-qTv7wYhJpqmSwW4/vYPoN7fAUHqmhlWlNRDQhPncBOHNG0uxCDLMR2DrUW/Nm7ap0tDCcHSYI+6eY+5FMV5a3g==","shasum":"b35e6320af36ab337a1ea658324a6070daad0653","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.15.0-develop.12.tgz","fileCount":37,"unpackedSize":57217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy8xUJ6nxTx1mxM9803f+bafC3zruwdfbG80SFwPNauwIhAIu4z8nBhX5RlF7qgmegCAFRGYwJ2U0LBc1cb0N1YKVI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi17qUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxIA//Xk8OuAesmo5xA3ToBjXRmiOOvbzBoHHWHGnlxvDhrLFgqR8C\r\nDdBDxKUDxs0+K/36Vn/nAujK0vV87V2GXtGNSvZqOmgg953fK0l+XQSV2Bgw\r\nswvUza5vXN3Ra21DVaKEZGeLamZ9z/Rdk92waoOw1Akq6a7Wx2hDG/vXfcSr\r\nn1MhhO/pusTcZxJvxlql1xCDS4tcAsX4IFsJBW2xuL5axb1hZ+1rPzHwPUlS\r\nhOYl47F/uQ8isZ+Dn3Pe+A+MQp9dh28MbzUdLPXd1EUNMdkM4H266higpcc7\r\nnnTG1EFNhDX62RVG+AyR2gjbSOZRfpPqq6EceMNDO//QJ1xtSlXP2QzgSS7/\r\n5Ecc4gJUd56YBY7Gs37vHi2Ngl5GnvDKvAEWVluTiC3QJ8ENT5U28x/PBcQc\r\nvxuTyOkSwiO8lECFPJHgW2Mhckhlh2U5/CdMdDIHuuNN6joBuWCQyut7Gliu\r\nNYby1d2ep6HIvHYP5v1EMuFXs+Cd5B+2pzpK3jXjAs8iLeNIQtFD++6QUKmC\r\nKp2oIJnws8SS9x8TiawlvL4oqE1JzrZEo8cNkiySdpFzoyQ0YVoIJ/OWiVq0\r\n2Sih2nFo+jRJs1jiWx+NepG2XQrgt8S6dx/qUZ4dE7AwC/erDkeaNuTRe/8g\r\nJYOGTx7cfgZEUqpxprEH1RZdKFG+k9FgcxI=\r\n=yU79\r\n-----END PGP SIGNATURE-----\r\n","size":12250,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.15.0-develop.12.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.12_1658305172485_0.7270176993515709"},"_hasShrinkwrap":false,"publish_time":1658305172740,"_cnpm_publish_time":1658305172740,"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"}}