{"name":"@theme-ui/color-modes","version":"0.17.1-develop.0","author":{"name":"Brent Jackson"},"license":"MIT","_id":"@theme-ui/color-modes@0.17.1-develop.0","homepage":"https://github.com/system-ui/theme-ui#readme","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"dist":{"shasum":"163a9e91b8d348809fb90f9c0949215dab509294","tarball":"http://registry-npm.ywwl.com/@theme-ui/color-modes/download/@theme-ui/color-modes-0.17.1-develop.0.tgz","fileCount":15,"integrity":"sha512-jWTubcx3H1BUIR39u+BGzWpDHqitKbQ7WlEinOscbNDeM82Z0Z4+BEhxauqso8boAzMcP0nzeQaXRtmagB4gdQ==","signatures":[{"sig":"MEYCIQCh/OyfMMB4kEvKwOk0nH2xaT09PLdgc+w1HmbkZQgFYgIhAOv0/aqlXz0x+02CuPHXXxw1HwxJ25KyDR/RPl7tgo43","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100045,"size":16243,"noattachment":false,"key":"/@theme-ui/color-modes/-/@theme-ui/color-modes-0.17.1-develop.0.tgz"},"main":"dist/theme-ui-color-modes.cjs.js","_from":"file:theme-ui-color-modes-0.17.1-develop.0.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/2092ab8708541807c13d66fdcbc8c3d6/theme-ui-color-modes-0.17.1-develop.0.tgz","_integrity":"sha512-jWTubcx3H1BUIR39u+BGzWpDHqitKbQ7WlEinOscbNDeM82Z0Z4+BEhxauqso8boAzMcP0nzeQaXRtmagB4gdQ==","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.1-develop.0","@theme-ui/core":"^0.17.1-develop.0"},"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.1-develop.0"},"peerDependencies":{"react":">=18","@emotion/react":"^11.13.3"},"_npmOperationalInternal":{"tmp":"tmp/color-modes_0.17.1-develop.0_1729767470603_0.562849141746214","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":1729767470796,"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":1729767470796,"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"}}