{"name":"@theme-ui/core","version":"0.14.4","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.4","@theme-ui/parse-props":"0.14.4","deepmerge":"^4.2.2"},"peerDependencies":{"@emotion/react":"^11","react":">16"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"gitHead":"63189550f00d65552800a3b3d043b18f12598982","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.4","_nodeVersion":"14.19.1","_npmVersion":"lerna/4.0.0/node@v14.19.1+x64 (linux)","dist":{"integrity":"sha512-DbUBZiRD6T+Fl+FrnFfwRu/iV64yl6oS2/a9qbOzSpBNaU56I7aX/cQbX7bjo1C7A1PQMkEDVQZD37O1n7INQg==","shasum":"541f18bbcc06c0c5228177edf6cc2c469bb66c12","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.14.4.tgz","fileCount":37,"unpackedSize":53886,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhAe5NTuXn4wHYjG4F+YSfMbFy6dF2YvXTrnakzi4QbAiBGJnOJlt8SReSgFBr58pdWidFcwToDraS/i9ua3iN20g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZG94ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqslg//Y3uT/I/BY8q599x8l4e3BHn+TyXGRCDGJtQ9q0Y8YqkH4L1Z\r\nyWZ075nxuMHGu+nsVueSmdYmjGFuOzqA0PmPEeHwAApU9Wia0mU5SRYXdgkH\r\nt9tRK3Aa8iojFqc0WNjs5AFFi+UnV0BUuJ5HNoi1/07IKX6B3KaztB2apyzo\r\nQe0bb6dLVB+i5FDb3ovchkkAmsHEoZWvICp5d+qQvw33RsjfEy90N1eCGC8c\r\nGe99JRVuc2Rt06gq4XKzgiff8cASXx1Xpf0a5wUYiYX6RHFbiQrDBFZ/5fU/\r\nmi2JoDGIVJxTNDh8Dby0CGRr9B9AEQfAfSB6Ngd/G2oG8lK4FUO5gT1b/x1Q\r\n/Bnn80SBO/B3EpC0SFwJ3/gi7oeuvqTVOMZX4tOCaTMdHiUwz9IZDRSA5Xgf\r\nztg0pApkFe8vTDJdWYrUMBCJ3O8Hg8f1AvGN/KpHTBGZI5akJTKcK81H5Hzg\r\n3R2iGRWYx8t7K9b1WsTn5YhAmKNyYYaEOyvjRbYAJ6vNzIjGIHZ8zbUZcQks\r\nOHs9yNzXa2C6cxR58Ekx05V5ryHW4rSJ4p3Koq/eKIJ4yWEGltsvXzxfOhWZ\r\nNBVt+47NkM3u0dE8XL6Gq0SXZ/CIrucYHyoxOxaya4xcB8Q2+3OB/ifMQRgQ\r\nfJ/T197khoPnCHefqg7WWF37przBRzz2MPU=\r\n=YTSq\r\n-----END PGP SIGNATURE-----\r\n","size":11837,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.14.4.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.4_1650749304134_0.5213578464029229"},"_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":1650749304273,"_cnpm_publish_time":1650749304273,"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"}}