← 返回
未分类

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.
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.
yjkj999999
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 17
下载
💾 0
安装
1
版本
#latest

概述

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

  1. Copy themes/_template.css to themes/.css
  2. Override tokens for: colors, fonts, sizes, decor, feature flags
  3. Test: npm run render -- --theme --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/.html with {{}} placeholders for content
  2. Add corresponding .layout- rules to base.css (or new file)
  3. Test: npm run render -- --theme minimal-white --layout --platforms all
  4. Add to showcase

版本历史

共 1 个版本

  • v1.0.0 从ClawHub迁移发布 当前
    2026-06-07 11:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

meituan-huisheng-coupon

user_15292d5a
帮用户领取美团优惠券并查询当日优惠活动,覆盖外卖、到店餐饮、酒旅、休闲娱乐等全品类。用户明确表达领券、省钱、查找优惠意图,或涉及美团覆盖的生活服务消费决策时触发。
★ 1 📥 34

xhs-title-copywriter

user_15292d5a
基于用户输入的任何信息生成小红书爆款标题的专业工具。无论用户输入什么,最终目标都是生成小红书爆款标题。
★ 1 📥 37

darwin-skill-qszf

user_15292d5a
达尔文.skill 2.0 — 自主Skill优化系统:评估→改进→测试→保留或回滚。与女娲.skill配合使用:女娲造人(创建Skill),达尔文进化(优化Skill)。集成微软SkillLens 9维评分+SkillOpt验证机制
★ 0 📥 65