Mtt
Mtt

Dark Mode Your Website: mattlangford.net

|
Embed
Progress spinner
kaa
kaa

@Mtt that is awesome! Although very Apple centric, it’s a great little idea and one I’m going to implement for sure. Thanks for the tip.

|
Embed
Progress spinner
In reply to
paulrobertlloyd
paulrobertlloyd

@kaa Recently implemented this on my own site. As I was already using CSS Custom Properties, only needed to redefine those values. Was pleased to see that this media query was developed within the standards process rather than outside of it, which is often the case with Apple. Also, there are a number of useful tips in this post from Andy Clarke.

|
Embed
Progress spinner
Mtt
Mtt

@kaa I’m sure other browsers will eventually adopt it. Could very well be a while, but who knows. For a site like mine, it took about 3-4 lines of CSS to complete it so it was worth it to me.

|
Embed
Progress spinner
kaa
kaa

@paulrobertlloyd Thanks. Haven't been to Andy's website in a long while, nice little resourse. The thing is I'd actually already created a dark version for my site, but the theme switching never stuck with me, while this is a pretty simple solution to implement.

|
Embed
Progress spinner
kaa
kaa

@Mtt Totally agree.

|
Embed
Progress spinner