Vibe Ui Methodology logo

Vibe Ui Methodology

Community
huangrichao2020
vibe-ui-methodology

VibeCoding UI 视觉设计方法论——色彩 + 国风纹样 + 提示词工程的统一规范。 沉淀自「才巨智能 VibeCoding 教程系列」:①《UI 设计色彩搭建完整手册》(19 页) ②《国风纹样生成教程》(30 页)。 本 skill 是所有 HTML/CSS/SVG/可视化输出的统一方法论入口,覆盖: - 60-30-10 黄金配色比例 - HSL 色彩思维 + 50-900 色阶生成法 - 三层 Design Token 架构(原始层 → 语义层 → 组件层) - WCAG 对比度与无障碍 - 深色模式正确做法 - 4 套国风配色主题(青花/朱砂金/黛蓝金/墨绿金)+ 紫罗兰示范色 - 国风五大纹样体系 30 种纹样话术库 - 五步纹样描述公式(骨架→主体→构成→色彩→风格) - 国风纹样衍生四法(换色/重组/简化/融合) - 验收清单(一致性/层级/对比度/语义/双模式) 触发场景:任何 HTML/SVG/CSS 生成、PPT 演示文稿配色(配合 tencent-pptx)、 PDF/电子书/橙皮书排版(配合 huashu-book-pdf)、UI 配色、新中式/国风视觉、 网页装饰纹样、文档封面配色、可视化主题设计都应调用本 skill;不必单独搜色彩或纹样手册。

Overview

Publisherhuangrichao2020
Repositorypretty-skills
Skill namevibe-ui-methodology
Stars
54
Forks
4
Bundled files
23
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 23 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by huangrichao2020 on GitHub. Read the source before you install it.

Installation

Install the Vibe Ui Methodology AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/huangrichao2020/pretty-skills/tree/main/视觉创作/vibe-ui-methodology
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.

Use it in TypingMind

Enable Vibe Ui Methodology in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Vibe Ui Methodology on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Vibe Ui Methodology is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

VibeCoding UI 视觉设计方法论

这是所有 HTML/CSS/SVG/可视化输出的方法论总入口。 任何涉及 UI 配色、主题、装饰纹样的任务——橙皮书、可视化看板、新中式网页、信息图——都必须先调用本 skill 拿到配色规范与纹样话术,再动手写代码。

1. 三大设计原则(顶层纪律)

#原则来源一句话
1配色成系统而非凭感觉色彩手册1 主色阶 + 4 语义色 + 1 中性色 ≈ 60 个色值,撑起 100% 界面
2提示词给参数给规则给禁令色彩手册 §6.1模糊形容词让 AI 随机;HSL 参数 + 角色分配 + 禁用清单让 AI 精确
3纹样用 SVG 不用位图纹样手册 §1.2SVG 矢量可缩放/可换色/可平铺;位图不可控

这三条是所有可视化输出的「纪律底线」,违反任何一条就会产出「能用但不好看」。

2. 调用决策树

要生成可视化输出?
│
├─► HTML / SVG / CSS(Web 页面 / 仪表盘)?
│   ├─► 需要配色? → 见 references/color-system.md(通用)/ references/chinese-style-themes.md(国风)
│   ├─► 需要纹样? → 五步描述公式 + assets/patterns/30-patterns.md 话术库
│   ├─► 需要提示词? → templates/color-design-prompt.md / pattern-gen-prompt.md
│   └─► 需要验收? → 第 8 节验收清单 + 附录 A HTML 专项
│
├─► PPT / 演示文稿(配合 tencent-pptx)?
│   ├─► 需要配色? → 见 references/ppt-design.md §2-4(投影对比度修正 + 国风映射)
│   ├─► 需要母版? → 见 references/ppt-design.md §1(A/B/C 三区 + Hero/Supporting 节奏)
│   ├─► 需要纹样装饰? → 见 references/ppt-design.md §5(五种幻灯片用法)
│   └─► 需要验收? → 第 8 节验收清单 + 附录 B PPT 专项
│
├─► PDF / 电子书 / 橙皮书(配合 huashu-book-pdf)?
│   ├─► 需要配色? → 见 references/pdf-design.md §2-5(打印色彩 + 章首页 + 目录)
│   ├─► 需要封面? → 见 references/pdf-design.md §5(国风封面配色方案)
│   ├─► 需要纹样? → 见 references/pdf-design.md §8(PDF 纹样注意事项)
│   └─► 需要验收? → 第 8 节验收清单 + 附录 C PDF 专项
│
└─► 不确定场景?
    └─► 先看 references/color-system.md(通用配色基础),再按场景选分支

3. 三大场景速查

维度HTML/WebPPT/演示PDF/书籍
背景浅色 violet-50 或白色纯白优先(投影亮)白或米白(仿宣纸)
对比度4.5:1 (AA)7:1+(投影损失)4.5:1(阅读光充足)
饱和度30%40-50%(投影吃色)25%(打印柔和)
字色gray-800gray-800(字号≥18px)95% 黑 #1A1A1A
底纹透明度0.03-0.050.04-0.060.08-0.12(打印)
深色模式支持禁止整页深色底不支持(静态文件)
国风适用全部 4 主题浅色版(青花>朱砂金>黛蓝/墨绿浅色版)全部(青花最佳)

3. 60-30-10 黄金配色比例(最高频规则)

比例角色用途典型应用
60%主色调背景与留白页面背景、卡片底色、留白区域
30%辅助色次级区块卡片表面、导航、侧栏、章节底色
10%强调色关键行动点主按钮、链接、关键数据、当前状态

新手最大错误:把主色铺满整页(紫背景+紫标题+紫按钮)→ 没有强调。强调之所以是强调,恰恰因为它稀缺。 先把 90% 交给中性色,主色只在关键行动点上出现。

4. Design Token 三层架构

所有 CSS 必须走三层结构,禁止在组件中硬编码色值:

原始层(raw)    →  描述「是什么颜色」     violet-600: #5A4E8C
                       ↓
语义层(semantic) →  描述「做什么用」     --color-primary: var(--violet-600)
                       ↓
组件层(component)→  描述「用在哪个组件」  --button-bg: var(--color-primary)

核心纪律:

  • 原始层色值仅在主题文件出现一次
  • 组件代码只允许引用语义层 + 组件层变量
  • 换主题 / 做深色模式 = 只改语义层映射,不动组件代码

完整 CSS 变量模板 → assets/css/variables.css

5. 50-900 色阶生成法

固定色相(Hue)和饱和度(Saturation),只让明度(Lightness)从 97% 逐级降至 20%:

50  → 97% 明度 → 浅色背景
100 → 90%       → 禁用态、提示底色
200 → 80%       → 边框、分隔线
300 → 70%       → 占位符、次要图标
400 → 60%       → hover 次态
500 → 50%       → 主交互态(深色模式用)
600 → 40%       → 主交互态(浅色模式用)   ← 主色
700 → 30%       → hover 主态
800 → 20%       → 正文深色文字
900 → 15%       → 标题最深色

主色选择公式:HSL(h, 30%, 50%) → 紫罗兰示例 #5A4E8C (h=250°)

  • 饱和度建议 30% 左右——高于 50% 显得廉价,低于 20% 显得寡淡
  • 明度 50% 是品牌色「甜区」——再亮显飘,再暗显沉

6. 四套国风配色主题(开箱即用)

主题名地色纹色点缀色气质适用场景
青花瓷#F5F5F0#2F4E8F—清雅素净文化、雅集、传统内容
朱砂金#F8F1E4#B3402A#C9A063喜庆华贵节庆、婚庆、年度盛典
黛蓝金#2F3E5C#C9A063—沉稳高端商务、年报、主视觉
墨绿金#2E4B3F#D4B483—自然雅致文化、生态、文创

完整 CSS + JSON 主题文件 → assets/tokens/chinese-style-*.json 和 assets/css/chinese-style.css

切换主题 = 只改 :root 与 [data-theme="..."] 下的语义层映射,组件代码不动。

7. 深色模式正确做法

错误做法:把浅色模式颜色直接反相 → 阴影、层级、品牌色全部失真。

正确做法:维护两套语义层映射:

css
:root {
  /* 浅色模式:主色用 600 */
  --color-primary: var(--violet-600);
  --color-bg: var(--violet-50);
}
[data-theme="dark"] {
  /* 深色模式:主色提亮半级到 500(同样紫在深底上更暗,要提亮补偿) */
  --color-primary: var(--violet-500);
  --color-bg: var(--violet-900);
}

深色模式三大纪律:

  1. 主色提亮半级(600→500,500→400),因为深色背景同样色相看起来更暗
  2. 背景用最深的 900,正文文字用最浅的 50,明度差至少 9:1
  3. 边框颜色要重新选(浅色模式的 gray-200 在深色模式上几乎看不见,要换 gray-700)

8. WCAG 对比度与无障碍(强制门槛)

元素最低对比度验证方式
正文文字4.5:1(AA)/ 7:1(AAA)Chrome DevTools 取色器直接显示
大字号(≥18pt 或 14pt 加粗)3:1同上
辅助文字3:1同上
图形/图标3:1同上

三类高频误区:

  • ❌ 浅灰文字配白底显得「高级」(实际 2:1 阳光下不可读)
  • ❌ 彩色文字配彩色背景(红字绿底),色相不同但明度接近时仍看不清
  • ❌ 纯白文字配浅色主色按钮(主色 500 级以下压不住白字,要用 600+)

色盲友好原则:错误不能只靠颜色区分,必须有图标或文字双重提示。

9. 国风纹样体系(30 种话术库)

9.1 五大类型

类型数量气质适用位置
几何纹7秩序严谨边框、底纹、分隔
植物纹6生生不息主视觉、封面、点缀
动物纹6祥瑞灵动局部点睛、品牌符号
自然天象纹5气象万千背景、留白过渡
吉祥纹6寓意美好节庆、印章、贺卡

9.2 五步描述公式(生成纹样的万能模板)

第一步·骨架结构:连续回旋藤蔓 / 中心放射对称 / 方形网格 / 波浪主线
第二步·主体元素:纹样名称 + 组成部件的长相与数量
第三步·构成方式:四方连续 / 二方连续 / 单独纹样 / 适合纹样
第四步·色彩:地色 + 主纹色 + 点缀色,注明色值
第五步·风格与用途:朝代或器物风格 + 使用场景

完整 30 种纹样描述话术 → assets/patterns/30-patterns.md

9.3 衍生四法

方法原理适用难度
换色衍化线稿不动只换色节日限定、联名款★
骨架重组A 骨架 + B 主体系列化设计、主视觉★★
抽象简化提取辨识度特征做减法Logo、极简包装★★
跨界融合传统 × 现代(像素/赛博/波普)潮牌、数字媒体★★★

10. 与其他 Skill 的协作关系

Skill关系调用方式
huashu-book-pdf依赖本 skill橙皮书/PDF生成时引用本skill的配色+纹样+打印规范(references/pdf-design.md)
tencent-pptx互补PPT生成时引用本skill的投影配色修正+国风主题+纹样装饰(references/ppt-design.md)
stock-sentiment-cycle可选引用情绪仪表盘的紫罗兰主题来自本skill 50-900色阶
tencent-docx/doc-typeset设计令牌可借鉴商务/营销主题可选用本skill的chinese-style JSON
tencent-docx/design-token主题源可补充chinese-style JSON可作为新genre注册
cloudstudio-deploy可直接消费部署静态站时引用本skill的variables.css
Visualizer(show_widget)遵守本规范配色用本skill色阶,主题切换通过CSS变量

11. 验收清单(按输出类型分三套)

附录 A:HTML / Web 验收

#检查项通过标准
0一致性全文搜索 #,硬编码色值应为0;所有颜色都引用 --color-* 变量
1层级眯眼看页面,最重要信息最醒目;主色面积 ≤ 10%
2对比度正文4.5:1、辅助3:1,用Chrome DevTools抽查5处
3语义成功/警告/错误符合直觉(绿/黄/红/蓝);不只靠颜色表达
4双模式切换深色后阴影、边框、图片观感依然正常
5纹样接缝四方连续时左右上下接缝处图案能对上
6响应式窄屏下布局不挤爆,画布全宽
7WCAG 色盲不只靠颜色传达关键信息,错误有图标/文字双重提示

附录 B:PPT 验收

#检查项通过标准
0投影可读全文字号≥18px;正文对比度≥7:1(补偿投影亮度损失)
1底色安全禁止整页深色底;封面深色块≤60%面积
2色彩节奏Hero页强调色15-20%,Supporting页≤5%;色彩比例不雷同
3母版一致所有内容页A/B/C三区位置、页脚配色统一
4饱和度补偿PPT用色比Web高10-15%饱和度(投影会"吃色")
5封面一致性DESIGN.md声明的色板在封面和内容页中严格一致

附录 C:PDF / 橙皮书验收

#检查项通过标准
0底色统一全篇正文底色相同(白或同一浅色),翻页不跳跃
1字色正文用95%黑(#1A1A1A),非纯黑;所有h2/h3颜色统一
2表格统一表头色/边框色/隔行色全篇一致
3底纹可见SVG纹样opacity≥0.08(打印不会消失)
4封面协调封面/目录/正文/尾页色彩过渡自然,无风格漂移
5页脚页眉/页脚字体、字号、颜色统一;页码配色一致
6插图SVG已截图为PNG嵌入(避免阅读器不支持)

12. 提示词模板速查

任务模板路径
让AI生成色彩系统templates/color-design-prompt.md
让AI生成PPT配色方案(新)templates/ppt-color-prompt.md
让AI生成国风纹样SVGtemplates/pattern-gen-prompt.md
让AI搭建网页骨架templates/page-skeleton-prompt.md
调试/排错万能话术templates/debug-prompt.md
验收清单(让AI自检)templates/acceptance-prompt.md

13. 视觉红线(不许违反)

  1. ❌ 禁止使用纯黑 #000000 当正文文字(用 15-25% 明度的深灰)
  2. ❌ 禁止使用纯灰 #808080、纯红 #FF0000、纯蓝 #0000FF(视觉廉价)
  3. ❌ 禁止大面积高饱和色块(>30% 面积)
  4. ❌ 禁止只靠颜色传达信息(色盲不友好)
  5. ❌ 禁止组件中硬编码色值(必须走 CSS 变量)
  6. ❌ 禁止「好看的紫色」「高级的灰」等模糊形容词出现在提示词

配套资源索引

文件内容
references/color-system.mdHSL 色阶、对比度、深色模式细节
references/chinese-style-themes.md4 套国风配色完整规范与历史出处
references/pattern-system.md30 种纹样的历史、寓意、话术库
references/ppt-design.mdPPT独有:投影对比度、Hero/Supporting节奏、母版配色、纹样五用法
references/pdf-design.mdPDF独有:打印色彩、出血留白、章首页、跨章一致性、封面方案
references/vibe-prompt-engineering.md提示词工程三要素(参数+结构+禁令)
assets/tokens/violet-default.json紫罗兰主色 50-900 JSON
assets/tokens/chinese-style-{qinghua,zhushajin,daillanjing,molvjin}.json4 套国风主题 JSON
assets/css/variables.css完整三层 Token CSS 模板(可直接复制)
assets/css/chinese-style.css国风样式 class 模板
assets/patterns/30-patterns.md30 种纹样描述话术库(可整段复制给 AI)
assets/patterns/svg-samples/*.svg关键纹样 SVG 示例
templates/*.md5 个提示词模板

记住:把色彩变成系统,而不是感觉。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Vibe Ui Methodology AI skill do?

VibeCoding UI 视觉设计方法论——色彩 + 国风纹样 + 提示词工程的统一规范。 沉淀自「才巨智能 VibeCoding 教程系列」:①《UI 设计色彩搭建完整手册》(19 页) ②《国风纹样生成教程》(30 页)。 本 skill 是所有 HTML/CSS/SVG/可视化输出的统一方法论入口,覆盖: - 60-30-10 黄金配色比例 - HSL 色彩思维 + 50-900 色阶生成法 - 三层 Design Token 架构(原始层 → 语义层 → 组件层) - WCAG 对比度与无障碍 - 深色模式正确做法 - 4 套国风配色主题(青花/朱砂金/黛蓝金/墨绿金)+ 紫罗兰示范色 - 国风五大纹样体系 30 种纹样话术库 - 五步纹样描述公式(骨架→主体→构成→色彩→风格) - 国风纹样衍生四法(换色/重组/简化/融合) - 验收清单(一致性/层级/对比度/语义/双模式) 触发场景:任何 HTML/SVG/CSS 生成、PPT 演示文稿配色(配合 tencent-pptx)、 PDF/电子书/橙皮书排版(配合 huashu-book-pdf)、UI 配色、新中式/国风视觉、 网页装饰纹样、文档封面配色、可视化主题设计都应调用本 skill;不必单独搜色彩或纹样手册。

Why use Vibe Ui Methodology on TypingMind?

Because you install it once and use it with any model. Vibe Ui Methodology is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Vibe Ui Methodology in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/huangrichao2020/pretty-skills/tree/main/视觉创作/vibe-ui-methodology. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Vibe Ui Methodology?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Vibe Ui Methodology?

As many as you like. As long as a model supports skills, you can use Vibe Ui Methodology with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Vibe Ui Methodology AI skill free?

Yes. It is published on GitHub by huangrichao2020 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇