Using system preferences and stored user preferences, you can add persistent darkmode to your website.

/images/uploads/darkmoon-image.jpeg

The article was also published on hackernoon and as such was my first article published on something other than my own website.

The Hackernoon article: https://hackernoon.com/how-to-add-a-darkmode-to-your-website

This uses a localStorage to store the user's preference for darkmode. It also responds to the user's system for darkmode preferences. If their computer is in darkmode, then likely they want their websites to display in darkmode.

This was my first experience writing an article / tutorial.

30 May 2022

📯

✍️

💌

Just simple updates about my latest post.
No funny business (tracking, selling data).
I am not that productive,
so I wont be filling up your inbox ;)