{"name":"@theme-ui/core","version":"0.6.2","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.2","@theme-ui/parse-props":"^0.6.2","deepmerge":"^4.2.2"},"peerDependencies":{"react":"^16.14.0 || ^17.0.0"},"devDependencies":{"@types/react":"^17.0.0","react":"^17.0.1"},"gitHead":"f25b73f7e9aa919b02fb5d23231cf7d7d739fd88","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.2","_nodeVersion":"14.15.3","_npmVersion":"lerna/3.22.1/node@v14.15.3+x64 (linux)","dist":{"integrity":"sha512-x2AQoakOb+W/SVfFRuJzjBnXOrFR7wI9yVIwSWhchgoVk2CadLencEwacvlT95q2VyOY7C7pnSkb52t1y60aIA==","shasum":"ef8e604d601b7f0df2931893092ec0b95295542c","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.6.2.tgz","fileCount":60,"unpackedSize":106213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJga29KCRA9TVsSAnZWagAABBkP/jGkTqEr+DsZ+qYJFclg\nO3JIGDb0iblT/Pg6+b/+y+qnzB2+e1aXOsHPxlGHaoGeMdOE6H5XtvaZ4kvR\nRp9ndTdJY21rjeJxdPTGZNXtRVhdWMa/9ELPVt0QfEgc+QBap5AgYYTOK88P\nIxxzUE9o5iRC+q6yOV+CScaxMnL9pp3YB+Tm62kYSjp3umx1dWDcjX90wpOk\nbyMuQcp5w5OUSxMoc8WMljRbk+hOWLKAEvs5kJQrL8VpmE76DEQpt0NIQQlV\nkdl8vAGm4xXsOA2iMnKTRLiPeTlVEXY4xXRDF7bO+TEuGmlAn/AK+kUVFUMB\nkUQtVOqHpk5ELLxmUj5r8+dcx5KRGlK2wmILlyE2sM+m0KotysIZ5/gnA27u\nWRxJdLWXBGFdioV9JRnP41erffhsKZ4jd61Avh+6MDCljHFH9/GzMjzR6FdQ\nP1JweY88+YnZia/slExvic7l5g4C2e+kAFo2gOO5xuZMUBd7JCr9WH4o9uzb\nzqQLmBvFsikcZ5p8fJFSCG+t+tz2irYEBASGbv8aX3X1LIwhYR2FQ4igbUWq\nOV4GOvpiGxm4l+FsTkMQeOTjWpDV+icxsYi1NGyUPXUfqZ7xhr7PapO+XTBe\n5rRInhb3be39QtXHtgfqU3c4Jxmg3nVXKLODI9TYENEGo7Y25+4ttFs2gGu4\nZkKq\r\n=cq4r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGTm+HkS2wVoUq9gy4DbQEBkDVC4/oGFPULTFOEOoxMAAiBKWVM9SdNh86w1i+eOr3uv0ghe/YY0dBK9go+B8yaMEg=="}],"size":15471,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.6.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.6.2_1617653578303_0.45887055084700856"},"_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":1617653578464,"_cnpm_publish_time":1617653578464,"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"}}