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

@@ -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>