{"name":"@theme-ui/css","version":"0.17.2","source":"src/index.ts","main":"dist/theme-ui-css.cjs.js","module":"dist/theme-ui-css.esm.js","browser":{"./dist/theme-ui-css.esm.js":"./dist/theme-ui-css.browser.esm.js"},"exports":{".":{"module":{"worker":"./dist/theme-ui-css.worker.esm.js","browser":"./dist/theme-ui-css.browser.esm.js","default":"./dist/theme-ui-css.esm.js"},"default":"./dist/theme-ui-css.cjs.js"},"./utils":{"module":{"worker":"./utils/dist/theme-ui-css-utils.worker.esm.js","browser":"./utils/dist/theme-ui-css-utils.browser.esm.js","default":"./utils/dist/theme-ui-css-utils.esm.js"},"default":"./utils/dist/theme-ui-css-utils.cjs.js"},"./package.json":"./package.json"},"sideEffects":false,"author":{"name":"Brent Jackson"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/system-ui/theme-ui.git"},"publishConfig":{"access":"public"},"dependencies":{"csstype":"^3.0.10"},"peerDependencies":{"@emotion/react":"^11.11.1"},"devDependencies":{"@emotion/react":"^11.11.1","@types/react":"^18.2.12","@theme-ui/test-utils":"^0.17.2"},"preconstruct":{"entrypoints":["index.ts","utils.ts"],"exports":{"envConditions":["browser","worker"]}},"gitHead":"621199460fa3bdb0100748441e62517b7529b8c8","scripts":{},"_id":"@theme-ui/css@0.17.2","types":"./dist/theme-ui-css.cjs.d.ts","description":"[![Minified Size on Bundlephobia](https://badgen.net/bundlephobia/minzip/@theme-ui/css)](https://bundlephobia.com/package/@theme-ui/css)","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"homepage":"https://github.com/system-ui/theme-ui#readme","_integrity":"sha512-sYeurC8WbZBLumt8qO7rM6ZDyvneMh6JojeZov3uwu4Ty2iis8rhqGGK8LD1SfwsWcV8pu3AivQ9xyvWZeaQrw==","_resolved":"/tmp/594ad939774b73f932e69c2ccbe53c55/theme-ui-css-0.17.2.tgz","_from":"file:theme-ui-css-0.17.2.tgz","_nodeVersion":"20.18.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-sYeurC8WbZBLumt8qO7rM6ZDyvneMh6JojeZov3uwu4Ty2iis8rhqGGK8LD1SfwsWcV8pu3AivQ9xyvWZeaQrw==","shasum":"535378dca5646722f8f8ce8216c4162359533492","tarball":"http://registry-npm.ywwl.com/@theme-ui/css/download/@theme-ui/css-0.17.2.tgz","fileCount":31,"unpackedSize":178892,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAQSBDm4ZeabUs07ANKDwmFHObxGKLA26nWrUSpTXLwmAiEApq69s7eqGm02OpfIg9uL5Ub7ZbcqIHBjgUbOKeY9z6g="}],"size":28390,"noattachment":false,"key":"/@theme-ui/css/-/@theme-ui/css-0.17.2.tgz"},"_npmUser":{"name":"hasparus","email":"hasparus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/css_0.17.2_1739546376365_0.13368943231136998"},"_hasShrinkwrap":false,"readme":"# @theme-ui/css\n\n[![Minified Size on Bundlephobia](https://badgen.net/bundlephobia/minzip/@theme-ui/css)](https://bundlephobia.com/package/@theme-ui/css)\n\n`@theme-ui/css` contains the framework-agnostic core logic of Theme UI. It lets\nyou write style objects with responsive, theme-aware ergonomic shortcuts.\n\n```sh\nnpm i @theme-ui/css @emotion/react\n```\n\n## Usage\n\n```js\nimport { css as transformStyleObject } from '@theme-ui/css'\nimport { css as createClassName } from '@emotion/css'\n\nconst root = document.getElementById('root')\n\n/** @type {import(\"@theme-ui/css\").Theme} */\nconst theme = {\n  colors: {\n    text: '#222',\n  },\n  fonts: {\n    mono: 'monospace',\n  },\n  space: {\n    sm: '1rem',\n    md: '2rem',\n  },\n}\n\nconst styles = transformStyleObject({\n  padding: ['sm', 'md'],\n  border: ({ colors }) => `2px solid ${colors.text}`,\n  h1: {\n    fontFamily: 'mono',\n    color: 'text',\n  },\n})(theme)\n\nroot.classList.add(createClassName(styles))\nroot.innerHTML = `\n<h1>You can use <code>@theme-ui/css</code> in Vanilla JS!</h1>\n`\n```\n\n[See the snippet above on CodeSandbox](https://codesandbox.io/s/theme-ui-css-framework-agnostic-2c0ue?file=/src/index.js)\n","publish_time":1739546376542,"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"}],"_cnpm_publish_time":1739546376542,"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"}}