{"name":"@theme-ui/core","version":"0.6.0","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.0","deepmerge":"^4.2.2"},"peerDependencies":{"react":"^16.14.0 || ^17.0.0"},"devDependencies":{"@types/react":"^17.0.0","react":"^17.0.1"},"gitHead":"6f37cdd3e911b25aceb091af9ae313825d5a4bc0","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.0","_nodeVersion":"14.15.3","_npmVersion":"lerna/3.22.1/node@v14.15.3+x64 (linux)","dist":{"integrity":"sha512-q+O2j+4fnZHwyVPcY4iIHCxYCby0PdOzZNWvdtdoReldefI/+zB/6HMweEaIXAT1rS2abTBW9pyp1WJvzTeI9A==","shasum":"a37a220c8aeb595ccc1dcbf86f25276554475c4f","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.6.0.tgz","fileCount":60,"unpackedSize":104212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWB+bCRA9TVsSAnZWagAA8PoP/REsFAKWdfcYnRPhH8NQ\nzD0WjcIB1WLdKj3w/0uQsh5IOjm6r4yMjI1XUXr2gh/FOGLrZ+RPoYKaEuNW\nASPRl2EP/GxA095OzgZcKTkhwxHjZzsRYdqjhpjr4A7JEYHk2bSUJ3etlZ+D\nT98FTDFfA0FpNhqnBDni01+y9kFl3eJ8ZcNOZ3+zcDb/mKVKKDxXfoWJL+4X\nxkuupANct2UddrWOpCwKh5t/BIGYoStDjjDqONQirHFt/zAyoTFwTeaTDMz+\n6c/aR/O8w0L/VT+kwQ8Jy6a53Sm/s8cq9glVQae95fLpTaLXXKFsU2wjj606\ndqzQ/XVSkRw2Oe4dQFeGPo//Tn0+S9RW3evav0Zv3n30ukKqX42SvF7SZccZ\nKyGcK6/1yEeAatLEMlj1EJTBsHxj+pxaY5xRaRzz5YwkKNja9G6ZTxtp57rC\nLpWsfQ4OfzxEH45jsWjomIPhYDv96noQ3mLT8A6KOClyDczW+UofJ6vOYySc\nrcKXRx+SwELc03j+uZKHOswPyKyk3yx/gSsyAbLzuUaGpL3rdlaVbvFF4Ago\nMBURcC69G5LuFkmI0eE8XUHQYcQnS9DlMR/o7tQcvVdxbHQkOgavPRmN0lgV\nIKMFAIEn5UNSsI/lz4ujt6I7SytXafnWmzfCcjwK+b8QcM/pvqDiUpGsOoPY\n7uc9\r\n=ChXo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmUjPp22Ly71ykq6MhF6fK6LPhPfMFzawkrTG/PZIyiAIgFMvNAN1nA38pkVNPl56d8jpbKw/W/4Pn7bhmRIlCDDY="}],"size":15259,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.6.0.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.0_1616387995483_0.8529940860457503"},"_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":1616387995662,"_cnpm_publish_time":1616387995662,"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"}}