feat: add empty page color support with new CSS file and update index.html
This commit is contained in:
9
public/colors.css
Normal file
9
public/colors.css
Normal file
@@ -0,0 +1,9 @@
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html > body { background: #101828; color: #e5e7eb; }
|
||||
html:not(.dark) > body { background: #f3f4f6; color: black; }
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
html > body { background: #f3f4f6; color: black; }
|
||||
html.dark > body { background: #101828; color: #e5e7eb; }
|
||||
}
|
||||
Reference in New Issue
Block a user