Switching my personal website theme to dark mode
Every now and then I take a quick look at my portfolio, resume, LinkedIn, GitHub, all my project websites to check if everything is up-to-date and working. Yesterday, while checking this page, I had a đĄ moment.
Or rather, my eyes hurt from seeing all the white brightness of the default Sidey jekyll theme.
Join me on the dark sideâŠ
I prefer to use dark mode whenever I can (sue me!), so I thought Iâd try to switch to it for my website. I thought âhow hard can it be? just a few css color properties to change/set and all will be wellâŠâ. Now I know how naive that was!
But donât get discouraged, itâs really not that hard (if you know what youâre doing đ).
And to help you out - see how the difference is like night and day (but reversed):

Changing Cascade Style⊠Oh, no! Now everything is black or white - not inverted!
Whatâs the easiest way to find out what colors a website uses? Of course, not reading the docs/_sass/_main.scss file first is the best way to start⊠But in all seriousness, simply going to the site and hitting âInspectâ is quick, clever and easy. A few attempts of changing the hex or rgb values found, and weâre golden.
As a side note, I highly recommend not using pure black as a background - itâs just weird. What Iâm using here is #121212 for example, just a little bit off black works wonders.
Everything is fine and dandy, so whereâs the catch?
Weâve figured out what to change, experimented with some color values that look nice, gone back to the css file, formatted it, changed every color/background/CTRL+F: â#â or ârgb(âŠ)â. Now just commit all of it, push it to a âstyle-testingâ branch, build, deploy and see it in all itâs glory!
But wait a minute, Blog(s) are good, About me and Contact is fine, but whatâs up with the Search bar being so bright all of a sudden?
If you want, you can check the commit history to see how I blatantly pasted a fixed input style for the search bar into my websiteâs (mentioned everywhere) css file. Surprise, surprise - it didnât work. Silly me spent half an hour finding out that the docs/_pages/search.md file had set input style inside! One line quick fix, and weâre merging to main.
Victory! But whatâs that? You donât like it? HmmmâŠ
Yes, I know: not everyone prefers the dark mode, and I understand that. Iâm not forcing my opinion on you, or rather technically I am for the time being, but I promise: if there is a day when I will visit my website, find the energy, courage and a working monkey brain inside me to figure out how to add a toggle to switch between light mode and dark mode - I will do it for sure!
By the way: Happy Pi-Day! đ„ł