Get In Touch

Get In Touch

Say hi by email at mw[at]martinwright[dot]design, hopefully you can figure it out, I was getting a lot of spam.


Or one of the other methods below:


Practicing what I preach and being more accessible

As I mentioned in the first post here, this website was stiched together at speed to update what was an creaking old Wordpress site. Unfortunately, I didn’t take my own advice and build without accessibility as a primary concern - now I’m working to address that.

I started by wanting to add a dark mode, and out of curiosity ran a Lighthouse audit…

Just how bad is it?

According to Lighthouse, it isn’t great.

Poor Initial Lighthouse score

I’m less concerned initially about the performance, a cursory glance spots some easy wins there. To be fair to me, some of them are a hold over from the theme I have based the site on, but I will aim to address them as soon as possible.

However, the accesibility score of 65 does raise some eyebrows!

An hour or so minor tweaks, and a more extensive than I had hoped dive into the slider plugin I am using and we now have a much better score.

Lighthouse accessibilty score improved to 97

Now onto darkmode!

Able to now say that at least my site is pretty accessible, onto what I actually wanted to look at - adding a dark mode toggle.

Researching the best methods for implimenting this I came across an article on the ever-useful CSS tricks. Read the article. This exhaustive article really does cover everything you could need to know about implimenting a dark mode, including supporting the ‘prefers-color-scheme’ functionality.

So that’s the next plan for this site, a user friendly toggle that respects the users presets. Lets see how that pans out!