Skip to content

Commit 968225e

Browse files
authored
update theme doc (#16860)
1 parent d985d4b commit 968225e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

docs/content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,21 @@ A full list of supported emoji's is at [emoji list](https://gitea.com/gitea/gite
321321

322322
## Customizing the look of Gitea
323323

324-
As of version 1.6.0 Gitea has built-in themes. The two built-in themes are, the default theme `gitea`, and a dark theme `arc-green`. To change the look of your Gitea install change the value of `DEFAULT_THEME` in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini` to another one of the available options.
325-
As of version 1.8.0 Gitea also has per-user themes. The list of themes a user can choose from can be configured with the `THEMES` value in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini` (defaults to `gitea` and `arc-green`, light and dark respectively)
324+
The default built-in themes are `gitea` (light) and `arc-green` (dark).
325+
The default theme can be changed via `DEFAULT_THEME` in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini`.
326+
327+
Gitea also has support for user themes, which means every user can select which theme should be used.
328+
The list of themes a user can choose from can be configured with the `THEMES` value in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini`.
329+
330+
To make a custom theme available to all users:
331+
332+
1. Add a CSS file to `$GITEA_PUBLIC/public/css/theme-<theme-name>.css`.
333+
The value of `$GITEA_PUBLIC` of your instance can be queried by calling `gitea help` and looking up the value of "CustomPath".
334+
2. Add `<theme-name>` to the comma-separated list of setting `THEMES` in `app.ini`
335+
336+
Community themes are listed in [gitea/awesome-gitea#themes](https://gitea.com/gitea/awesome-gitea#themes).
337+
338+
The `arc-green` theme source can be found [here](https://github.com/go-gitea/gitea/blob/main/web_src/less/themes/theme-arc-green.less).
326339

327340
## Customizing fonts
328341

0 commit comments

Comments
 (0)