ForcePilot/docs/advanced/branding.md

50 lines
1.0 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
### 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-bg: #f0f2f5; /* 背景色 */
--main-text: #262626; /* 文字色 */
--main-border: #d9d9d9; /* 边框色 */
}
```