openwebf-host-theming-sync
同步 Flutter 和 WebF 的主题(自动主题同步、prefers-color-scheme、深色模式)。当用户提及主题同步、深色模式、prefers-color-scheme、CSS 变量或来自 MaterialApp 的 WebF 主题时使用。
📖 中文导读:同步 Flutter 和 WebF 的主题(自动主题同步、prefers-color-scheme、深色模式)。当用户提及主题同步、深色模式、prefers-color-scheme、CSS 变量或来自 MaterialApp 的 WebF 主题时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: openwebf-host-theming-sync description: Sync theming between Flutter and WebF (automatic theme sync, prefers-color-scheme, dark mode patterns). Use when the user mentions theme sync, dark mode, prefers-color-scheme, CSS variables, or WebF theming from MaterialApp. allowed-tools: Read, Grep, Glob, Bash, Edit, Write, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__templates_get, mcp__openwebf__templates_render
OpenWebF Host: Theming Sync
Instructions
- Determine desired behavior: automatic sync vs manual overrides.
- Use MCP docs to confirm how theme synchronization works by default and safe patterns.
- Provide concrete patterns for:
- CSS
prefers-color-scheme - JS/React theme toggles
- Flutter-driven theme propagation
- CSS
- Offer templates where applicable:
host/theme-sync-materialappapp/theming-prefers-color-scheme-cssapp/theming-matchmedia-listener
More: