Files
gen2d/docs/style-keys.md
T
wonder a603f5548c refactor: 前端重构为项目+任务双核心模型
- 新增 HomePage 项目画廊页,支持新建/删除工程
- 新增 ProjectDetailPage 三栏工作台(配置+生成+任务列表)
- 新增 CustomTagsEditor 支持自定义风格标签(custom: 前缀存入 kvPairs)
- 重构 project store 为 draft/commit 模式,支持手动保存/取消
- 新增 projectList store 管理工程列表
- 扩展 mock.ts 为多工程数据结构
- 扩展 api/project.ts 新增项目 CRUD API(mock-gated)
- 简化 ResultPage,仅展示素材预览
- 删除 GeneratePage、ProjectPage 及未使用的 hooks
- 更新 docs/ 文档(frontend.md、api.md、style-keys.md、_index.md)
2026-05-25 16:15:31 +08:00

988 B
Executable File

预设风格键分类

前端以分类标签组织,用户点选:

分类 键名 可选值示例
美术风格 artStyle pixel, cartoon, hand-drawn, vector, flat
色调 palette warm, cool, neutral, vibrant, muted, monochrome
线条 lineWeight none, thin, medium, thick
场景 scene forest, dungeon, city, space, underwater, desert
光照 lighting bright, dim, dramatic, ambient, neon
情绪 mood cheerful, dark, mysterious, epic, calm

(具体键值后续可扩展,这里是初始集合)

自定义标签

除预设分类外,用户可添加自定义标签。标签存储在 kvPairs 中,使用 custom: 前缀区分:

{
  "artStyle": "pixel",
  "palette": "warm",
  "custom:cel-shading": "true",
  "custom:glow-effects": "true"
}

前端 extractTags() 函数在提取标签时自动包含自定义标签值(去掉前缀),送入提示词优化管线。