← 返回 Skills 市场
42
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install yuanfang-design
功能描述
Shared design system for yuanfang-skills. Provides token CSS variables, 12+ themes, and reusable layout-type HTML blocks. Used by yuanfang-html-image (and fu...
使用说明 (SKILL.md)
yuanfang-design
Shared design library providing:
- base.css — 30+ token CSS variables (colors, fonts, sizes, space, radius, shadow, decor, feature flags)
- themes/ — 12 theme overrides, each as a single CSS file using
[data-theme="..."]selectors - layout-types/ — Reusable HTML blocks (cover.html, future bullets/kpi-grid/etc.)
- showcase/ — Visual QA tool: 12 themes × 6 platforms = 72 iframes in a grid
- references/authoring-guide.md — Rules for adding new themes/layout-types
When to use
Use this skill when:
- The user wants to add a new visual style → create a new theme file
- The user wants to add a new layout type (e.g., bullets, kpi-grid) → create new HTML block
- The user wants to view all themes/layouts at once → open the showcase
- The user wants to understand the design system → read authoring-guide.md
Structure
yuanfang-design/
├── base.css # All token defaults (no literals in .cover rules)
├── themes/\x3Cname>.css # Each theme = token override set
├── layout-types/\x3Cname>.html
├── animations.css # Shared animation library (placeholder for now)
├── references/authoring-guide.md
└── showcase/cover-showcase.html
How themes work
A theme is a single CSS file that overrides base.css tokens:
[data-theme="dark-gold"] {
--bg: #1A1A2E;
--text: #F5E6D3;
--accent: #E2B714;
/* ... */
}
The cover.html layout-type references tokens only. Swapping the theme = reskinning the entire layout.
How to add a new theme
- Copy
themes/_template.csstothemes/\x3Cname>.css - Override tokens for: colors, fonts, sizes, decor, feature flags
- Test:
npm run render -- --theme \x3Cname> --layout cover --platforms xiaohongshu-v - Update showcase/cover-showcase.html to include the new theme
How to add a new layout-type
- Create
layout-types/\x3Cname>.htmlwith{{}}placeholders for content - Add corresponding
.layout-\x3Cname>rules to base.css (or new file) - Test:
npm run render -- --theme minimal-white --layout \x3Cname> --platforms all - Add to showcase
安全使用建议
This looks safe to install for design-system use. Be aware that running the showcase generator can create or overwrite generated showcase HTML files in its local showcase area, and it expects a sibling yuanfang-html-image renderer module to exist.
能力评估
Purpose & Capability
The artifacts coherently match the stated purpose: token CSS, theme CSS files, a cover HTML layout, registries, authoring guidance, tests, and a visual showcase.
Instruction Scope
Runtime instructions are scoped to adding themes, adding layout types, viewing the showcase, and reading the authoring guide; no hidden prompt overrides or unrelated agent instructions were found.
Install Mechanism
No install hooks, package scripts, dependency installs, or privileged setup steps are present in the artifacts or metadata.
Credentials
The only notable executable code is a Node showcase generator and tests. The generator reads local design files and writes generated HTML under a showcase output path, which is proportionate to visual QA.
Persistence & Privilege
No credential access, network calls, shell execution, background workers, startup persistence, privilege escalation, or broad local indexing were found.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install yuanfang-design - 安装完成后,直接呼叫该 Skill 的名称或使用
/yuanfang-design触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release — shared design system: 30+ token CSS variables, 12 themes, reusable layout types (cover.html), and a visual showcase.
元数据
常见问题
Yuanfang Design System 是什么?
Shared design system for yuanfang-skills. Provides token CSS variables, 12+ themes, and reusable layout-type HTML blocks. Used by yuanfang-html-image (and fu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 42 次。
如何安装 Yuanfang Design System?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install yuanfang-design」即可一键安装,无需额外配置。
Yuanfang Design System 是免费的吗?
是的,Yuanfang Design System 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Yuanfang Design System 支持哪些平台?
Yuanfang Design System 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Yuanfang Design System?
由 iyuanfang(@iyuanfang)开发并维护,当前版本 v0.1.0。
推荐 Skills