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
Own this skill? Claim it
What it does
- Covers the single-file theme structure: one
{主题名}-theme-varsmixin and mount selectors forpage,.wot-theme-{主题名}, and.wd-root-portalinside 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
transparentfor every token, with novar(--wot-xxx)references and no dark or light split - Designed for brand or business theming in
src/themes/styleswhen the user asks to wire a@useintoApp.vue
Install
$ npx -y skills add wot-ui/cli --skill create-wot-ui-theme -yInstalls 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-v2skill。 - 用户要做 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 4Similar to Create Wot Ui Theme
More Frontend & UI Codewot-ui-unocss-preset-guidewot-ui/cli929 installsConfiguration and usage guide for the @wot-ui/unocss-preset UnoCSS preset, with troubleshooting for class names and editor support.
wot-ui-v2wot-ui/cli1.3K installsComprehensive offline query skill for wot-ui v2 uni-app Vue 3 components, theming, and troubleshooting.
theme-creationetewiah/property_web_builder653 starsNative CSS-variable theming with inheritance, WCAG contrast checks, and per-tenant overrides for PropertyWebBuilder themes.
frontend-css-patternsmajesticlabs-dev/majestic-marketplace183 installsFramework-agnostic CSS patterns for distinctive typography, limited color themes, motion, and broken-grid layouts.
design-tokensjulianoczkowski/designer-skills6.3K installsGenerates a philosophy-driven design tokens file with light and dark palettes, spacing, type, and motion scales.
daisyuisaadeghi/daisyui14.2K installsComponent library skill for Tailwind CSS 4 that supplies daisyUI class names, semantic colors, and themes.