Merge branch 'master' of philippdormann/uptime-kuma into philippdormann/uptime-kuma->feature/darkmode
darkmode based on css variables. ref https://github.com/louislam/uptime-kuma/issues/21pull/32/head
commit
d9e2c230bf
@ -1,7 +1,27 @@
|
|||||||
$primary: #5CDD8B;
|
$primary: #5cdd8b;
|
||||||
$danger: #DC3545;
|
$danger: #dc3545;
|
||||||
$link-color: #111;
|
$link-color: #111;
|
||||||
$border-radius: 50rem;
|
$border-radius: .25rem;
|
||||||
|
|
||||||
$highlight: #7ce8a4;
|
$highlight: #7ce8a4;
|
||||||
$highlight-white: #e7faec;
|
$highlight-white: #e7faec;
|
||||||
|
|
||||||
|
:root {
|
||||||
|
color-scheme: light dark;
|
||||||
|
//
|
||||||
|
--page-background: #fafafa;
|
||||||
|
--background-secondary: #d0d3d5;
|
||||||
|
--background-4: #d0d3d5;
|
||||||
|
--background-ternary: #d0d3d5;
|
||||||
|
--main-font-color: #212529;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--page-background: #0a0a0a;
|
||||||
|
--background-secondary: #656565;
|
||||||
|
--background-4: #313131;
|
||||||
|
--background-ternary: #a7a7a7;
|
||||||
|
--main-font-color: #e4e4e4;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue