This should be a temporary solution until Gitea reinvents the soft contrast, low light theme. Inspired by go-gitea/gitea#31308.
Any updates, comments, or pull requests are appreciated. At the time of the first publication, it is based on the new gitea-dark-theme with some color accents based on previous arc-green-theme.
update: compatible with release 1.25.2
-
Login to Gitea Web Interface Admin Account
Identify theCustom File Root Path. -
Locate Server Configuration
On the left panel, clickConfiguration -> Summaryand look at the end ofServer Configuration, e.g.,/var/lib/gitea/custom. -
Create Folder Structure on Gitea Host Machine
Create thepublic/assets/cssfolder structure and then change the owner and group togit(sudo chown git:git css) -
Copy Updated CSS File
Copytheme-arc-green-updated.cssinto the newly createdpublic/assets/cssfolder. Assign the copied file to thegituser and group:sudo chown git:git /var/lib/gitea/custom/public/assets/css/theme-arc-green-updated.css
do same for other files and folders:
theme-gitea-auto.css,chroma/dark.css,codemirror/dark.css. -
Confirm Configuration File Path
If you want to make the new theme default for the login page and new users, go back to the web interface to confirm theConfiguration File Path, e.g.,/etc/gitea/app.ini. -
Make the new theme default for the login page and new users
Add or update the following section in the configuration file:[ui] DEFAULT_THEME = arc-green-updated
-
Restart Gitea
Restart Gitea to apply the changes:sudo systemctl restart gitea