CONTEXT
I am pretty new to Astro and I am going through the Build a Blog tutorial. I am trying to add light mode and dark mode to my website.
PROBLEM
However, I have a bug. When I am in Dark mode, and I click on a link in my Navigation Bar. The light mode flashes. I don't know why this happens. I may be missing some important knowledge on how <scripts> are executed in Astro or there me a bug that has slipped through the cracks.
REQUEST
Would really appreciate if anyone can help me find it. Here is the link to my GitHub Repo: https://github.com/fumzy123/astro-blog-project/tree/style-component-and-pages