Properly handle dark mode background

This commit is contained in:
Gabriel Simmer 2023-05-05 22:15:06 +01:00
parent bb1e4e5377
commit 4600939970
Signed by: arch
GPG key ID: C81B106D46C5B875
2 changed files with 11 additions and 6 deletions

View file

@ -17,3 +17,14 @@
<div class="bg-white dark:bg-slate-800">
<slot />
</div>
<style lang="postcss">
:global(html) {
background-color: white;
}
@media (prefers-color-scheme: dark) {
:global(html) {
background-color: theme(colors.slate.800);
}
}
</style>

View file

@ -42,9 +42,3 @@
</form>
</div>
</div>
<style lang="postcss">
:global(html) {
background-color: theme(colors.gray.100);
}
</style>