Post by @docwhozee

Craig Hockenberry
@chockenberry @mastodon.social
The Iconfactory home page with a light background in a light appearance.
The Iconfactory home page with a light background in a light appearance.
The Iconfactory home page with a partially dark background and unreadable text in a dark appearance.
The Iconfactory home page with a partially dark background and unreadable text in a dark appearance.

Heads up if you use CSS in Safari on any Apple platform:

In Safari on 27.3, your carefully crafted CSS is about to be automatically adjusted with a new feature called “Adaptive Dark Mode”. I love Safari, but this is NOT a good feature as currently implemented, and worse, users are being prompted to turn it on.

Here’s what the Iconfactory home page looks like normally (first image) and with the Adaptive Dark Mode turned on (second image).

At first encounter, I thought Safari was broken.

1/n

Craig Hockenberry
@chockenberry @mastodon.social

As I would expect, the WebKit/Safari team has done an excellent job of documenting what’s going on (which I eventually found while I was trying to figure out what broken in Safari).

webkit.org/blog/18541/introduc

The problem here is that you see a prompt for a new feature and turn it on (“sure why not!”). Then awhile later you encounter a website where you can’t read anything and do not make the connection that the new feature is the cause of the issue.

2/n

Craig Hockenberry
@chockenberry @mastodon.social

Making CSS changes for a dark mode is a significant effort. And this new feature in 27.3 seems like a “hurry up and get ‘er done” situation.

A point release is weeks away, and this is potentially months of work.

Additionally, the only way to test this new feature is by installing 27.3: it is not included in Safari Technology Preview, which is the place where you introduce features that have a big impact on web developers.

3/n

Craig Hockenberry
@chockenberry @mastodon.social

Here’s what’s going to happen, which is to no one’s benefit:

People like me are going to see how Adaptive Dark Mode breaks their CSS and frantically search for a way to disable it.

There are suddenly going to be a bunch of sites with <meta> tags with content of “light-only”. And the problem is forgotten about because it’s “solved”.

I think Adaptive Dark Mode could be a great feature, but not as its currently being rolled out.

/cc @jensimmons @smfr

4/n

Mike Sax
@mikesax @mas.to

@chockenberry @jensimmons @smfr Frankly, I think there’s no excuse for a website not fully supporting dark mode this day and age. Not only for evening/night visitors but more importantly, for accessibility.

Replying to @mikesax@mas.to
Craig Hockenberry
@chockenberry @mastodon.social

@mikesax @jensimmons @smfr Strong disagree.

We often use dark & light as a way to delineate sections on a site. For example, look at how we use various shades of dark & light colors to define areas of interest on this product website:

linea-app.com

And we do this with contrast/accessibility in mind.

Mike Sax
@mikesax @mas.to

@chockenberry Yeah, I greatly respect your craftsmanship but my gut reaction is “That’s a false trade-off. Design harder.”

Replying to @mikesax@mas.to
Craig Hockenberry
@chockenberry @mastodon.social

@mikesax So on these sites that we designed to use both dark & light elements on the same page, how do we “design harder”?

Make the dark things lighter, or the light things darker, or both?

Tell me how you’d treat each of these three bands of information.

To my eye, it’s a complete redesign, not just a theme change.

Ged Maheux
@gedeonm @mastodon.social

@chockenberry @mikesax imagine Safari forcing a light mode on our designed site of xscopeapp.com just… because. If it’s for accessibility reasons then why only force dark mode? Why not light mode as well?

Temerition
@Temerition @mastodon.social

@gedeonm @chockenberry @mikesax Only light mode burns the eyes

@Temerition@mastodon.social @gedeonm @chockenberry @mikesax@mas.to I’ve got astigmatism: dark mode-only websites are just painful for me to read & I tend to just quickly leave…