liuguang-banlan-ui
它能做什么
这个工具可以为界面创建两种特定的视觉风格:“虹彩白”和“彩色黑”。你可以调整颜色和强度等细节,获得可控的视觉效果。
适用场景
- ✓当你明确要求“虹彩白”或“彩色黑”风格时。
- ✓当你需要一个可配置、颜色数值精确的视觉起点时。
- ✓当最终报告需要包含所用颜色的精确细节时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/liuguang-banlan-ui/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请创建一个“虹彩白”风格的界面,把整体强度调整为 70%,蓝色调整为 50%。”
每周 5 个新技能,1 分钟读完。
工作原理
该工具使用 OKLCH 颜色模型来定义颜色。你可以控制每种颜色的强度以及整体强度,还能调整其他视觉属性,并生成一份详细的报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
流光斑斓 UI 工坊
Overview
Use one skill with two explicit modes, not a generic material library. Preserve a stable information workspace while treating the spectral field as a controlled environmental layer. Keep the implementation parameterized so every output can report total color intensity, per-color intensity, OKLCH values, peak opacity, spatial scale, phase, and measured coverage.
Read style-contract.md before choosing a mode or changing palette semantics. Read verification.md before claiming visual or screenshot validation.
When to Use
- Use when a user names 流光溢彩白 or 五彩斑斓黑, asks for one unified skill covering both, or needs a reusable parameterized starter.
- Use when the final report must include total color intensity, each color's intensity, OKLCH values, and screenshot measurements.
- Do not use for a generic theme-token library or an unparameterized visual mockup.
Workflow
1. Classify the request
- Map “流光溢彩白” to
opaland “五彩斑斓黑” toobsidian. - If both are requested, keep one shared implementation and two explicit theme manifests.
- Inspect the existing project, framework, route, build system, and uncommitted work before copying starter assets.
- Use the smallest appropriate change surface; do not replace an existing design system without authorization.
2. Gate visual verification
- Confirm that the executing model can directly inspect images before taking a screenshot-based visual claim.
- If native image inspection is unavailable, continue with code and deterministic pixel checks but mark the result
visual-unverified; never infer visual quality from DOM or CSS alone. - Record
modelVision,screenshotCapture,deterministicPixelMetrics, andvisualVerificationModein the final report.
3. Establish the scene and structure
- Choose a neutral, information-dense workbench domain such as field research, inventory, monitoring, or operations.
- Use a continuous three-pane or similarly coherent workspace: navigation, queue/list, detail, metadata, and one signature observation band.
- Keep color in the field, map markers, and state accents. Keep the logo, avatar, rules, text, controls, boundaries, and semantic hierarchy neutral; do not paint them with palette gradients.
- Prefer restrained surfaces and weak fills. Avoid turning every region into a floating card.
4. Implement the parameter contract
Maintain a serializable manifest with these top-level fields:
{
schemaVersion, mode, label, preset, seed,
overallColorIntensity,
base: { oklch },
colors: [{
id, label, oklch, srgbFallback,
intensity, peakOpacity,
fieldScale, phase,
measuredCoverage, effectiveShare
}],
field: { scale, octaves, warpStrength, motionSpeed, staticTime, ditherStrength, luminanceCap },
output: { colorSpace, reducedMotion }
}
- Keep every intensity in
[0, 1]; makeoverallColorIntensitythe global budget andcolors[].intensitythe per-color budget. The renderer multipliesintensitybypeakOpacity, so treatpeakOpacityas the calibrated strength at full intensity. - Order
colorsby hue. The renderer draws six hue stops around a loop and mixes each color with its array neighbors; near-complementary neighbors mix toward gray. luminanceCapapplies only inobsidian.ditherStrengthis the dither amplitude in output codes;1removes quantization bias.- Use OKLCH as the authoring space and provide an sRGB fallback for non-OKLCH contexts.
- Keep the seed, static frame, phases, and field scales deterministic; do not use random per render.
- Expose sliders for the global intensity and every configured color. Make reset, JSON export, and copy actions available.
5. Build the spectral field
- Use a procedural fBm/domain-warp field or an equivalent continuous field; keep it behind the interface with
pointer-events: none. - Use broad flowing hue regions or ribbons, not obvious radial blobs, spotlight circles, or hard rainbow bands.
- Upload the complete palette and per-color field scales to the renderer. Apply the dark-mode luminance cap after palette mixing.
- Encode output with the sRGB transfer function, dither in output codes, and quantize in the shader. A power-curve encode or a weak linear-light dither biases the output, most visibly in low-intensity fields and near black.
…
常见问题
“虹彩白”和“彩色黑”模式是什么?
这是工具可以生成的两种预设视觉主题:一种以白色和虹彩色调为主,另一种以黑色背景搭配鲜明的色彩为主。
什么是 OKLCH?
它是一种描述颜色的体系,更容易被设计师理解和调整,能让你更精确地控制颜色外观。
“vision gating”和“screenshot QA”是什么意思?
意思是该工具可以分析图片(截图),检查视觉风格是否正确应用,确保最终效果符合预期。
详情
作者的原始描述
Builds two parameterized UI modes—流光溢彩白 (iridescent white) and 五彩斑斓黑 (colorful black)—with OKLCH, WebGL/CSS fallback, vision gating, screenshot QA, and total/per-color intensity reports. Use when a UI request names either mode or needs measured color parameters.
热度
- GitHub 星标
- 48k
- 排名
- #5075
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。