{"name":"@theme-ui/color-modes","version":"0.17.2-develop.1","author":{"name":"Brent Jackson"},"license":"MIT","_id":"@theme-ui/color-modes@0.17.2-develop.1","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":"01d3446b6528c21750ac24c4a1310d439edfbe00","tarball":"http://registry-npm.ywwl.com/@theme-ui/color-modes/download/@theme-ui/color-modes-0.17.2-develop.1.tgz","fileCount":15,"integrity":"sha512-TJ4MUm+mTmdLYJnDjIjQrUzkhhxURrJ9x9zNbO+7wHE6qxozbLq4y68fCXhYoGiA3Wf9d4a8FRJW8DWjW1jyQg==","signatures":[{"sig":"MEQCIEWuJU6wMcUFbzyXeOvEYNBceJY2RiAcjeEtNDNFNMneAiAMPLsnpy7QAaevv0/lEfxlMVyLGYGLbxFKJu0L89/A7g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100045,"size":16245,"noattachment":false,"key":"/@theme-ui/color-modes/-/@theme-ui/color-modes-0.17.2-develop.1.tgz"},"main":"dist/theme-ui-color-modes.cjs.js","_from":"file:theme-ui-color-modes-0.17.2-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/0bb96d626e7fcc38f9e2eb690f96ab0a/theme-ui-color-modes-0.17.2-develop.1.tgz","_integrity":"sha512-TJ4MUm+mTmdLYJnDjIjQrUzkhhxURrJ9x9zNbO+7wHE6qxozbLq4y68fCXhYoGiA3Wf9d4a8FRJW8DWjW1jyQg==","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-develop.1","@theme-ui/core":"^0.17.2-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.2-develop.1"},"peerDependencies":{"react":">=18","@emotion/react":"^11.13.3"},"_npmOperationalInternal":{"tmp":"tmp/color-modes_0.17.2-develop.1_1739545843227_0.9291226499829079","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":1739545843399,"_cnpm_publish_time":1739545843399,"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"}}