{"_id":"@dazl/color-scheme","_rev":"47-5e79fd46e8b2553407593dadd51d2036","name":"@dazl/color-scheme","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@dazl/color-scheme","version":"1.0.0","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.0.0","maintainers":[{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"cijoe@wix.com"}],"dist":{"shasum":"bcf92a0a2bc51609ec29925ee0a0edf348003480","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.0.0.tgz","fileCount":15,"integrity":"sha512-SmtHz3xSHTpXHALMO8f5GEC7Ms/Cc5O0Sz5SD8LHgGHnzw7TELUS1FNlahkEqtJN6t8hISH4ePbhV30XstxcCA==","signatures":[{"sig":"MEQCIHq5HDBNIBQ9zf+Ijay5/TacX6Sb2nIIilueL+nVsYFEAiBh3BDkYv7aXsaZQ0nAxdE42OCgHjTQvSF3do6Rjc857A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15072},"type":"module","exports":{"./react":{"import":"./dist/react.js"},"./client":{"import":"./dist/client.js"}},"gitHead":"27b3ba0dc791a29e68b1d0e96b75ab31a72571b9","scripts":{"dev":"tsc --watch","test":"playwright test --config=playwright.config.ts","build":"tsc","clean":"rimraf dist","pretest":"npm run clean && npm run build"},"_npmUser":{"name":"cijoe","actor":{"name":"cijoe","type":"user","email":"cijoe@wix.com"},"email":"cijoe@wix.com"},"_npmVersion":"11.4.2","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.0.0_1751453321957_0.5468662695545625","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dazl/color-scheme","version":"1.0.1","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.0.1","maintainers":[{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"cijoe@wix.com"}],"dist":{"shasum":"3e891abed7e4838d9b8dc03ab45fe0a7405a1a4d","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.0.1.tgz","fileCount":18,"integrity":"sha512-1JyfDikY8Pr8e9YTUH9mLmxq3EXFy5reUX7AhAge0d8yDIPcSuCuq3yH+NXDwaHOE357/9+EUApQpca+PCV+fQ==","signatures":[{"sig":"MEUCIA/mwD+K0SSfmTd6XGIVqyXRJyyJEFGq+mJmPiiN7Ur6AiEA71ShzyQMywPjS2GD1fYYrW181OMdNUamIiNiy4zibh0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19788},"type":"module","exports":{"./react":{"import":"./dist/react.js"},"./client":{"import":"./dist/client.js"}},"gitHead":"e18246c3f1501890e3f386d6b5d247e864f1cb31","scripts":{"dev":"tsc --watch","test":"playwright test --config=playwright.config.ts","build":"tsc","clean":"rimraf dist","pretest":"npm run clean && npm run build"},"_npmUser":{"name":"cijoe","actor":{"name":"cijoe","type":"user","email":"cijoe@wix.com"},"email":"cijoe@wix.com"},"_npmVersion":"11.4.2","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.0.1_1751796094434_0.12684384191333953","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@dazl/color-scheme","version":"1.0.2","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.0.2","maintainers":[{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"cijoe@wix.com"}],"homepage":"https://github.com/wixplosives/dazl-libs#readme","bugs":{"url":"https://github.com/wixplosives/dazl-libs/issues"},"dist":{"shasum":"16d5dfc0c238379c8a03d9eb5cd28858bae8f1df","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.0.2.tgz","fileCount":18,"integrity":"sha512-pQ2vacwNv3G3kwlMIjZjHrqw1+qZCT4XGVLWmM1Em5Ju5nHqCpWyPyQljMR+61FHJEWBDlFPqnRzVNl3By9DpA==","signatures":[{"sig":"MEUCIB8BPOC/ZaRahV4v51EqQn6H32t8vsroajYr7w8FsfiDAiEA/HsJckNy6FBgnBSg2HoXH02IoCdmk0fHkBNtiUigwvU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19934},"type":"module","exports":{"./react":{"import":"./dist/react.js"},"./client":{"import":"./dist/client.js"}},"gitHead":"cdf66f6a9d824a71e0a00904598100b83f3f9dd7","scripts":{"dev":"tsc --watch","test":"playwright test --config=playwright.config.ts","build":"tsc","clean":"rimraf dist","pretest":"npm run clean && npm run build"},"_npmUser":{"name":"cijoe","actor":{"name":"cijoe","type":"user","email":"cijoe@wix.com"},"email":"cijoe@wix.com"},"repository":{"url":"git+https://github.com/wixplosives/dazl-libs.git","type":"git","directory":"packages/color-scheme"},"_npmVersion":"11.4.2","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.0.2_1751796529310_0.5045641977856912","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@dazl/color-scheme","version":"1.1.0","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.1.0","maintainers":[{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"cijoe@wix.com"}],"homepage":"https://github.com/wixplosives/dazl-libs#readme","bugs":{"url":"https://github.com/wixplosives/dazl-libs/issues"},"dist":{"shasum":"30615dd2c2d06467418c9f57c63ccd330b5330ca","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.1.0.tgz","fileCount":18,"integrity":"sha512-a35zFtGyOUVlxW/vNu8z4XgyCdSTW0+AE9BLudvzI97Ww7MsD5L6DWx7EOvina7IqJ7+s61Ld1XDJ3zSJBO2Ow==","signatures":[{"sig":"MEQCIGaNVb8+Rne4lCFQKaT8PbvIvWQiBGAes7xYpS0Ygx4yAiAHv66sZ721xrpBddSUKNjBXWIiR1sFTvLEm8zLS+0aCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21607},"type":"module","exports":{"./react":{"import":"./dist/react.js"},"./client":{"import":"./dist/client.js"}},"gitHead":"2e582568e375ba0a88cfb605d45c50d622602c52","scripts":{"dev":"tsc --watch","test":"playwright test --config=playwright.config.ts","build":"tsc","clean":"rimraf dist","pretest":"npm run clean && npm run build"},"_npmUser":{"name":"cijoe","actor":{"name":"cijoe","type":"user","email":"cijoe@wix.com"},"email":"cijoe@wix.com"},"repository":{"url":"git+https://github.com/wixplosives/dazl-libs.git","type":"git","directory":"packages/color-scheme"},"_npmVersion":"11.4.2","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.1.0_1751896940730_0.6878429328059803","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@dazl/color-scheme","version":"1.1.1","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.1.1","maintainers":[{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"cijoe@wix.com"}],"homepage":"https://github.com/wixplosives/dazl-libs#readme","bugs":{"url":"https://github.com/wixplosives/dazl-libs/issues"},"dist":{"shasum":"e3d16b6829752137a30af9c6e8b7ba7936b965ba","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.1.1.tgz","fileCount":18,"integrity":"sha512-zUTDPw4mbDzFcriAT1qUTGrXK0+s61syfzMelM4rJ3I3Dx1w+UDnsEN0v7dZXFBtlr2FyJ2nOwOEvOfwUdmsOQ==","signatures":[{"sig":"MEYCIQDvm4cLfRAd5AGYgjUMa2neeclBHaW5gK8CBq/A95UVaQIhAO2ObM1fqREB54LCSCYHhEUCXsTlKjfJjcWhqNkdOPQS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21464},"type":"module","exports":{"./react":"./dist/react.js","./client":"./dist/client.js","./package.json":"./package.json"},"gitHead":"6aa35ec55fb8d21160b6a6e976c785acec31b0f3","scripts":{"test":"playwright test --config=playwright.config.ts"},"_npmUser":{"name":"cijoe","email":"cijoe@wix.com"},"repository":{"url":"git+https://github.com/wixplosives/dazl-libs.git","type":"git","directory":"packages/color-scheme"},"_npmVersion":"11.4.2","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.1.1_1752410279389_0.9971186199943407","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@dazl/color-scheme","version":"1.1.2","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.1.2","maintainers":[{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"cijoe@wix.com"}],"homepage":"https://github.com/wixplosives/dazl-libs#readme","bugs":{"url":"https://github.com/wixplosives/dazl-libs/issues"},"dist":{"shasum":"03d0cd86fee38d722ba80083a9d0915f025fe9d0","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.1.2.tgz","fileCount":18,"integrity":"sha512-ID/kwWayi7C4ECaLWeudtPth9ztk5/la23IRoCNyBwAM3/5NVsCBYiyPpsA0uF1vv79rkABZ6eSdKdmy3uYjNQ==","signatures":[{"sig":"MEYCIQDT+GXWyXMhZe8F3iUOMkytrALTwFmNb47QXEVkWkgglQIhAMYYh/z/QClPCBPb9Sg/DDGXvnOUZEPOkPX14q5UNftu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21498},"type":"module","exports":{"./react":"./dist/react.js","./types":"./dist/types.js","./client":"./dist/client.js","./package.json":"./package.json"},"gitHead":"4e9143da4ebf200aa53bf00908fc965186e53c66","scripts":{"test":"playwright test --config=playwright.config.ts"},"_npmUser":{"name":"cijoe","email":"cijoe@wix.com"},"repository":{"url":"git+https://github.com/wixplosives/dazl-libs.git","type":"git","directory":"packages/color-scheme"},"_npmVersion":"11.5.1","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.6.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.1.2_1755260990129_0.0017893680757643526","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@dazl/color-scheme","version":"1.2.0","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.2.0","maintainers":[{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"infra@dazl.dev"}],"homepage":"https://github.com/dazl-dev/dazl-libs#readme","bugs":{"url":"https://github.com/dazl-dev/dazl-libs/issues"},"dist":{"shasum":"afde792ccab88e53d0bd0909ace7c74775014b17","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.2.0.tgz","fileCount":18,"integrity":"sha512-rGCyy1tCSHJrF6D7+h5/doAihOvcbIuAOYUgkX+OgQK6Pz9+qVJcqnwoYjAaR1+4E4eFuvRUowBF4kdXG0CuYg==","signatures":[{"sig":"MEQCIBhpLMKcyDbYbHx9dYPcVL6NF1X1TSXhQNUTz8HxerGyAiA+DDH3rOobB9NNOgdW1GkIR0RqGF+g/6OI0jLlcRg1fg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21495},"type":"module","exports":{"./react":"./dist/react.js","./types":"./dist/types.js","./client":"./dist/client.js","./package.json":"./package.json"},"gitHead":"232047709adba10858841afc635514f2df323eab","scripts":{"test":"playwright test --config=playwright.config.ts"},"_npmUser":{"name":"cijoe","email":"infra@dazl.dev"},"repository":{"url":"git+https://github.com/dazl-dev/dazl-libs.git","type":"git","directory":"packages/color-scheme"},"_npmVersion":"11.5.1","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.6.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.2.0_1756050483685_0.9932644210040018","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@dazl/color-scheme","version":"1.2.1","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.2.1","maintainers":[{"name":"yifat","email":"yifat@dazl.dev"},{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"infra@dazl.dev"},{"name":"pistolpete_","email":"stelaviv@gmail.com"},{"name":"avi.vahl","email":"avi@dazl.dev"},{"name":"qballer","email":"qballer@gmail.com"},{"name":"yurimorkovnik","email":"yuriymork62@gmail.com"},{"name":"ariki","email":"Arikishon1@gmail.com"},{"name":"serhiiz","email":"serhii@dazl.dev"},{"name":"plisovyi","email":"pavlol@wix.com"},{"name":"oleksandraab","email":"sasha@dazl.dev"},{"name":"oleh.rak","email":"legrak@gmail.com"},{"name":"ekaterinaza","email":"kate@dazl.dev"},{"name":"yuriin","email":"yuriin@dazl.dev"},{"name":"shakederin","email":"shaked@dazl.dev"},{"name":"dorza","email":"dor@dazl.dev"},{"name":"iuriikowix","email":"iurii.kozhan@gmail.com"},{"name":"alissavrk","email":"alissa.vrk@gmail.com"},{"name":"0xrezaa","email":"reza@dazl.dev"},{"name":"idango10","email":"idan.goshen@gmail.com"},{"name":"yurii-v","email":"yuriiv@dazl.dev"},{"name":"arnonkehat","email":"arnon.k@gmail.com"},{"name":"oleksiiletushev","email":"oleksiy.letushev@gmail.com"},{"name":"danieleww","email":"daniel@dazl.dev"},{"name":"alisey","email":"alisey.login@gmail.com"},{"name":"ranberko91","email":"ran@dazl.dev"},{"name":"vladyslavgoloshchapov","email":"vladg@dazl.dev"},{"name":"tomrav","email":"tom@dazl.dev"},{"name":"vladba-wix","email":"vladb@dazl.dev"},{"name":"noammu","email":"noamm7466@gmail.com"},{"name":"nadavov","email":"nadav@dazl.dev"}],"homepage":"https://github.com/dazl-dev/dazl-libs#readme","bugs":{"url":"https://github.com/dazl-dev/dazl-libs/issues"},"dist":{"shasum":"904304dd7671406bd2ab221f7be3750fa7c144d1","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.2.1.tgz","fileCount":15,"integrity":"sha512-56wbP+lcDUIEnhxIS7cWPXdePXjuzsa6NIUKrsp2cLmu87dPP3VYbrlU3FGg8iT0ezwArrB+gJalwyD8U3qN5Q==","signatures":[{"sig":"MEYCIQCzAV2GyT/XxBBJnLvy0ddGsek+WkQX97hecuMkhm/a1wIhAOiQi4DVvOBEukNSyknu1vuxxaHstU4FXuYoTHNIR0Fc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17668},"type":"module","exports":{"./react":"./dist/react.js","./types":"./dist/types.js","./client":"./dist/client.js","./package.json":"./package.json"},"gitHead":"973538da7ef6bfaa57dc9ffd644eb94d75b61c7a","scripts":{"test":"playwright test --config=playwright.config.ts"},"_npmUser":{"name":"cijoe","email":"infra@dazl.dev"},"repository":{"url":"git+https://github.com/dazl-dev/dazl-libs.git","type":"git","directory":"packages/color-scheme"},"_npmVersion":"11.6.1","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.2.1_1762087579805_0.007806150778524534","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@dazl/color-scheme","version":"1.3.0","keywords":["color","scheme","utilities"],"author":{"name":"Dazl"},"license":"MIT","_id":"@dazl/color-scheme@1.3.0","maintainers":[{"name":"yifat","email":"yifat@dazl.dev"},{"name":"alonagur","email":"alona@dazl.dev"},{"name":"evgolsh","email":"evgolsh@gmail.com"},{"name":"nesteruk.yurii","email":"nesterook.uv@gmail.com"},{"name":"idoros","email":"idoros@gmail.com"},{"name":"baraki","email":"barak.music.pro@gmail.com"},{"name":"cijoe","email":"infra@dazl.dev"},{"name":"pistolpete_","email":"stelaviv@gmail.com"},{"name":"avi.vahl","email":"avi@dazl.dev"},{"name":"yurimorkovnik","email":"yuriymork62@gmail.com"},{"name":"ariki","email":"Arikishon1@gmail.com"},{"name":"serhiiz","email":"serhii@dazl.dev"},{"name":"oleh.rak","email":"legrak@gmail.com"},{"name":"shakederin","email":"shaked@dazl.dev"},{"name":"dorza","email":"dor@dazl.dev"},{"name":"alissavrk","email":"alissa.vrk@gmail.com"},{"name":"idango10","email":"idan.goshen@gmail.com"},{"name":"yurii-v","email":"yuriiv@dazl.dev"},{"name":"arnonkehat","email":"arnon.k@gmail.com"},{"name":"oleksiiletushev","email":"oleksiy.letushev@gmail.com"},{"name":"alisey","email":"alisey.login@gmail.com"},{"name":"ranberko91","email":"ran@dazl.dev"},{"name":"vladyslavgoloshchapov","email":"vladg@dazl.dev"},{"name":"tomrav","email":"tom@dazl.dev"},{"name":"noammu","email":"noamm7466@gmail.com"},{"name":"nadavov","email":"nadav@dazl.dev"}],"homepage":"https://github.com/dazl-dev/dazl-libs#readme","bugs":{"url":"https://github.com/dazl-dev/dazl-libs/issues"},"dist":{"shasum":"fb70545a2b9e2da3df7396435d3f6051754b22d0","tarball":"https://registry.npmjs.org/@dazl/color-scheme/-/color-scheme-1.3.0.tgz","fileCount":15,"integrity":"sha512-E1eJ3Q3WHXDj69dAp9h12V5MiOeIyu9up3PhZ2tDq0elNI0kHroYwWpL8NRwbmsrgNB7A2Zpjcikif9mwsHsNg==","signatures":[{"sig":"MEYCIQD5J+A7vYVI7BPWr+WNlN6U8XyonS1fj0CZcf6HDkkLIgIhAPoLvbJz53vbC0uwY9PW1dWjVSUz2+Lg/mBxWQMKaUwb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17668},"type":"module","exports":{"./react":"./dist/react.js","./types":"./dist/types.js","./client":"./dist/client.js","./package.json":"./package.json"},"gitHead":"f534e93eef75fb514d3901fa55c64e51eca18c48","scripts":{"test":"playwright test --config=playwright.config.ts"},"_npmUser":{"name":"cijoe","email":"infra@dazl.dev"},"repository":{"url":"git+https://github.com/dazl-dev/dazl-libs.git","type":"git","directory":"packages/color-scheme"},"_npmVersion":"11.13.0","description":"Color scheme utilities and tools","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/color-scheme_1.3.0_1781606390276_0.9263782734661512","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-07-02T10:48:41.843Z","modified":"2026-08-07T07:10:25.180Z","1.0.0":"2025-07-02T10:48:42.131Z","1.0.1":"2025-07-06T10:01:34.616Z","1.0.2":"2025-07-06T10:08:49.504Z","1.1.0":"2025-07-07T14:02:20.930Z","1.1.1":"2025-07-13T12:37:59.566Z","1.1.2":"2025-08-15T12:29:50.308Z","1.2.0":"2025-08-24T15:48:03.916Z","1.2.1":"2025-11-02T12:46:19.987Z","1.3.0":"2026-06-16T10:39:50.431Z"},"bugs":{"url":"https://github.com/dazl-dev/dazl-libs/issues"},"author":{"name":"Dazl"},"license":"MIT","homepage":"https://github.com/dazl-dev/dazl-libs#readme","keywords":["color","scheme","utilities"],"repository":{"url":"git+https://github.com/dazl-dev/dazl-libs.git","type":"git","directory":"packages/color-scheme"},"description":"Color scheme utilities and tools","maintainers":[{"email":"evgeny@dazl.dev","name":"evgenyp"},{"email":"idoros@gmail.com","name":"idoros"},{"email":"barak.music.pro@gmail.com","name":"baraki"},{"email":"infra@dazl.dev","name":"cijoe"},{"email":"stelaviv@gmail.com","name":"pistolpete_"},{"email":"tom@dazl.dev","name":"tomrav"},{"email":"nadav@dazl.dev","name":"nadavov"}],"readme":"# @dazl/color-scheme\n\nA simple color scheme management library for web applications with support for light/dark themes and automatic system preference detection.\n\n## Features\n\n- 🌓 **Light/Dark/System modes** - Support for light, dark, and automatic system preference detection\n- 📱 **System preference detection** - Automatically responds to OS-level theme changes\n- ⚛️ **React integration** - Ready-to-use React hook for seamless integration\n- 💾 **Persistent storage** - Remembers user preferences using localStorage\n- 🎨 **CSS class management** - Automatically applies theme classes to document root\n- 🏷️ **Automatic style injection** - Injects the `color-scheme` CSS property on the document root for native browser theming\n- 📦 **Zero dependencies** - Lightweight with no external dependencies\n- 🔧 **TypeScript support** - Full TypeScript definitions included\n\n## Installation\n\n```bash\nnpm install @dazl/color-scheme\n```\n\n## Usage\n\n### Client-side Setup\n\nImport the client module to initialize color scheme management:\n\n> **Note:** This import should only be used in client-side code and must run before the `<body>` is rendered. For best results, include it in an inline script.\n\n```typescript\nimport '@dazl/color-scheme/client';\n\n// The color scheme API is now available globally\nconst currentScheme = window.colorSchemeApi.current;\nconsole.log(currentScheme); // { config: 'system', resolved: 'dark' }\n\n// Change the color scheme\nwindow.colorSchemeApi.config = 'light';\n\n// Subscribe to changes\nconst unsubscribe = window.colorSchemeApi.subscribe(({ config, resolved }) => {\n  console.log(`Color scheme changed: ${config} (resolved: ${resolved})`);\n});\n```\n\n#### Color-scheme API\n\n- **`config`** (`light|dark|system`) - Get or set the current color scheme configuration\n- **`currentState`** (`{ config: light|dark|system, resolved: light|dark }`) - Get the current state including both config and resolved values\n- **`resolvedSystem`** (`light|dark`) - Get the resolved theme based on system preferences\n- **`subscribe`** (`(handler: (currentState) => void) => () => void`) - Subscribe to color scheme changes and return an unsubscribe function\n- **`getRootCssClass`** (`(resolved?: light|dark) => string`) - CSS class applied to the document root based on the resolved theme or passed value\n\n#### Override root CSS class\n\nOverride the default CSS classes applied to the document root by specifying `data-dark-class` and `data-light-class` attributes in the client script tag:\n\n```html\n<script src=\"@dazl/color-scheme/client\" data-dark-class=\"dark-theme\" data-light-class=\"light-theme\"></script>\n```\n\n### React Integration\n\nUse the provided React hook for easy integration:\n\n```tsx\nimport { useColorScheme } from '@dazl/color-scheme/react';\n\nfunction ThemeToggle() {\n  const { configScheme, resolvedScheme, setColorScheme, isLight, isDark } = useColorScheme();\n\n  return (\n    <div>\n      <p>Current config: {configScheme}</p>\n      <p>Resolved theme: {resolvedScheme}</p>\n      <p>Is light theme: {isLight}</p>\n      <p>Is dark theme: {isDark}</p>\n\n      <button onClick={() => setColorScheme('light')}>Light Theme</button>\n      <button onClick={() => setColorScheme('dark')}>Dark Theme</button>\n      <button onClick={() => setColorScheme('system')}>System Theme</button>\n    </div>\n  );\n}\n```\n\n#### Hook API\n\n- **`resolvedScheme`** (`light|dark`) - Resolved theme (light/dark)\n- **`configScheme`** (`light|dark|system`) - Current configuration (light/dark/system)\n- **`setColorScheme`** (`(config: light|dark|system) => void`) - Function to change the color scheme\n- **`isLight`** (`boolean`) - Whether the current resolved theme is light\n- **`isDark`** (`boolean`) - Whether the current resolved theme is dark\n- **`rootCssClass`** (`string`) - CSS class applied to the document root based on the resolved theme\n\n### CSS Styling\n\nThe library automatically applies CSS classes to the document root. Style your application accordingly:\n\n```css\n/* Dark theme styles */\n:root.dark-theme {\n  --bg-color: #000000;\n  --text-color: #ffffff;\n}\n\n/* Light theme styles (explicit) */\n:root.light-theme {\n  --bg-color: #ffffff;\n  --text-color: #000000;\n}\n```\n\n## License\n\nMIT © Dazl\n","readmeFilename":"README.md"}