Files
slide/decks/gen2D/pages/style-system.md
T

25 lines
815 B
Markdown
Raw Normal View History

# 风格系统 — 两层架构
保证一致性与灵活性的风格管理方案
<v-clicks>
<Item title="🏗️ 工程风格(Project Style)">
全局风格配置,以 kvPairs 存储(如 `artStyle=pixel`)。同一工程下所有素材自动继承。
</Item>
<Item title="🔀 任务风格覆盖(Task Override)">
单次任务可覆盖部分风格键,未指定的自动继承工程风格。适合生成同一角色的不同变体。
</Item>
<Item title="⚙️ 合并逻辑">
`finalStyle = merge(projectStyle, taskStyle)` — 工程风格为基底,任务风格逐键覆盖。自定义标签(`custom:` 前缀)自动提取注入提示词。
</Item>
</v-clicks>
<!--
演示:假设工程风格 artStyle=pixel, palette=warm
任务覆盖 palette=cool → 最终 palette=cool,其他继承
-->