1
0

implement light mode

This commit is contained in:
Adrian Wannenmacher 2026-03-03 01:59:15 +01:00
parent ff753f2e2f
commit 061c04f74f
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5

View File

@ -9,6 +9,15 @@ html {
--color-primary-text: black; --color-primary-text: black;
--color-primary-background: lch(from orange calc(l + 10) c h); --color-primary-background: lch(from orange calc(l + 10) c h);
@media (prefers-color-scheme: light) {
--color-regular-text: black;
--color-regular-background: white;
--color-alter-text: black;
--color-alter-background: lch(from white calc(l - 10) c h);
--color-primary-text: black;
--color-primary-background: lch(from orange calc(l + 10) c h);
}
color: var(--color-regular-text); color: var(--color-regular-text);
background-color: var(--color-regular-background); background-color: var(--color-regular-background);
} }