diff --git a/AGENTS.md b/AGENTS.md index c35587d..022df30 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,6 +6,7 @@ - **定位代码先用 `docs/code_index/index.md`**:按业务域渐进披露到具体文件;新增/删除/重命名文件时**必须同步更新对应域的索引文件**。 - 总体架构 `docs/architecture.md`;后端规范 `docs/backend-guidelines.md`;前端规范 `docs/frontend-guidelines.md`;领域设计 `docs/domains/`;开发/部署排障 `docs/development.md`。 +- 视觉/交互规范 `docs/design-guidelines.md`(色彩 token、accent 预设、布局、卡片/表格/表单组件用法、加载/错误/409 交互态)——改 UI 前必读。 - 规范性的行为契约仍以 `openspec/specs/` 为准;docs 是实现地图,不是需求来源。 ## 布局与所有权 diff --git a/docs/design-guidelines.md b/docs/design-guidelines.md new file mode 100644 index 0000000..3131193 --- /dev/null +++ b/docs/design-guidelines.md @@ -0,0 +1,105 @@ +# Design Guidelines + +Visual and interaction conventions for all three frontends. Everything here is +enforced by `packages/shared/src/theme.css` tokens and `packages/ui` +components — if you need a value that does not exist, extend the theme or the +kit instead of improvising locally. No `