{"name":"@theme-ui/core","version":"0.15.7","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.7","deepmerge":"^4.2.2"},"peerDependencies":{"@emotion/react":"^11","react":">=18"},"devDependencies":{"@types/react":"^18","@babel/core":"^7","@theme-ui/test-utils":"^0.15.7"},"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.7","_integrity":"sha512-87GcBbnpOvOwx0RYvWt4apuJEQ0+O8JvZuSYxdSVMXMbW0BUV6cU61KYRVArXIilNQgj49vYqiE6MGDBecoPmA==","_resolved":"/private/var/folders/78/vkx7my5x2zj3jk033zslz_c00000gp/T/8f140f375c794200e08f48d4cbee9a7f/theme-ui-core-0.15.7.tgz","_from":"file:theme-ui-core-0.15.7.tgz","_nodeVersion":"18.14.2","_npmVersion":"9.5.0","dist":{"integrity":"sha512-87GcBbnpOvOwx0RYvWt4apuJEQ0+O8JvZuSYxdSVMXMbW0BUV6cU61KYRVArXIilNQgj49vYqiE6MGDBecoPmA==","shasum":"2ded69abea26710011fac6a25297795c4bdeadc9","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.15.7.tgz","fileCount":43,"unpackedSize":60607,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1Zyq72xYXCzNqk5vx7LndFYE4sEmrnO3246EXTwMMGAiEAmyV0AXbFLSiwDHmOq5z1CwaLyXtpu7h0DM4gCJ+9szk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJdw6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDVBAAk0Drg79q2a0MHfQvFosCPHbNq2++9eAVcO+Ybb+EgCRdIgjp\r\nSB15Hfdgx1wKEV4vmQGIv1Te972emGW7Ru9EfIsSdTjA+e0CVGeIHhji0S2N\r\nXnGJ65VIelGk5BQyJJCs3k1BpJc7S+lIBRPbhf+G0ktGOwLgQlDHyHf1Mcf7\r\nqLoLgtwCnzf03MVkiaabuO9w4R0gZxs0repsPuOUdCyw/jpBYu0O5jnS7OVc\r\nE1Wi483nPbOrxJYB7Gxy+BwxgEsBo+u476gSSPdCRlZ1am2NtEDRZwtTs6gW\r\nhqmKVvU0JjZxar3+glJqiBNdqS68LaOJCRJlBljAS8//TCl19pj7YAG2+qW1\r\n6oKXBi+2iNao9fikH4DN3fFctqzCbOr8Oj/XdN9ZhGNZLn6cdIDLClbxFfum\r\n1emaAyrHje67WUHEYyEU4Xn3rqLPexzt4HVavQTeTkNx7XCa5uljHJudV6HH\r\nTEqP/llyQ6lYOrU0rlRaoY0Mv7vtz1QpzPqkuLMM00ciLyoeSVObHOSaM8S5\r\nSu6wFLt0cEsIRQar7666HBrzvkKC5F0Zv52gFQaap6g/rySVC2NC0hRg1tUf\r\nW6vd5eWFHqM3y4XjiRJHsL7cQ3nj3pT8nvBolL0/6cbbbXtRFxRAYITP/CwI\r\neT9yAIH3WskUstiHzwTwFoas7eViBizK8Aw=\r\n=yhYY\r\n-----END PGP SIGNATURE-----\r\n","size":13299,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.15.7.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.7_1680202810108_0.8574181807248287"},"_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":1680202810386,"_cnpm_publish_time":1680202810386,"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"}}