{"name":"@theme-ui/core","version":"0.7.3","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.3","@theme-ui/parse-props":"0.7.3","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":"67926a9b100bb72c43dd6ae3a9ef4ff10818ed91","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.3","_nodeVersion":"14.16.1","_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-cYf91bTkw77n0VHUSE6QsZsR3xSpPuj3TGahbYeyYCPAMvWYy1a56OpK+nKuzsJjVj6f0VKh+fg0NqWKWA1gAg==","shasum":"59c9f66a790d6f6a4f21809d780379cfb5b1d89d","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.7.3.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\nwsFcBAEBCAAQBQJggI8fCRA9TVsSAnZWagAAgQAP/iNXEDP4OD4w1ClqpUX/\nLiBiZ0+QMh6J7yMVkLV/LIBhtB+35t3FFNk+NZEwUlBtE7W7470YrA8rEV0G\nan+A00bYXE1twyP5DZBuC0/H2k3MrI8rhDYa+XLBgyQJ8qc+vyVKPPIhSJf6\n3nQWJJGPbw5JoWOnWkg5wFyEXdEn2nxbTIuVNTTJ9HyYIHbSrgUlHXHv5b2j\nWQuqFPWpV8jt6sz7OImavyDzF0dFrpBQqn+BmB4nZF/x2M5fUAT49s3LSCTz\nJnuz3lt3cNF20E039DV27d5SPzSkM1ZeJyGBsNRt+13RQ+G5tdB02WgTe4Ez\nkIOatpfXVowh4jBJC0LM/HlzMRnWV2N4Hcttr9IBN/XhY9fitT6FQJE04Ykj\nYwXRK+efi+axka9JJfxfg8MqXT8Zf/cjfd91Pl6Q6eR9ucucbI9vNiSV2iQ7\niHAMvTzt6wHY2JqcePlG9LIU63Lb+2mJz0rsD/gf6H1U8P6Nn7vIJKkI1kRK\nNGnd+ND/g9FMQ2Xd637KofgTAOXdVjz0dlWqPqfz/3EsBKMhEe0xMxY+uK/X\nbb7a3echj2/ytDdl8fUOW+VHJL4u9zuFiDP3VQyvdCT9aUdPTN+AX15NdcAw\nmvZWjgmnJX1/Ob5k9Lk1vbc+JBUSQY9wUrWn2n1chTMw6cXiAvb1t71cmOM3\ncIrW\r\n=Q5aT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXH9DeaMFDbogPukCyZYYTCfMmJPc9bDQ3rQih4YCs2wIhAJqn+TSWKuk59Pg4unsO20wl+C17pUgKLeKgdvsKE9f0"}],"size":10607,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.7.3.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.3_1619037982728_0.26773861746077854"},"_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":1619037982842,"_cnpm_publish_time":1619037982842,"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"}}