feat: set background color as early as possible
This commit is contained in:
11
index.html
11
index.html
@@ -30,14 +30,17 @@
|
|||||||
content="https://github.com/CodyTseng/jumble/blob/master/resources/og-image.png?raw=true"
|
content="https://github.com/CodyTseng/jumble/blob/master/resources/og-image.png?raw=true"
|
||||||
/>
|
/>
|
||||||
<style>
|
<style>
|
||||||
body {
|
:root {
|
||||||
background-color: #ffffff;
|
--background-color: #ffffff;
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
body {
|
:root {
|
||||||
background-color: #09090b;
|
--background-color: #09090b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
html, body {
|
||||||
|
background-color: var(--background-color);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user