{"name":"@theme-ui/core","version":"0.7.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","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":{"@emotion/react":"^11.1.1","@theme-ui/css":"0.7.2","@theme-ui/parse-props":"0.7.2","deepmerge":"^4.2.2"},"peerDependencies":{"react":"^16.14.0 || ^17.0.0"},"devDependencies":{"@types/react":"^17.0.0","react":"^17.0.1"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"gitHead":"0b8f53e8e88767910d41cab0c180123daf96aeb3","description":"Core Emotion and JSX implementation for Theme UI","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"homepage":"https://github.com/system-ui/theme-ui#readme","_id":"@theme-ui/core@0.7.2","_nodeVersion":"14.16.1","_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-Y68oG6y5jq/lKrxtnJnRjG7a/Lp4yD54/NWGu+4din7tvKEZ68KXeHmorGCe/SMlHxuBhzxFPBIi1bEfb0fOiw==","shasum":"5bd7c0b5be575e5c6c9938f74617c708b382a902","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.7.2.tgz","fileCount":37,"unpackedSize":52340,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfcrICRA9TVsSAnZWagAAsxgP/1v3NSEiGAtz88hZJlgx\nRAvQZL1ywvLRx7lz2tgUN4Cs97WRIBO6PNRbhurMEQP6DEoivj/lg7tVSxFQ\nxrdE8RQJT1nGlr15ouBOKBKrYWM7bATtRVyb8N/mDnvoK2DwzD4gFIHtbLeV\nUCqYDKjkeAztzYvOUc+J5y6XdQMmG2Tr2iugtcRCt/XG4GNfUVe7/Fl+Ksan\nhFnmFXLhuGvFTKvWbw/1hDVJGagBlofNWKmZgnV/UqKzS+PpvRQ/gZcxpnOC\n9DP1vN58Imjqv9hFHVQ7dfHYklNbQ2WnOMLw73LbIrRYHwojfvmFbIrIiO2k\n4lsq1IpBB8f5hsvcq+IQp9nHActonBroIW8HsIiT++VA8o55cUz7b5S6rhgQ\nUtMofkkGygRg+3zQJbyy6mgMGwaUJ4to251f29VqisuShodSg50SG5CVOFtJ\nXntKqPnal57SbyrjgY8qPASijeYy1ljGq4mrSJ3+ESrbAU6g67Knq0YqQkMY\nvZ8CpC/GVTNcTwNgSEz7i5RV0pLIXmomoPjQGIcr9PAfXC9QeCclPnOKUOuK\n2tmI/FsB2ZAyxp+MkcCsfYhmekLCh+lETyIgfLDJgfeMrJEnrmGeMmbO85Au\nqeTop3a62MOmsbpMlrwqG7ltieBDLe1v25yRtcAHARQ0W6u5oPkWRQPl/uE8\nByf2\r\n=AHtE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCe1fpGFObpYifPUznT527yLzw+lL39OBaYNNOE5DXhAiEA1VGKpU90v5E8jS3MW0yg6778vyRfsgNLpHpgJp2DeVI="}],"size":10607,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.7.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.7.2_1618856647862_0.6949978126471317"},"_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":1618856648061,"_cnpm_publish_time":1618856648061,"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"}}