{"name":"@theme-ui/color-modes","version":"0.17.2","author":{"name":"Brent Jackson"},"license":"MIT","_id":"@theme-ui/color-modes@0.17.2","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"}],"homepage":"https://github.com/system-ui/theme-ui#readme","bugs":{"url":"https://github.com/system-ui/theme-ui/issues"},"dist":{"shasum":"4382879cef4801afc30b6f6d3cf549ff60b60712","tarball":"http://registry-npm.ywwl.com/@theme-ui/color-modes/download/@theme-ui/color-modes-0.17.2.tgz","fileCount":15,"integrity":"sha512-VSycDWzmEPZwZyJGbA83yKPzjzWzE88FQPRKT3QMHsvoD5dUXlF5tFOg0gEPu2cMhKbSWLCFi/Rtj7ANJDSF/w==","signatures":[{"sig":"MEUCIQDItrWk3hY+MGdySfiEu7t2e2fotDnE10YXVO9KzP2+dAIgYElGRx6D5EvWOjjzL0F12H8osgpoOrq9jFo00KKk3R0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100005,"size":16233,"noattachment":false,"key":"/@theme-ui/color-modes/-/@theme-ui/color-modes-0.17.2.tgz"},"main":"dist/theme-ui-color-modes.cjs.js","_from":"file:theme-ui-color-modes-0.17.2.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/d99fdac1c8828b850a95532bf7bcc200/theme-ui-color-modes-0.17.2.tgz","_integrity":"sha512-VSycDWzmEPZwZyJGbA83yKPzjzWzE88FQPRKT3QMHsvoD5dUXlF5tFOg0gEPu2cMhKbSWLCFi/Rtj7ANJDSF/w==","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.2","dependencies":{"deepmerge":"^4.2.2","@theme-ui/css":"^0.17.2","@theme-ui/core":"^0.17.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.1.0","@types/react":"^18.2.12","@emotion/react":"^11.13.3","@theme-ui/test-utils":"^0.17.2"},"peerDependencies":{"react":">=18","@emotion/react":"^11.13.3"},"_npmOperationalInternal":{"tmp":"tmp/color-modes_0.17.2_1739546369506_0.681498247593421","host":"s3://npm-registry-packages-npm-production"},"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":1739546369687,"_cnpm_publish_time":1739546369687,"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"}}