ForcePilot/docs/latest/advanced/branding.md
Wenjie Zhang cd34ea5474 docs: 更新文档内容并优化图标映射
更新多个文档内容,包括移除演示视频、调整模型配置说明、优化知识库文档结构
在HomeView.vue中添加图标映射区域注释
将FileTable.vue中的刷新图标从RefreshCcw改为ReloadOutlined
添加agent.png图片资源
2025-12-23 12:12:34 +08:00

56 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 品牌自定义
系统支持完整的品牌信息自定义,包括 Logo、组织名称、版权信息等。
## 配置方法
### 1. 复制模板文件
```bash
cp src/config/static/info.template.yaml src/config/static/info.local.yaml
```
### 2. 编辑品牌信息
`src/config/static/info.local.yaml` 中配置:
<<< @/../src/config/static/info.template.yaml
上述中提到的 ICON 预设了下面这些如果需要更多的 ICONS可以手动从 `lucide-vue-next` 中引入
<<< @/../web/src/views/HomeView.vue#icon_mapping{js}
### 3. 环境变量配置
`.env` 文件中指定配置文件路径
```bash
YUXI_BRAND_FILE_PATH=src/config/static/info.local.yaml
```
::: tip 配置优先级
`info.local.yaml` > `info.template.yaml`(默认)
:::
## 样式定制
系统配色主要保存在 `web/src/assets/css/base.css` 中:
- 替换 `--main-*` 相关变量即可改变配色
- 支持主题色、辅助色等完整定制
- 实时预览,无需重启服务
**主要变量**:
```css
:root {
--main-color: #1890ff; /* 主色调 */
--main-1000: #f0f2f5; /* 色板 */
--main-900: #e6f7ff; /* 色板 */
/* ... 其他色板 */
}
```
**此外**`web/src/stores/theme.js` 中也包含了主题相关的配置(需要修改 `colorPrimary`),可根据需要修改。