Skip to content
wot-ui avatar

Create Wot Ui Theme

Generates a single-file wot-ui theme SCSS with semantic tokens and optional App.vue wiring for brand themes.

CCM score
52 of 100
skills.sh installs
934
GitHub stars
39
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the single-file theme structure: one {主题名}-theme-vars mixin and mount selectors for page, .wot-theme-{主题名}, and .wd-root-portal inside the same file
  • Includes full semantic token groups: primary scale, danger, success, warning, text, icon, border, filled, divider, feedback, overlays, and classification colors
  • Enforces fixed color values or transparent for every token, with no var(--wot-xxx) references and no dark or light split
  • Designed for brand or business theming in src/themes/styles when the user asks to wire a @use into App.vue

Install

$ npx -y skills add wot-ui/cli --skill create-wot-ui-theme -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Create Wot-ui Theme Skill

这个 skill 用于在 wot-ui 项目中生成“单文件主题 SCSS”方案。它约束主题文件在 src/themes/styles 下完成语义变量定义与挂载,App.vue 只负责 @use 引入,不扩展成 light/dark 双文件结构,也不改造 uni_modules/wot-ui/styles/theme/index.scss。

适用场景

  • 用户明确要求为 wot-ui 生成品牌主题、业务主题或定制语义变量主题。
  • 用户希望新增 src/themes/styles/{主题名}.scss,并把挂载逻辑也收进主题文件。
  • 用户要求 App.vue 只保留 @use './themes/styles/{主题名}.scss' as {主题名}; 这一类引入。
  • 用户强调不要生成 dark 主题文件、不要拆成双文件主题结构、不要改内置主题入口。

不适用场景

  • 用户只是想知道 wd-config-provider 或普通 CSS 变量怎么用,这种情况优先使用 wot-ui-v2 skill。
  • 用户要做 light/dark 双主题、动态换肤系统、运行时 token 注入,这不属于本 skill 的目标结构。
  • 当前仓库没有实际业务 src/App.vue 或主题目录时,不要臆造文件;应基于用户目标项目路径执行,或先向用户确认目标工程位置。

核心约束

  • 只生成一个主题文件:src/themes/styles/{主题名}.scss。
  • 主题文件内必须同时包含:
    • 一个 @mixin {主题名}-theme-vars
    • page、.wot-theme-{主题名}、.wot-theme-{主题名} .wd-root-portal 的挂载选择器
  • App.vue 只负责 @use 引入,不重复写挂载选择器。
  • 所有语义变量都必须填写固定色值或 transparent,不要写成 var(--wot-xxx)。
  • 不生成 dark.scss,不修改 uni_modules/wot-ui/styles/theme/index.scss。
  • 如果用户没有明确要求接入 App.vue,默认只生成主题文件并给出应追加的 @use 语句。

执行前确认

生成前优先确认这些信息;缺少时先问清楚再动手:

Details

Repository
github.com/wot-ui/cli
Categories
Frontend & UI Code, Design & UI/UX
First seen
Jun 3, 2026

More from wot-ui/cli

All 4

Similar to Create Wot Ui Theme

More Frontend & UI Code