feat: set background color as early as possible

This commit is contained in:
codytseng
2025-01-17 10:38:25 +08:00
parent f1ceac09bb
commit 6543f29529

View File

@@ -28,16 +28,19 @@
<meta
property="og:image"
content="https://github.com/CodyTseng/jumble/blob/master/resources/og-image.png?raw=true"
/>
/>
<style>
body {
background-color: #ffffff;
:root {
--background-color: #ffffff;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #09090b;
:root {
--background-color: #09090b;
}
}
html, body {
background-color: var(--background-color);
}
</style>
</head>
<body>