{"name":"@theme-ui/color-modes","version":"0.17.2-develop.0","main":"dist/theme-ui-color-modes.cjs.js","module":"dist/theme-ui-color-modes.esm.js","types":"dist/theme-ui-color-modes.cjs.d.ts","source":"src/index.tsx","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/core":"^0.17.2-develop.0","@theme-ui/css":"^0.17.2-develop.0"},"peerDependencies":{"@emotion/react":"^11.13.3","react":">=18"},"devDependencies":{"@emotion/react":"^11.13.3","@types/react":"^18.2.12","react":"^18.1.0","@theme-ui/test-utils":"^0.17.2-develop.0"},"gitHead":"621199460fa3bdb0100748441e62517b7529b8c8","scripts":{},"_id":"@theme-ui/color-modes@0.17.2-develop.0","readmeFilename":"README.md","description":"Adds support for user-controlled color modes","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"homepage":"https://github.com/system-ui/theme-ui#readme","_integrity":"sha512-N2pJuXrSv01dYyN9hsOZ6UVUUS1J9FWVB2uOqDT6OSHpxMHBd6oSssZRzd5aea5eLil0b0IMo3Plwz7XuX5oWw==","_resolved":"/tmp/2847c18f0f45d2c2353259ef2249cbdc/theme-ui-color-modes-0.17.2-develop.0.tgz","_from":"file:theme-ui-color-modes-0.17.2-develop.0.tgz","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-N2pJuXrSv01dYyN9hsOZ6UVUUS1J9FWVB2uOqDT6OSHpxMHBd6oSssZRzd5aea5eLil0b0IMo3Plwz7XuX5oWw==","shasum":"30ed107d204614052229bba5a50443426f048fb7","tarball":"http://registry-npm.ywwl.com/@theme-ui/color-modes/download/@theme-ui/color-modes-0.17.2-develop.0.tgz","fileCount":15,"unpackedSize":100045,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7Mfk+JnXIWAFFbawQDGn99CnGYAEqPV3LkcV4HCcIBAiB6nG7Z55JxciWSgT2Zc2RoJmGZi4fcRYPhuMDN6i0qcA=="}],"size":16243,"noattachment":false,"key":"/@theme-ui/color-modes/-/@theme-ui/color-modes-0.17.2-develop.0.tgz"},"_npmUser":{"name":"hasparus","email":"hasparus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/color-modes_0.17.2-develop.0_1734529048367_0.3126531629467817"},"_hasShrinkwrap":false,"readme":"# @theme-ui/color-modes\n\nAdds support for user-controlled color modes\n\nhttps://theme-ui.com\n\n**Note:** _This package is included in the main `theme-ui` package, and\ngenerally should not be used on its own._\n\n```sh\nnpm i @theme-ui/color-modes\n```\n\n```jsx\nimport { ThemeProvider } from '@theme-ui/core'\nimport { ColorModeProvider } from '@theme-ui/color-modes'\nimport theme from './theme'\n\nexport default (props) => (\n  <ThemeProvider theme={theme}>\n    <ColorModeProvider>{props.children}</ColorModeProvider>\n  </ThemeProvider>\n)\n```\n\n## API\n\n- `useColorMode`\n- `ColorModeProvider`\n","publish_time":1734529048550,"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":1734529048550,"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"}}