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 future yuanfang-html-ppt) to render visually consistent output. When user asks to "add a new theme", "add a new layout", or "view the design system", use this skill.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- 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 future yuanfang-html-ppt) to render visually consistent output. When user asks to "add a new theme", "add a new layout", or "view the design system", use this skill.
03 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/<name>.css # Each theme = token override set
├── layout-types/<name>.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/<name>.css - Override tokens for: colors, fonts, sizes, decor, feature flags
- Test:
npm run render -- --theme <name> --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/<name>.htmlwith{{}}placeholders for content - Add corresponding
.layout-<name>rules to base.css (or new file) - Test:
npm run render -- --theme minimal-white --layout <name> --platforms all - Add to showcase
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.