{"name":"@theme-ui/color-modes","version":"0.17.4","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.4","@theme-ui/css":"^0.17.4"},"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.4"},"gitHead":"621199460fa3bdb0100748441e62517b7529b8c8","scripts":{},"_id":"@theme-ui/color-modes@0.17.4","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-YToAiH4eHSUl/tCeZM1la9994NP70aKicAVC9RzmkV6k95gz1ka9cbziM0qVPGv1+WNcEy8EA2taueaxXjyiUA==","_resolved":"/private/var/folders/78/vkx7my5x2zj3jk033zslz_c00000gp/T/e731c36333d727e76c13008076cfe094/theme-ui-color-modes-0.17.4.tgz","_from":"file:theme-ui-color-modes-0.17.4.tgz","_nodeVersion":"24.1.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-YToAiH4eHSUl/tCeZM1la9994NP70aKicAVC9RzmkV6k95gz1ka9cbziM0qVPGv1+WNcEy8EA2taueaxXjyiUA==","shasum":"a530ebbfe45185dbbf36328a33951f84ed1e231c","tarball":"http://registry-npm.ywwl.com/@theme-ui/color-modes/download/@theme-ui/color-modes-0.17.4.tgz","fileCount":15,"unpackedSize":100005,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDMAL2EJeaTNUxkoXWHbWpwHLjLZH78H1Dm/fdOlfRRVAIgD/xfaZENedsAiKV4KDqd5k9SZshSX6Lz4SWUkGdJ3IA="}],"size":16237,"noattachment":false,"key":"/@theme-ui/color-modes/-/@theme-ui/color-modes-0.17.4.tgz"},"_npmUser":{"name":"hasparus","email":"hasparus@gmail.com"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/color-modes_0.17.4_1767386750015_0.11415751317935263"},"_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":1767386750172,"_cnpm_publish_time":1767386750172,"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"}}