feat(ui): implement CSS variables for theme support (#26)

#17

Reviewed-on: #26
Reviewed-by: lq64 <lq@blackhole.local>
Co-authored-by: Janis <janis.e.20@gmx.de>
Co-committed-by: Janis <janis.e.20@gmx.de>
This commit is contained in:
2025-10-29 16:52:32 +01:00
committed by lq64
parent 6c31fa0538
commit 1f377de0f4
3 changed files with 15 additions and 4 deletions

View File

@@ -1,2 +1,6 @@
@background-image: url('/assets/images/background.png');
@color: white;
@media (prefers-color-scheme: dark) {
:root {
--background-image: url('/assets/images/background.png');
--color: white;
}
}

View File

@@ -1,2 +1,4 @@
@background-image: url('/assets/images/img.png');
@color: black;
:root {
--background-image: url('/assets/images/img.png');
--color: black;
}

View File

@@ -1,4 +1,9 @@
@import "light-mode.less";
@import "dark-mode.less";
@background-image: var(--background-image);
@color: var(--color);
body {
background-image: @background-image;
background-size: 100vw 100vh;