Thomas Steiner (@tomayac)

Now at @tomayac@toot.cafe

The below is an off-site archive of all tweets posted by @tomayac ever

August 2nd, 2019

@adamzea There is the (deprecated, don’t use this!) concept of CSS system colors: drafts.csswg.org/css-color/#sys… 🌈. For so..twitter.com/i/web/status/1…7b

via Twitter for iPhone in reply to adamzea

@designcoursecom Thanks for the shout-out to my article web.dev/prefers-color-… at youtu.be/kVKuH5H7nuA?t=… 😊. Cool video, too! Keep rockin’!

via Twitter Web App in reply to designcoursecom

@MrGrigri @CodePen Have you seen web.dev/prefers-color-…, specifically the `<dark-mode-toggle>` custom element?

via Twitter Web App in reply to MrGrigri

@davidhellmann Bei Interesse ist hier noch mehr relevantes Lesematerial: web.dev/prefers-color-…. 🌒
PS: Großartige..twitter.com/i/web/status/1…ZM

via Twitter Web App in reply to davidhellmann

@symfony_en @suzuki Sorry, yeah, I just saw that (quoted tweet). Theme switches require a site reload though…
Withtwitter.com/i/web/status/1…vNKM

via Twitter Web App in reply to symfony_en

@suzuki Oh, interesting, you’re right. They store the initial value:
“`
if (document.body.classList.contains(‘dark..twitter.com/i/web/status/1…8N

via Twitter Web App in reply to suzuki

@hotta_kosuke @suzuki Actually it’s not based on `prefers-color-scheme`, they use a manual theme switcher (see bott..twitter.com/i/web/status/1…xH

via Twitter Web App in reply to hotta_kosuke

@donatj I half-suspected you were. But people actually implement it like that, so I thought just in case I’d advice against it. 😊

via Twitter for iPhone in reply to donatj

@donatj Inversion rarely is a solution: web.dev/prefers-color-…. It can work for icons, though: web.dev/prefers-color-….

via Twitter for iPhone in reply to donatj