mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
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.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@import "../chroma/dark.less";
|
||||
|
||||
:root {
|
||||
--is-dark-theme: true;
|
||||
--color-primary: #87ab63;
|
||||
--color-primary-dark-1: #93b373;
|
||||
--color-primary-dark-2: #9fbc82;
|
||||
|
Reference in New Issue
Block a user