Commit 378ce81f3abbc1e4279752440cc7e480704fddad
1 parent
73c97750
fix(lite): correct test.sh slot count + tokens.css note in lite-design
Showing
2 changed files
with
2 additions
and
2 deletions
skills/plan/lite-design/SKILL.md
| ... | ... | @@ -62,7 +62,7 @@ cp "${CLAUDE_SKILL_DIR}/templates/scripts-setup-test-db-template.sh" scripts/set |
| 62 | 62 | |
| 63 | 63 | #### C.2 渲染 scripts/test.sh |
| 64 | 64 | |
| 65 | -读取 `${CLAUDE_SKILL_DIR}/templates/scripts-test-template.sh`,基于步骤 A 的技术栈(docs/04 § 零)为 4 个命令槽推断命令后写到 `scripts/test.sh`(lite 版精简为 4 槽): | |
| 65 | +读取 `${CLAUDE_SKILL_DIR}/templates/scripts-test-template.sh`,基于步骤 A 的技术栈(docs/04 § 零)为以下 7 个命令槽推断命令后写到 `scripts/test.sh`(纯后端项目可把前端 / E2E 槽填 `echo` 占位): | |
| 66 | 66 | |
| 67 | 67 | - `{{backend_build}}` / `{{backend_lint}}` / `{{backend_test}}` — 后端各 stage 命令 |
| 68 | 68 | - `{{frontend_build}}` / `{{frontend_lint}}` / `{{frontend_test}}` — 前端各 stage 命令 | ... | ... |
skills/plan/lite-design/templates/docs-04-skeleton-template.md
| ... | ... | @@ -47,7 +47,7 @@ lite 版将前端 Design Tokens + 环境配置内容折叠到本文件 § 四 + |
| 47 | 47 | ### 2.5 样式与主题 |
| 48 | 48 | <!-- 基于 § 零 UI 库给出 CSS 变量约定: |
| 49 | 49 | - 命名格式 `--color-<scope>-<role>-<state>`(scope=form/table-row/...,role=bg/fg/border,state=edit/readonly/hover/selected) |
| 50 | - - 文件位置 `src/styles/tokens.css`,由 lite-design 生成空骨架,色值由 § 四锁定后填入 | |
| 50 | + - 文件位置 `src/styles/tokens.css`(前端阶段处理,lite-design 不生成);色值由 § 四锁定后在前端阶段填入 | |
| 51 | 51 | - 组件样式中只用 var(--color-xxx),禁止硬编码 hex/rgba |
| 52 | 52 | - 与 UI 库主题对接(如 Ant Design ConfigProvider.theme.token)的映射方式 |
| 53 | 53 | 具体 token 表见 § 四。 --> | ... | ... |