Shared 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/.css npm run render -- --theme --layout cover --platforms xiaohongshu-v layout-types/.html with {{}} placeholders for content.layout- rules to base.css (or new file)npm run render -- --theme minimal-white --layout --platforms all 共 2 个版本