summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/advanced/customizing-gitea.en-us.md
diff options
context:
space:
mode:
authorThetaDev <t.testboy@gmail.com>2021-11-25 08:14:48 +0100
committerGitHub <noreply@github.com>2021-11-25 15:14:48 +0800
commitaf901a4ca94603c8a379d2585758d89522430f8d (patch)
treee3e6c5d19b9b70a69251a804da01f46004eb2ae1 /docs/content/doc/advanced/customizing-gitea.en-us.md
parente0f81b4ef445948d33abcd5c67b6d0786b07de68 (diff)
downloadgitea-af901a4ca94603c8a379d2585758d89522430f8d.tar.gz
gitea-af901a4ca94603c8a379d2585758d89522430f8d.zip
Detect dark theme via css variable (#17800)
* detect dark theme via css variable * minor refactor, add documentation If your custom theme is considered a dark theme, set the global css variable `--is-dark-theme` to `true`. This allows gitea to adjust the Monaco code editor's theme accordingly.
Diffstat (limited to 'docs/content/doc/advanced/customizing-gitea.en-us.md')
-rw-r--r--docs/content/doc/advanced/customizing-gitea.en-us.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md
index 040dcfd3e8..d097019870 100644
--- a/docs/content/doc/advanced/customizing-gitea.en-us.md
+++ b/docs/content/doc/advanced/customizing-gitea.en-us.md
@@ -337,6 +337,9 @@ Community themes are listed in [gitea/awesome-gitea#themes](https://gitea.com/gi
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).
+If your custom theme is considered a dark theme, set the global css variable `--is-dark-theme` to `true`.
+This allows gitea to adjust the Monaco code editor's theme accordingly.
+
## Customizing fonts
Fonts can be customized using CSS variables: