iter(g137): 演示页补暗色主题开关

This commit is contained in:
HIsheR
2026-10-26 15:29:50 +08:00
parent a8026bbee2
commit 55da08f27c
3 changed files with 24 additions and 5 deletions
+8
View File
@@ -1452,6 +1452,14 @@
"acceptance": "link 支持 href/label/target/external/muted/disabled/onClick,站外自动补 ↗ 与 rel 并播报新窗口,禁用去 href 保留 aria-disabled;样式只消费 --ua-*;文档与演示同步;npm run check 全绿",
"notes": "自补:组件补充方向",
"status": "done"
},
{
"id": "g137",
"title": "演示页补暗色主题开关",
"motivation": "tokens 里有 [data-theme=dark] 整套令牌,但演示页从未切换过:暗色令牌长期无人验证,页面自有 --page-* 变量也只跟系统偏好、不跟显式主题",
"acceptance": "演示页头部提供暗色主题开关(写 html[data-theme],localStorage 记忆,初值跟随系统);--page-* 变量响应 data-theme,媒体查询只在未显式指定时生效;npm run check 全绿",
"notes": "自补:演示页完善",
"status": "open"
}
]
}