2022-10-31 06:03:32 +00:00
|
|
|
## Preview
|
|
|
|
|
|
|
|
### Edge Dark
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![edge-dark](https://share.sainnhe.dev/XHEF.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Edge Light
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![edge-light](https://share.sainnhe.dev/SYyp.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Everforest Dark
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![everforest-dark](https://share.sainnhe.dev/mfmK.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Everforest Light
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![everforest-light](https://share.sainnhe.dev/h7Y7.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Gruvbox Dark
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![gruvbox-dark](https://share.sainnhe.dev/Fc6P.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Gruvbox Light
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![gruvbox-light](https://share.sainnhe.dev/Tp6N.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Gruvbox Material Dark
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![gruvbox-material-dark](https://share.sainnhe.dev/J4EW.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Gruvbox Material Light
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![gruvbox-material-light](https://share.sainnhe.dev/cGnE.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Nord
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![nord](https://share.sainnhe.dev/6pxH.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
2022-10-31 09:04:16 +00:00
|
|
|
### Palenight
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![palenight](https://share.sainnhe.dev/xasf.png)
|
2022-10-31 09:04:16 +00:00
|
|
|
|
2022-10-31 06:03:32 +00:00
|
|
|
### Soft Era
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![soft-era](https://share.sainnhe.dev/WXrb.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Sonokai
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![sonokai](https://share.sainnhe.dev/DYTA.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Sonokai Andromeda
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![sonokai-andromeda](https://share.sainnhe.dev/prHH.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Sonokai Atlantis
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![sonokai-atlantis](https://share.sainnhe.dev/Fx8d.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Sonokai Espresso
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![sonokai-espresso](https://share.sainnhe.dev/nByy.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Sonokai Maia
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![sonokai-maia](https://share.sainnhe.dev/KNWD.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
### Sonokai Shusia
|
|
|
|
|
2023-02-18 05:51:53 +00:00
|
|
|
![sonokai-shusia](https://share.sainnhe.dev/MSiH.png)
|
2022-10-31 06:03:32 +00:00
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
This is a port of some editor themes for Gitea (>= 1.18.0).
|
|
|
|
|
|
|
|
List of available themes:
|
|
|
|
|
|
|
|
- `edge-auto`
|
|
|
|
- `edge-dark`
|
|
|
|
- `edge-light`
|
|
|
|
- `everforest-auto`
|
|
|
|
- `everforest-dark`
|
|
|
|
- `everforest-light`
|
|
|
|
- `gruvbox-auto`
|
|
|
|
- `gruvbox-dark`
|
|
|
|
- `gruvbox-light`
|
|
|
|
- `gruvbox-material-auto`
|
|
|
|
- `gruvbox-material-dark`
|
|
|
|
- `gruvbox-material-light`
|
|
|
|
- `nord`
|
2022-10-31 09:04:16 +00:00
|
|
|
- `palenight`
|
2022-10-31 06:03:32 +00:00
|
|
|
- `soft-era`
|
|
|
|
- `sonokai`
|
|
|
|
- `sonokai-andromeda`
|
|
|
|
- `sonokai-atlantis`
|
|
|
|
- `sonokai-espresso`
|
|
|
|
- `sonokai-maia`
|
|
|
|
- `sonokai-shusia`
|
|
|
|
|
|
|
|
Themes with `auto` postfix will automatically switch between light and dark variants based on system settings.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Take `edge-dark` for example.
|
|
|
|
|
|
|
|
### If Gitea is deployed via Docker
|
|
|
|
|
|
|
|
First of all, find the `CustomPath` via this command:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo docker exec -u <run-user> <gitea-container-name> gitea help
|
|
|
|
```
|
|
|
|
|
|
|
|
Where `<run-user>` is the value of `RUN_USER` in your Gitea config, default to `git`;
|
|
|
|
|
|
|
|
and `<gitea-container-name>` is the container name of your gitea instance that can be found via `docker ps`.
|
|
|
|
|
|
|
|
Now execute the following command to install this theme:
|
|
|
|
|
|
|
|
```bash
|
2022-10-31 09:21:36 +00:00
|
|
|
sudo docker exec -u <run-user> <gitea-container-name> sh -c 'mkdir -p <custom-path>/public/css && curl --output-dir <custom-path>/public/css -LO https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-edge-dark.css'
|
2022-10-31 06:03:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Replace `<custom-path>` with the `CustomPath` in this command.
|
|
|
|
|
|
|
|
Then edit your Gitea config like this:
|
|
|
|
|
|
|
|
```dosini
|
|
|
|
[ui]
|
|
|
|
DEFAULT_THEME = auto
|
|
|
|
THEMES = auto,gitea,arc-green,edge-dark
|
|
|
|
```
|
|
|
|
|
|
|
|
Restart Gitea instance to apply change.
|
|
|
|
|
|
|
|
### If Gitea is not deployed via Docker
|
|
|
|
|
|
|
|
```bash
|
2022-10-31 09:21:36 +00:00
|
|
|
mkdir -p <custom-path>/public/css && curl --output-dir <custom-path>/public/css -LO https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-edge-dark.css
|
2022-10-31 06:03:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Where `<custom-path>` can be found via `gitea help`.
|
|
|
|
|
|
|
|
Then edit your Gitea config like this:
|
|
|
|
|
|
|
|
```dosini
|
|
|
|
[ui]
|
|
|
|
DEFAULT_THEME = auto
|
|
|
|
THEMES = auto,gitea,arc-green,edge-dark
|
|
|
|
```
|
|
|
|
|
|
|
|
Restart Gitea instance to apply change.
|
|
|
|
|
|
|
|
## Meta tag
|
|
|
|
|
|
|
|
If you want to change the color of browser tabs / toolbar to match this theme, add `THEME_COLOR_META_TAG` to your config:
|
|
|
|
|
|
|
|
```dosini
|
|
|
|
[ui]
|
|
|
|
DEFAULT_THEME = auto
|
|
|
|
THEMES = auto,gitea,arc-green,edge-dark
|
|
|
|
THEME_COLOR_META_TAG = `#333644`
|
|
|
|
```
|
|
|
|
|
|
|
|
List of meta tag colors of each theme (excluding `*-auto` themes):
|
|
|
|
|
|
|
|
- `edge-dark`: `#333644`
|
|
|
|
- `edge-light`: `#eef1f4`
|
2023-01-13 14:20:05 +00:00
|
|
|
- `everforest-dark`: `#2d353b`
|
|
|
|
- `everforest-light`: `#f4f0d9`
|
2022-10-31 06:03:32 +00:00
|
|
|
- `gruvbox-dark`: `#32302f`
|
|
|
|
- `gruvbox-light`: `#f4e8be`
|
|
|
|
- `gruvbox-material-dark`: `#32302f`
|
|
|
|
- `gruvbox-material-light`: `#f4e8be`
|
|
|
|
- `nord`: `#343b49`
|
2022-10-31 09:04:16 +00:00
|
|
|
- `palenight`: `#2c3043`
|
2022-10-31 06:03:32 +00:00
|
|
|
- `soft-era`: `#f4f0f0`
|
|
|
|
- `sonokai`: `#33353f`
|
|
|
|
- `sonokai-andromeda`: `#333648`
|
|
|
|
- `sonokai-atlantis`: `#333846`
|
|
|
|
- `sonokai-espresso`: `#393230`
|
|
|
|
- `sonokai-maia`: `#313b42`
|
|
|
|
- `sonokai-shusia`: `#37343a`
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[GPL 3](./LICENSE) © sainnhe
|