{"_id":"@apform-ui/themes","_rev":"2-11cb51e804d81e1a02dc6be0cfff7869","name":"@apform-ui/themes","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@apform-ui/themes","version":"1.0.0","keywords":["themes","dark-mode","schema-ui"],"author":{"name":"yangdongnan"},"license":"MIT","_id":"@apform-ui/themes@1.0.0","maintainers":[{"name":"apform-ui","email":"a101082085@gmail.com"}],"homepage":"https://github.com/schema-platform/schema-ui#readme","bugs":{"url":"https://github.com/schema-platform/schema-ui/issues"},"dist":{"shasum":"ff82d97ee777c6c7155785bbe8024c84ce02a97a","tarball":"https://registry.npmjs.org/@apform-ui/themes/-/themes-1.0.0.tgz","fileCount":5,"integrity":"sha512-j2il67dLeEkrv3zVBMHt8jHBMGOS5UK6p2dCLttgPq7XHd4LP2p0dVmaIZNIqStwfhFdT3ZAFIh79SWDx5Pdqg==","signatures":[{"sig":"MEUCID8ket4e09efZSFZ117eq4LcE5mE6aMwUWONGpD07bJdAiEAuL/EM7mLDKugZB4jDJcXslstL71Ed3ZLI1hwT8/Mp0w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6357},"type":"module","exports":{".":"./index.ts","./dark":"./dark.css","./light":"./light.css","./dark.css":"./dark.css","./light.css":"./light.css"},"gitHead":"6009fbf50cbe51a269f3de50059b079b045c6cc3","scripts":{"clean":"echo 'css-only package, no build needed'"},"_npmUser":{"name":"apform-ui","email":"a101082085@gmail.com"},"repository":{"url":"git+https://github.com/schema-platform/schema-ui.git","type":"git","directory":"packages/themes"},"_npmVersion":"11.12.1","description":"@schema-ui 主题包 — 暗色/自定义主题","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/themes_1.0.0_1787848196995_0.7714949924289132","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-08-27T16:29:56.620Z","modified":"2026-09-05T16:36:05.225Z","1.0.0":"2026-08-27T16:29:57.158Z"},"bugs":{"url":"https://github.com/schema-platform/schema-ui/issues"},"author":{"name":"yangdongnan"},"license":"MIT","homepage":"https://github.com/schema-platform/schema-ui#readme","keywords":["themes","dark-mode","schema-ui"],"repository":{"url":"git+https://github.com/schema-platform/schema-ui.git","type":"git","directory":"packages/themes"},"description":"@schema-ui 主题包 — 暗色/自定义主题","maintainers":[{"email":"a101082085@gmail.com","name":"a101082085"}],"readme":"# @apform-ui/themes\n\n@schema-ui 主题包，提供预置主题和切换工具。\n\n## 安装\n\n```bash\nnpm install @apform-ui/themes\n```\n\n## 使用\n\n### 引入主题 CSS\n\n```ts\n// 暗色主题\nimport '@apform-ui/themes/dark'\n\n// 明亮主题（重置）\nimport '@apform-ui/themes/light'\n```\n\n### 运行时切换\n\n```ts\nimport { setTheme, getTheme, initTheme } from '@apform-ui/themes'\n\n// 切换到暗色\nsetTheme('dark')\n\n// 切换到亮色\nsetTheme('light')\n\n// 从 localStorage 初始化\ninitTheme()\n\n// 获取当前主题\nconsole.log(getTheme()) // 'light' | 'dark'\n```\n\n## 主题列表\n\n| 主题 | 文件 | 说明 |\n|------|------|------|\n| `light` | `light.css` | 明亮主题（默认） |\n| `dark` | `dark.css` | 科技暗色主题 |\n","readmeFilename":"README.md"}