tinted-ui-tokens-skills
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "tinted-ui-tokens-skills":https://skillpi.com/zh/skills/deepskill-baebc4585cbe17490a66e3f9dcb6ff1541a44ef9bf7dd189981aed9c2d782874。安装前核对上游来源和版本:https://skillhub.cn/skills/user_fa423024/tinted-ui-tokens-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
从一个品牌色生成完整、可直接上线的设计 Token 系统:为中性表面(背景、边框、文字、阴影、语义色、渐变、图标、暗色模式)带入品牌色温度,而非纯中性色。用于生成品牌色/HEX 到 UI 颜色 Token、设计系统、CSS 变量或染色配色。
介绍来源: third_party · user_fa423024 · 1.6.0 参考来源
SkillPi 解读
- 能完成的任务
- Turn one brand color into a full design-token system where the brand "flows through" the interface instead of sitting on top of it. The core technique (from the essay 《你的UI廉价,错在颜色》) is: **never use pure neutral colors** — blend 2–3% of the brand hue into every background, surface, border, text layer, shadow, semantic color, gradient and icon. The result reads as "designed" rather than "assembled".
- 适合谁
- User provides a brand color / hex and wants a design system, CSS variables, or a theme. · 用户提供品牌色 / hex,并想要一套设计系统、CSS 变量或主题。 User wants to make an existing UI look more premium ("my UI looks cheap"). · 用户想让现有 UI 显得更高级("我的界面看起来很廉价")。 User asks for tokens for light + dark mode, semantic colors, or a branded palette. · 用户需要明 / 暗双模式、语义色或品牌化配色的 Token。 User wants a quick visual proof (preview) of a color direction. · 用户想要某个配色方向的快速可视化预览。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: tinted-ui-tokens-skills
slug: tinted-ui-tokens-skills
displayName: tintedUiTokensSkills
version: 1.6.0
description: "从一个品牌色生成完整、可直接上线的设计 Token 系统:让每一个中性表面(背景、边框、文字、阴影、语义色、渐变、图标、暗色模式)都带上一小撮品牌色的温度,而不是使用纯中性色。当用户想用品牌色 / hex 生成、构建或设计 UI 颜色 Token、设计系统、CSS 变量、染色配色或品牌主题,或想通过修正扁平中性色让现有 UI 显得更高级时使用。触发语示例:给我生成一套设计Token、用这个品牌色出一套配色、UI颜色太廉价了、生成染色中性色系统、build a design system from #XXXXXX、tinted neutral palette。"
agent_created: trueTinted UI Tokens skills(品牌色 UI 设计 Token skills)
Overview
Turn one brand color into a full design-token system where the brand "flows through" the interface instead of sitting on top of it. The core technique (from the essay 《你的UI廉价,错在颜色》) is: never use pure neutral colors — blend 2–3% of the brand hue into every background, surface, border, text layer, shadow, semantic color, gradient and icon. The result reads as "designed" rather than "assembled".
The bundled generator (scripts/generate_tokens.py) is brand-agnostic: it
derives the temperature by blending each neutral ramp toward the given brand
hue, so it works for any color, not just the two palettes in the original essay.
Cross-agent · 跨 agent
This skill is agent-agnostic. WorkBuddy and Claude Code read this SKILL.md
directly. For every other agent (Cursor, OpenAI Codex, Cline, Aider, WindSurf,
GitHub Copilot, Gemini CLI), the same instructions live in
INSTRUCTIONS.md and are wired in via the docs under
agents/ — each agent only differs in where its rule file goes. The
engine (scripts/generate_tokens.py) is identical everywhere. See the
Cross-Agent Compatibility table in README.md.
中文:本技能与具体 agent 无关。WorkBuddy 与 Claude Code 直接读取本
SKILL.md; 其余 agent(Cursor、OpenAI Codex、Cline、Aider、WindSurf、GitHub Copilot、Gemini CLI) 使用INSTRUCTIONS.md中的同一份指令,并按agents/下的文档接入——差异只在规则文件的位置。引擎(scripts/generate_tokens.py)各处一致。 详见README.md的「跨 Agent 兼容性」表。
中文:内置生成器(
scripts/generate_tokens.py)是品牌无关的——它把每条中性色阶朝给定品牌色相方向混合,从而推导出整套系统的温度,因此对任意颜色都适用,而不局限于原文中的两套配色。
When to use · 何时使用
- User provides a brand color / hex and wants a design system, CSS variables, or a theme. · 用户提供品牌色 / hex,并想要一套设计系统、CSS 变量或主题。
- User wants to make an existing UI look more premium ("my UI looks cheap"). · 用户想让现有 UI 显得更高级("我的界面看起来很廉价")。
- User asks for tokens for light + dark mode, semantic colors, or a branded palette. · 用户需要明 / 暗双模式、语义色或品牌化配色的 Token。
- User wants a quick visual proof (preview) of a color direction. · 用户想要某个配色方向的快速可视化预览。
Workflow
1. Collect the minimum input
Only the brand color is required. Ask for it if missing:
- Brand color (hex like
#2563EB). This defines the system's temperature. - Optional: product / brand name (used only as a label in the preview).
- Optional: output directory (default to the current working directory).
Do not over-ask. One hex is enough to produce the whole system.
2. Run the generator
Use Python 3.10+ (on WorkBuddy use the managed runtime; on other agents use any
system python / python3):
python scripts/generate_tokens.py --brand "#2563EB" --name "Acme" --out "./out"
--brand(required): any hex color.--name(optional): label shown in the preview header.--out(optional): output folder, created if missing.--format css|html|both|json|tailwind|scss|all(optional, defaultboth).json= W3C DTCG tokens,tailwind=tailwind.config.js,scss= SCSS variables,all= css + html + json + tailwind + scss.--tint-strength subtle|normal|strong(optional, defaultnormal): how strongly every neutral leans toward the brand hue.
The script writes tokens.css (drop-in :root + [data-theme="dark"]
custom properties) and preview.html (self-contained live demo with a
light/dark toggle). It also prints the detected temperature (warm / cool /
balanced) and key values.
3. Present the result
Use present_files to show preview.html (opens in the live preview panel) and
tokens.css. Tell the user the detected temperature and that every neutral is
brand-tinted. Offer to regenerate with a different brand color or to hand-tune
specific tokens.
4. Hand-tuning (optional)
To explain or adjust a value, consult references/principles.md (the "why"
behind each token) before editing. Common tweaks:
- More/less tint: pass
--tint-strength subtle|normal|strong(no code edit needed).strongscales every blend factor up for a bolder brand presence. - Semantic nudge strength: the
0.06mix factor insemantic(). - Contrast: every text-on-surface pair is auto-checked against WCAG AA and nudged if needed — so you normally never have to fix readability by hand.
Output contract
tokens.css defines, for :root / [data-theme="light"] and
[data-theme="dark"]:
--color-brand,--color-brand-subtle,--color-on-brand(readable text/icon color to place ON--color-brand)--color-bg,--color-surface,--color-surface-2,--color-border,--color-border-strong--color-text,--color-text-2,--color-text-muted--color-error/-subtle,--color-warning/-subtle,--color-success/-subtle--shadow-sm,--shadow-md,--shadow-lg
No pure #FFFFFF, #000000, or #808080 is emitted anywhere. Every
text-on-surface pair passes WCAG AA (auto-checked + nudged if needed).
References
references/principles.md— the design rules the generator enforces, the grayscale test, a pre-delivery checklist, and common mistakes / anti-patterns for validating a system.
当前收录版本
1.6.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决设计师和开发者从单一品牌色生成完整设计 Token 系统的核心痛点
- 支持明/暗双模式、语义色、CSS 变量等多种输出,实用性强
- 内置生成器品牌无关,适用于任意颜色,扩展性好
亮点
- 触发语示例丰富,覆盖中英文多种表达方式
- 边界清晰,能有效引导用户触发 Skill
待提升项
-
文档过长 原报告严重程度:轻微
SKILL.md 文档总行数约 450 行,略超 500 行限制
改进建议:可考虑将部分详细说明移至引用文档或进行适度精简
亮点
- 文档结构清晰,包含完整的工作流程和输出说明
- 提供了详细的命令行示例和参数说明
亮点
- 工具来源明确,参数说明完整,支持多种输出格式
- 自动检查 WCAG AA 对比度并调整,确保可读性
- 输出路径可控,避免意外覆盖
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。