{"name":"@theme-ui/core","version":"0.16.2","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","browser":{"./dist/theme-ui-core.esm.js":"./dist/theme-ui-core.browser.esm.js"},"exports":{".":{"module":{"worker":"./dist/theme-ui-core.worker.esm.js","browser":"./dist/theme-ui-core.browser.esm.js","default":"./dist/theme-ui-core.esm.js"},"default":"./dist/theme-ui-core.cjs.js"},"./jsx-runtime":{"module":{"worker":"./jsx-runtime/dist/theme-ui-core-jsx-runtime.worker.esm.js","browser":"./jsx-runtime/dist/theme-ui-core-jsx-runtime.browser.esm.js","default":"./jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js"},"default":"./jsx-runtime/dist/theme-ui-core-jsx-runtime.cjs.js"},"./jsx-dev-runtime":{"module":{"worker":"./jsx-dev-runtime/dist/theme-ui-core-jsx-dev-runtime.worker.esm.js","browser":"./jsx-dev-runtime/dist/theme-ui-core-jsx-dev-runtime.browser.esm.js","default":"./jsx-dev-runtime/dist/theme-ui-core-jsx-dev-runtime.esm.js"},"default":"./jsx-dev-runtime/dist/theme-ui-core-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json"},"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.16.2"},"peerDependencies":{"@emotion/react":"^11.11.1","react":">=18"},"devDependencies":{"@emotion/react":"^11.11.1","@types/react":"^18.2.12","react":"^18.1.0","@theme-ui/test-utils":"^0.16.2"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"],"exports":{"envConditions":["browser","worker"]}},"scripts":{},"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.16.2","_integrity":"sha512-bBd/ltbwO9vIUjF1jtlOX6XN0IIOdf1vzBp2JCKsSOqdfn84m+XL8OogIe/zOhQ+aM94Nrq4+32tFJc8sFav4Q==","_resolved":"/tmp/a2bb039c675805a3995e596a0e2841ab/theme-ui-core-0.16.2.tgz","_from":"file:theme-ui-core-0.16.2.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-bBd/ltbwO9vIUjF1jtlOX6XN0IIOdf1vzBp2JCKsSOqdfn84m+XL8OogIe/zOhQ+aM94Nrq4+32tFJc8sFav4Q==","shasum":"0c63e18ec2d4c25d045a8f5613c2665d268eb74c","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.16.2.tgz","fileCount":54,"unpackedSize":67518,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeFNiPJ5veUEc2Tdux7pKsXqc+q5853TEo04zgSbvDUQIgO06T8OHUeWz3hUSyBzYXEYUojZGHxE7DTrqKfNbyEYg="}],"size":13919,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.16.2.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.16.2_1708357183384_0.0033824759656202463"},"_hasShrinkwrap":false,"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","publish_time":1708357183543,"_cnpm_publish_time":1708357183543,"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"}}