iter(g157): 补配方 10 暗色主题切换

说清三件事:只切 data-theme 不改令牌名、初值先读 localStorage、
同步 color-scheme 让原生控件跟色。MCP get_recipe 10 可取骨架。
This commit is contained in:
HIsheR
2026-10-26 15:56:56 +08:00
parent 1831aecab6
commit c2412fb360
4 changed files with 45 additions and 0 deletions
+8
View File
@@ -1612,6 +1612,14 @@
"acceptance": "ua tokens <子串> 只列匹配项并在末尾标注匹配词,--json 同步过滤;无匹配时给出总数并以 1 退出。",
"notes": "",
"status": "done"
},
{
"id": "g157",
"title": "补配方 10:暗色主题切换",
"motivation": "令牌层早就支持 [data-theme=dark],但配方里没有任何一条说清「怎么切、初值怎么定、原生控件为何仍是白底」,实践只能靠翻令牌表猜。",
"acceptance": "recipes.md 新增配方 10(切 data-theme + 同步 color-scheme + 初值先读 localStorage),verify 的配方结构校验通过,llms-full 与 MCP get_recipe 10 可取到骨架。",
"notes": "",
"status": "open"
}
]
}