From 8181b3544bb3e52f29ca56cfc7d513f06d45d9a7 Mon Sep 17 00:00:00 2001 From: Chengdong Zhang Date: Thu, 24 Sep 2026 17:11:51 +0800 Subject: [PATCH] docs: visual design guidelines (tokens, components, interaction states) --- AGENTS.md | 1 + docs/design-guidelines.md | 105 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 docs/design-guidelines.md 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 `