{"name":"@theme-ui/color-modes","version":"0.17.0-develop.1","author":{"name":"Brent Jackson"},"license":"MIT","_id":"@theme-ui/color-modes@0.17.0-develop.1","homepage":"https://github.com/system-ui/theme-ui#readme","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"dist":{"shasum":"926d7206585b942e567affe47d2c8c9ac7775cda","tarball":"http://registry-npm.ywwl.com/@theme-ui/color-modes/download/@theme-ui/color-modes-0.17.0-develop.1.tgz","fileCount":15,"integrity":"sha512-sQanHCbn59rPRf87Wy9+w+2ndJc7ZCsaYaNLGmb7RI5ZptjHzbCd0P22CrnzZWBaoXKkSvzlfKviYbif2w0LBg==","signatures":[{"sig":"MEQCIDBkjxM8fPG5qxerf7/NoqIjQagE1cYS53geRxiGgifSAiAsCoL3QKMiB/MY212jKLuTYO8Xu4sZ6qST96DRiIy72A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100045,"size":16245,"noattachment":false,"key":"/@theme-ui/color-modes/-/@theme-ui/color-modes-0.17.0-develop.1.tgz"},"main":"dist/theme-ui-color-modes.cjs.js","_from":"file:theme-ui-color-modes-0.17.0-develop.1.tgz","types":"dist/theme-ui-color-modes.cjs.d.ts","module":"dist/theme-ui-color-modes.esm.js","source":"src/index.tsx","gitHead":"621199460fa3bdb0100748441e62517b7529b8c8","scripts":{},"_npmUser":{"name":"hasparus","email":"hasparus@gmail.com"},"_resolved":"/tmp/66c9a3a6b66c6926ee2f5d1f76b45375/theme-ui-color-modes-0.17.0-develop.1.tgz","_integrity":"sha512-sQanHCbn59rPRf87Wy9+w+2ndJc7ZCsaYaNLGmb7RI5ZptjHzbCd0P22CrnzZWBaoXKkSvzlfKviYbif2w0LBg==","repository":{"url":"git+https://github.com/system-ui/theme-ui.git","type":"git"},"_npmVersion":"10.8.2","description":"Adds support for user-controlled color modes","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"deepmerge":"^4.2.2","@theme-ui/css":"^0.17.0-develop.1","@theme-ui/core":"^0.17.0-develop.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"react":"^18.1.0","@types/react":"^18.2.12","@emotion/react":"^11.13.3","@theme-ui/test-utils":"^0.17.0-develop.1"},"peerDependencies":{"react":">=18","@emotion/react":"^11.13.3"},"_npmOperationalInternal":{"tmp":"tmp/color-modes_0.17.0-develop.1_1729271196956_0.7012958523869166","host":"s3://npm-registry-packages"},"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":1729271197131,"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":1729271197131,"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"}}