Commit 57025b00b21d105e6cb4ffdc84e5097252515723
1 parent
7ce9262d
templates: fix stale docs/06 § 四 / § 4.x refs in styles-tokens CSS
docs-06-static-template.md actually defines § 二 Design Tokens with subsections 2.1 / 2.2 / 2.3. The CSS template comments still cited the pre-renumber § 四 / § 4.1 / § 4.2, so downstream-generated tokens.css files pointed readers to non-existent sections of docs/06.
Showing
1 changed file
with
3 additions
and
3 deletions
skills/plan/skeleton-gen/templates/styles-tokens-template.css
| 1 | 1 | /* |
| 2 | 2 | * src/styles/tokens.css — Design Tokens |
| 3 | 3 | * 命名规范见 docs/04-技术规范.md § 2.5 |
| 4 | - * 色值锁定见 docs/06-UI交互规范.md § 四 | |
| 4 | + * 色值锁定见 docs/06-UI交互规范.md § 二 | |
| 5 | 5 | * |
| 6 | 6 | * 命名格式:--color-<scope>-<role>-<state> |
| 7 | 7 | * <scope> 组件域:form / table-row / table-header / ... |
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | * 约束: |
| 12 | 12 | * - 组件样式中只用 var(--color-xxx),禁止硬编码 hex / rgba |
| 13 | 13 | * - 修改色值只改本文件,不允许在组件级覆盖 |
| 14 | - * - 新增 token 须先登记到 docs/06 § 4.1 / 4.2,再补到此处 | |
| 14 | + * - 新增 token 须先登记到 docs/06 § 2.1 / 2.2,再补到此处 | |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | :root { |
| ... | ... | @@ -25,7 +25,7 @@ |
| 25 | 25 | --color-border: #d9d9d9; |
| 26 | 26 | --color-bg-base: #f0f2f5; |
| 27 | 27 | |
| 28 | - /* === 2. 组件级状态色(与 docs/06 § 4.2 一一对应) === */ | |
| 28 | + /* === 2. 组件级状态色(与 docs/06 § 2.2 一一对应) === */ | |
| 29 | 29 | |
| 30 | 30 | /* form:输入框 / 备注框 / 时间框 / 下拉框共用 */ |
| 31 | 31 | --color-form-bg-edit: #ffffff; | ... | ... |