← 返回
未分类 中文

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...
yuanfang-skills 的共享设计系统,提供 token CSS 变量、12+ 主题以及可复用的布局类型 HTML 块,供 yuanfang-html-image(以及 fu...)使用。
iyuanfang iyuanfang 来源
未分类 clawhub v1.1.0 2 版本 100000 Key: 无需
★ 0
Stars
📥 107
下载
💾 1
安装
2
版本
#design#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

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-06-09 18:59 安全 安全
  • v0.1.0
    2026-06-07 13:16

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Financial Ai Agent

iyuanfang
查询金融行情数据(股票、ETF、虚拟货币等),在用户询问行情、价格或股票代码时使用。示例:查询SH600519、茅台今天收盘价、0700.HK最近10天。
★ 1 📥 877

Yuanfang HTML Image

iyuanfang
使用HTML模板从文本或URL生成精准多尺寸社交媒体图片,提取品牌资产并控制布局与风格以适配平台。
★ 0 📥 131

Yuanfang HTML PPT

iyuanfang
从文本或URL生成精准、完全可编辑的专业多页PPTX演示文稿,使用可定制的HTML模板和YAML数据。
★ 0 📥 91