{"name":"@theme-ui/core","version":"0.15.5-develop.2","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":{"deepmerge":"^4.2.2","@theme-ui/css":"^0.15.5-develop.2"},"peerDependencies":{"@emotion/react":"^11","react":">=18"},"devDependencies":{"@types/react":"^18","@babel/core":"^7","@theme-ui/test-utils":"^0.15.5-develop.2"},"preconstruct":{"entrypoints":["index.ts","jsx-dev-runtime.ts","jsx-runtime.ts"]},"scripts":{},"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","readmeFilename":"README.md","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.5-develop.2","_integrity":"sha512-gQyRqy8xafYeumzFG93Tj+Yqv4MQ2YkN0yeVn8MPI7XCwxa4ydEe0QJ1yOdjje67GmugmbZFfkP1Gj8e1FaplA==","_resolved":"/tmp/93d2b2b570211c83484898740d5088fc/theme-ui-core-0.15.5-develop.2.tgz","_from":"file:theme-ui-core-0.15.5-develop.2.tgz","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-gQyRqy8xafYeumzFG93Tj+Yqv4MQ2YkN0yeVn8MPI7XCwxa4ydEe0QJ1yOdjje67GmugmbZFfkP1Gj8e1FaplA==","shasum":"3aa3e8e7b0de09e137590d50031142231f9722f2","tarball":"http://registry-npm.ywwl.com/@theme-ui/core/download/@theme-ui/core-0.15.5-develop.2.tgz","fileCount":43,"unpackedSize":60637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDREEVp5ZyD6RO/8DsSA6c6p9N4x7tYobMPjjDRErn+nwIhAI93XEbiDiR0DE6MWm2kpOMmBjOD6SJc4dDOtDuECFX/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4sv0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1ARAAgHDUDWSsyNQvlp8NAFG1fJPGjeLTin6GlgJDFG6t2pVwYymA\r\nqlm7uWOFE3u3FTv1XI4hQYqKmSOg9jB1tIWi52iEHT8il86WQJwnu8vyPFgB\r\n2vbxlobhUfRazKfiB66AtLCKy6EPfspfsnbCzjmu8XD2DmvNkQfQfizTXyBY\r\nRI9zB8kCMShDUGud5j7vodHgy5Sy3qsCfBGgX4g+uCRWpFyYfIVBUmpQNwD1\r\nbnowF9CCpybVAoFFJY1Tlpw51iDidH0QSoSl2tWEAC3x4G02otgC6D0id6dl\r\nMNENELrKuKE0DDkosP4zNytRzCDdN1bQE+ExvlTWBOLZd0NUVrsx6kY2jbMs\r\ngggeL8vhOZc9O3ci5lLejlstZIwCqVFhw16v4sUwDXfNHhK5aUbKIcNY0sKb\r\nAmywJZSxB2nimZqsqj3y5GaENrRTjaejW/EA540Cqd1fF3/ZaOPcBYI09Zhc\r\nWTVXC0D9JgbSElLqNjlXVA5KCg75h643/cSVGiIqhDbPToWPQhfAe1sZzD4+\r\nl9T3qGMwKMg70XVMnhCI6W5QUrssCTaipYTQxZyXJ/LXHicWw2D1djm3B2WA\r\nF8TSNfQrl+cmzxkUgU0ykqLpyqhENdeuNznNadEaM4QXr7YqU8crPAkG5Cfm\r\nKbBR6zdEuw1CmhvMXNcucUVoQqvDsEdcB54=\r\n=3vlW\r\n-----END PGP SIGNATURE-----\r\n","size":13293,"noattachment":false,"key":"/@theme-ui/core/-/@theme-ui/core-0.15.5-develop.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.15.5-develop.2_1675807731793_0.2281504173187463"},"_hasShrinkwrap":false,"publish_time":1675807732010,"_cnpm_publish_time":1675807732010,"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"}}