create alwaysdark module
This commit is contained in:
parent
de85c23805
commit
16ae126308
8
modules/alwaysdark.css
Normal file
8
modules/alwaysdark.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
@import url("https://styles.alv.cx/modules/soft_media.css");
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--fg: var(--colorscheme-light);
|
||||||
|
--fg-lc: var(--colorscheme-light-darker);
|
||||||
|
--bg: var(--colorscheme-dark);
|
||||||
|
--bg-lc: var(--colorscheme-dark-lighter);
|
||||||
|
}
|
@ -1,10 +1 @@
|
|||||||
@import url("https://styles.alv.cx/modules/soft_media.css") screen and (prefers-color-scheme: dark);
|
@import url("https://styles.alv.cx/modules/alwaysdark.css") screen and (prefers-color-scheme: dark);
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
--fg: var(--colorscheme-light);
|
|
||||||
--fg-lc: var(--colorscheme-light-darker);
|
|
||||||
--bg: var(--colorscheme-dark);
|
|
||||||
--bg-lc: var(--colorscheme-dark-lighter);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
5
modules/readmes/alwaysdark.txt
Normal file
5
modules/readmes/alwaysdark.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
in the css
|
||||||
|
|
||||||
|
@import url("https://styles.alv.cx/modules/alwaysdark.css");
|
||||||
|
|
||||||
|
puts the website always in dark mode, ignoring user preference.
|
Loading…
Reference in New Issue
Block a user