From 262103b0f3dfeeb56dab9bd5ac981952f5ea4828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=B1=80?= <131967983+lutinglt@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:31:12 +0800 Subject: [PATCH] Create README.md --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a71ef17 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# gitea-github-theme + +本仓库来源于 https://github.com/Rainnny7/gitea-github-theme + +在原主题基础上做了以下修改: + +- 主题色从蓝色改为绿色 +- 默认字体为 [Victor Mono](https://github.com/rubjo/victor-mono) 和 [汉仪正圆](https://www.hanyi.com.cn/productdetail.php?id=2913) (优先匹配左侧, 需要系统包含相应字体) + +> Victor Mono 相比其他等宽字体更为紧凑, 可以减少换行 + +## Gitea 版本 + +- Gitea 1.21+ + +## 安装 + +1. 将 theme-github.css 放入 gitea/public/assets/css 目录下 +2. 修改 gitea/conf/app.ini,并将 `, github` 附加到 `[ui]` 下的 `THEMES` 末尾 +3. 重启 Gitea +4. 在设置中查看主题 + +gitea/conf/app.ini 例: +```ini +[ui] +THEMES = gitea-dark, github +``` + +> 详细请查看 Gitea 文档 [Gitea docs](https://docs.gitea.com/next/administration/customizing-gitea#customizing-the-look-of-gitea)