docs: Obsidian 1~10 目录配色扩展

workphone-devdoc.css 覆盖需求/开发/部署/测试/平台分析根目录;Skill 配色表同步。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Manus AI
2026-05-24 08:54:51 +08:00
parent 7654e08b4d
commit 8f44ede81e
2 changed files with 49 additions and 0 deletions

View File

@@ -43,3 +43,45 @@
color: #C62828 !important;
font-weight: 600;
}
/* 开发文档 110 根目录(四类分类色) */
.nav-folder-title[data-path="开发文档/1、需求"] > .nav-folder-title-content {
color: #5E35B1 !important;
font-weight: 600;
}
.nav-folder-title[data-path="开发文档/3、原型"] > .nav-folder-title-content {
color: #5E35B1 !important;
}
.nav-folder-title[data-path="开发文档/4、前端"] > .nav-folder-title-content {
color: #0277BD !important;
font-weight: 600;
}
.nav-folder-title[data-path="开发文档/5、接口"] > .nav-folder-title-content {
color: #0277BD !important;
font-weight: 600;
}
.nav-folder-title[data-path="开发文档/6、后端"] > .nav-folder-title-content {
color: #0277BD !important;
font-weight: 600;
}
.nav-folder-title[data-path="开发文档/7、数据库"] > .nav-folder-title-content {
color: #558B2F !important;
font-weight: 600;
}
.nav-folder-title[data-path="开发文档/8、部署"] > .nav-folder-title-content {
color: #558B2F !important;
font-weight: 600;
}
.nav-folder-title[data-path="开发文档/6、测试"] > .nav-folder-title-content {
color: #F9A825 !important;
font-weight: 600;
}
.nav-folder-title[data-path="开发文档/平台分析"] > .nav-folder-title-content {
color: #AD1457 !important;
font-weight: 600;
}
/* 通用 images 子目录(各手册/架构下) */
.nav-folder-title[data-path$="/images"] > .nav-folder-title-content {
color: #78909C !important;
}

View File

@@ -94,9 +94,16 @@ version: 1.0.0
| `…/images` | `#78909C` | 静态图 |
| `开发文档/9、手册` | `#1565C0` | 用户手册 |
| `开发文档/10、项目管理` | `#C62828` | 进度 |
| `开发文档/1、需求` `3、原型` | `#5E35B1` | 需求与原型 |
| `开发文档/4、前端` `5、接口` `6、后端` | `#0277BD` | 开发与接口 |
| `开发文档/7、数据库` `8、部署` | `#558B2F` | 部署与数据 |
| `开发文档/6、测试` | `#F9A825` | 测试验收 |
| `开发文档/平台分析` | `#AD1457` | 平台专项 |
**新建子目录时**:在 CSS 追加 `.nav-folder-title[data-path="…"]` 规则README frontmatter 写 `obsidian-color: "#xxxxxx"`
**Cursor 规则**`.cursor/rules/workphone.mdc` 已引用本 SkillAgent 开发功能时自动按分层归类。
可选插件:**Icon Folder** — 可为 `01-总览` 设 📐、`images` 设 🖼️,与 CSS 色并存。
---