Dark theme switcher
How I build a dark mode switcher that respects prefers-color-scheme but still lets users pick a different theme on a specific website.
All of my researches, thoughts, and other forms of expressions on programming, company building, leadership, product design and more collected in one place.
How I build a dark mode switcher that respects prefers-color-scheme but still lets users pick a different theme on a specific website.
There are situations when more details are necessary to keep the code nice and tidy. Here are a few tips
Step-by-step guide to installing and configuring PHP-FPM Exporter, so Prometheus can collect PHP-FPM metrics and help you debug php-fpm issues.
When using one of the packages recommended by Plausible appears a problem with spam scans of the website. In reality it is possible to fix it pretty easily.
After I made some design changes on this blog I decided to check it at Speed Insight and here is how it went.
My categorised list of design tools I use often: colour contrast checkers, palette generators, icon packs, inspiration sites and UI kits.
Sometimes it gets forgotten how to define Eloquent relationship types, so here is a cheat sheet for a fast reference.