← Back to Skills Marketplace
iyuanfang

Yuanfang Design System

by iyuanfang · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
42
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install yuanfang-design
Description
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...
README (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

  1. Copy themes/_template.css to themes/\x3Cname>.css
  2. Override tokens for: colors, fonts, sizes, decor, feature flags
  3. Test: npm run render -- --theme \x3Cname> --layout cover --platforms xiaohongshu-v
  4. Update showcase/cover-showcase.html to include the new theme

How to add a new layout-type

  1. Create layout-types/\x3Cname>.html with {{}} placeholders for content
  2. Add corresponding .layout-\x3Cname> rules to base.css (or new file)
  3. Test: npm run render -- --theme minimal-white --layout \x3Cname> --platforms all
  4. Add to showcase
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install yuanfang-design
  3. After installation, invoke the skill by name or use /yuanfang-design
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release — shared design system: 30+ token CSS variables, 12 themes, reusable layout types (cover.html), and a visual showcase.
Metadata
Slug yuanfang-design
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 42 downloads so far.

How do I install Yuanfang Design System?

Run "/install yuanfang-design" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Yuanfang Design System free?

Yes, Yuanfang Design System is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Yuanfang Design System support?

Yuanfang Design System is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Yuanfang Design System?

It is built and maintained by iyuanfang (@iyuanfang); the current version is v0.1.0.

💬 Comments