Install
openclaw skills install yuanfang-designShared 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.
openclaw skills install yuanfang-designShared design library providing:
[data-theme="..."] selectorsUse this skill when:
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
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.
themes/_template.css to themes/<name>.cssnpm run render -- --theme <name> --layout cover --platforms xiaohongshu-vlayout-types/<name>.html with {{}} placeholders for content.layout-<name> rules to base.css (or new file)npm run render -- --theme minimal-white --layout <name> --platforms all