{"name":"@theme-ui/core","version":"0.15.4","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,"repository":{"type":"git","url":"git+https://github.com/system-ui/theme-ui.git"},"author":{"name":"Brent Jackson"},"license":"MIT","publishConfig":{"access":"public"},"dependencies":{"@theme-ui/css":"^0.15.4","deepmerge":"^4.2.2"},"peerDependencies":{"@emotion/react":"^11","react":">=18"},"devDependencies":{"@types/react":"^18","@babel/core":"^7","@theme-ui/test-utils":"^0.15.4"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"scripts":{},"description":"[![Minified Size on Bundlephobia](https://badgen.net/bundlephobia/minzip/@theme-ui/core)](https://bundlephobia.com/package/@theme-ui/core)","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"homepage":"https://github.com/system-ui/theme-ui#readme","_id":"@theme-ui/core@0.15.4","_integrity":"sha512-QlbRrY7TV19LEMERA+vUANnte6VUPHoFfoU76lZ2aUys9w+Rr0IZGmzUxXSOg/172v9cxsvbVG0Uleny6B6Q8A==","_resolved":"/private/var/folders/78/vkx7my5x2zj3jk033zslz_c00000gp/T/9dde832eb51ec1709370632d0010e623/theme-ui-core-0.15.4.tgz","_from":"file:theme-ui-core-0.15.4.tgz","_nodeVersion":"18.9.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-QlbRrY7TV19LEMERA+vUANnte6VUPHoFfoU76lZ2aUys9w+Rr0IZGmzUxXSOg/172v9cxsvbVG0Uleny6B6Q8A==","shasum":"cb959a6f31515f8fb3a3d583c44089ec18cbe2e5","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.15.4.tgz","fileCount":43,"unpackedSize":60607,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyQz/oVcqFD5ol8g118DQzlzJTn82DDhfqEE+EZRtmMAIhAOZ1KlcInyflr/WbT1EgD7a2EsYu5GPtRinh3s9QAAsj"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbOdQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcVA//eZngijKBGUk2YNdU4hyrXYxUIZnWn2hz0PifWYOTbUWtQCop\r\nUnRuXiKZqs3qijyLI3bs6vwD5FXB5WeYzRb3SzRcY+e4esywRwmWKbZpRqeW\r\nU90aS+T3oIsUUd6rxHbzDSSvzgv+8ueGy9Zf7jAK2jC91LgJbtjV2of6I0xs\r\nVkNIPW+dPrz0AqzvrjCht/gSWgK/ObGzYt77o1xa1CXLni2Xe/Y5aR7C0aty\r\noCSoOxh06otLIIdcx+P6MmcYWA10KWg0/TMeygdhPxLxnPImkjeBzZQER+ne\r\n8KGreZkwYxbi1s0j1FUR23f6mIaLZduGBHh+/MhTsZZBqBsjhNTwWwIQXpQF\r\nyw5cB6e9ylQoUY/zqnRwyUphCw8I9TZGHQy8i0hoz0se0xTDLpI662lHEDMr\r\n9pb7TzTvqZsEB3J5W4deC7dnBnpfjBlUywm5nptwEimZ9CySR2QIKqLMgDTY\r\n2fHpk3rGr21XHiwB/j485Rhp4nY6ir8UzVBflfoMwfYFi19bdVDOspX3ZwJk\r\nXjwhRgcgJ6P5lyfuFHS0UfuGSgjHqAkbEr0pfvFAAzSIP/qQfzrE6GerQsSO\r\ncdLFW5z/duDC98pEastTLqK4HFg7QutJ7kanrp9cWJ1BcLwhMgHoMEEcRNQt\r\npMoRwInXTvfZPnzustcfxsbWWTL4xV39i9s=\r\n=SZks\r\n-----END PGP SIGNATURE-----\r\n","size":13300,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.15.4.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.15.4_1668081488445_0.7320054453972895"},"_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":1668081488616,"_cnpm_publish_time":1668081488616,"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"}}