{"name":"@theme-ui/core","version":"0.6.1","source":"src/index.ts","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","sideEffects":false,"scripts":{"prepare":"yarn prepare:index && yarn prepare:jsx-runtime && yarn prepare:jsx-dev-runtime","prepare:index":"microbundle --no-compress --tsconfig tsconfig.json","prepare:jsx-runtime":"microbundle --no-compress --tsconfig tsconfig.json --cwd jsx-runtime","prepare:jsx-dev-runtime":"microbundle --no-compress --tsconfig tsconfig.json --cwd jsx-dev-runtime","watch":"microbundle watch --no-compress --tsconfig tsconfig.json","typecheck":"tsc --noEmit"},"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.6.0","@theme-ui/parse-props":"^0.6.1","deepmerge":"^4.2.2"},"peerDependencies":{"react":"^16.14.0 || ^17.0.0"},"devDependencies":{"@types/react":"^17.0.0","react":"^17.0.1"},"gitHead":"8aa64028a69485be91a8cbf0e2230f7ac7fd3e6c","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.6.1","_nodeVersion":"14.15.3","_npmVersion":"lerna/3.22.1/node@v14.15.3+x64 (linux)","dist":{"integrity":"sha512-QrjEvvCEsDj2YZVB98OIYXr+kF7OzEb5CBjNAMppwAUhQYkezBDHaLnJfaaa9RODe6KAjQYHDstzg2coEmizSA==","shasum":"65f039515daadfa76448798540f28807ec91e59c","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.6.1.tgz","fileCount":60,"unpackedSize":106212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYu25CRA9TVsSAnZWagAADI0QAIMgXzDABQ7Iehz9gHfF\nQuRNBFm4xP3BDIjRitHxjwBvqMoS6PuHG6/ZxwtPk3zf7dsAedeYO9A52Csl\nSlduv7jhqxRRKu5Sh3RGoipxDD+3iHRm1cJJMDJDPOrzRDysaoPEtxKq/hBV\nbWBky5Yb29xo280masH1aiaI4l8hQxm0Btpa3SohIriRIstkdr7DZzABv5G1\nTWn52Ub+ndnRKoVJyHbFX6hL1kyn7cxlCR4Vj2446inSOSw4KwS6sI9hUinn\nqZvgLPBwhNMIkkFJE+H6lYI4OJQbJYqEPU4buY14cTWnvrMNLf6D7w7urYQL\nNU6s1DNrfSQXidvX+WaPF1o86l67ruuVOsxGe3YNgUqy0NtXHYpQ+3H7yIbY\n4B5pyu/xqSEHL4VJJ/CsWu6W4zxNJRWNpOzxMLi5Y2fDR2hO5v5xDFZIheL+\n0IbtaT696RuhihCbyb/JjXqMRq1DyXi30GAOxdieUiNJMJB2UhV/3IAeP+12\nr0nLfdBFokaRKXFkxDHUyTU5GstZXWvaPTq7SM/SIAd/4wL9PBTr9aCTufNp\n+FR7vDbA6yFo4gkogGkeI2yNoolLlx1v/0EsSewby9nIgIAz01k1zwjOUnv7\n2wdqCqxdrfOF9rlxfaAnijHNJPuHGuOzJpNLe5Gy44PScmX9NVSFMh8jkLtK\nsO6/\r\n=Qnhf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaC9q3Riliqtd2CKSNrxZIMoJgU/5lD/2MGIwCe8IXZQIhALUqlQbzkyMJoftzm3r3yTnKTPDZLZ2K3cieo5MsgNmN"}],"size":15473,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.6.1.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.6.1_1617096120702_0.4212587825990086"},"_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":1617096120880,"_cnpm_publish_time":1617096120880,"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"}}