feat: 集成简易暗黑模式

This commit is contained in:
zclzone
2022-12-18 19:19:42 +08:00
parent dda778fdde
commit 9548a0bfc8
5 changed files with 42 additions and 0 deletions

View File

@@ -7,6 +7,14 @@ body {
html {
font-size: 4px; // * 1rem = 4px 方便unocss计算在unocss中 1字体单位 = 0.25rem,相当于 1等份 = 1px
&.dark {
filter: invert(1);
img,
video {
filter: invert(1);
}
}
}
body {