mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Use light/dark theme based on system preference (#17051)
Add a new default theme `auto`, which will automatically switch between `gitea` (light) and `arc-green` (dark) themes depending on the user's operating system settings. Closes: #8183
This commit is contained in:
3
web_src/less/themes/theme-auto.less
Normal file
3
web_src/less/themes/theme-auto.less
Normal file
@ -0,0 +1,3 @@
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@import "theme-arc-green.less";
|
||||
}
|
Reference in New Issue
Block a user