{"name":"@theme-ui/css","version":"0.17.2-develop.0","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-develop.0"},"preconstruct":{"entrypoints":["index.ts","utils.ts"],"exports":{"envConditions":["browser","worker"]}},"gitHead":"621199460fa3bdb0100748441e62517b7529b8c8","scripts":{},"_id":"@theme-ui/css@0.17.2-develop.0","readmeFilename":"README.md","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-JZfnZAWOZvqOfEKUoPdD6lDExUbUgRqxHsZLHui/6PMs0rDIGY5TseboDpWJmqpqn5F93bncy7enHwV4UBsC/Q==","_resolved":"/tmp/3abf98e9cf9f39dfa3c730885e3e0081/theme-ui-css-0.17.2-develop.0.tgz","_from":"file:theme-ui-css-0.17.2-develop.0.tgz","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-JZfnZAWOZvqOfEKUoPdD6lDExUbUgRqxHsZLHui/6PMs0rDIGY5TseboDpWJmqpqn5F93bncy7enHwV4UBsC/Q==","shasum":"e7bec69bfe7d002120880de45bb56aa828441604","tarball":"http://registry-npm.ywwl.com/@theme-ui/css/download/@theme-ui/css-0.17.2-develop.0.tgz","fileCount":31,"unpackedSize":178912,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDnUJFdCzuU/+sFFT+Y+Dk9imXAyaKD8LVcQoG5RkEBAAiAWzb9YwbseescDO8UdxjWUuUW8ikQoOLHXg43hnYINEA=="}],"size":28422,"noattachment":false,"key":"/@theme-ui/css/-/@theme-ui/css-0.17.2-develop.0.tgz"},"_npmUser":{"name":"hasparus","email":"hasparus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/css_0.17.2-develop.0_1734529055111_0.5653811121567867"},"_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":1734529055291,"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":1734529055291,"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"}}