Visit my personal website at . If you scroll to the bottom of the page, you'll notice that the margin remains white even in dark mode. To fix this issue, I needed to change the background color of the html tag. However, the html tag is only accessible in src/app.html and doesn't know if my site is in dark mode or not. I had to find a way to update the background color of the html tag through src/routes/index.svelte or src/app.ts. For more details, view the code on GitHub: https://github.com/CloudyWhale/personal-website
The issue has been resolved, but here's an illustration of what was happening:
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜
(at one point, there was a margin causing a white background at the bottom)