Browse Source

feat: set background color as early as possible

imwald
codytseng 1 year ago
parent
commit
6543f29529
  1. 13
      index.html

13
index.html

@ -28,16 +28,19 @@ @@ -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>

Loading…
Cancel
Save